Contributing to the Standard Library: best way to run the tests?

I'm working on a PR for std::iter::Iterator. Is there a way for me only run the library's tests? Or do I need to compile the compiler from source, etc. ?

./x.py test libstd "should" do the minimum required to just test libstd. (You might need a --stage 0 to actually do the minimum, I don't recall.)

1 Like

Thanks! I just discovered x.py.

You should probably look at the Contribution section in the Rustc Developers Guide.

1 Like

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.