-
Notifications
You must be signed in to change notification settings - Fork 13.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add compiletest --compare-mode nll
option
#49293
Add compiletest --compare-mode nll
option
#49293
Conversation
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @nikomatsakis (or someone else) soon. If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes. Please see the contribution instructions for more information. |
Welcome =) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks really good! It's hard to test compiletest, so I guess I'll try to do a local build.
I'm currently working on the tidy change. Should I open another pull request for that? |
One problem from my initial attempt to try out the PR: it seems like it will reuse previous cached results that were not run with More specifically, if I run But the problem is that if I run As I write this, I am wondering whether this is just considered part of the But its possible that we might be better off including the mode somewhere in the path we generate for the files we generate.
|
After discussion with @nikomatsakis, I think I like another option that he suggested, which I will outline here:
|
Is there a good reason, to not just change the stamp-function to include the compare-mode in the output path? (eg. |
@memoryleak47 sorry for not getting back to you! Last week was Rust All Hands and it was a pretty overwhelming week. |
There is no good reason =) that probably makes sense. I think the reason @pnkfelix did not suggest that at first is that the stage-id already contains a certain amount of "context" -- i.e., the caller is responsible for keeping it unique -- but it seems fine to have the compile-mode in there as a separate field. |
@memoryleak47 regarding your question about running |
@memoryleak47 also I'd argue that one reason to not change the "stamp-function" is just to minimize the impact of this PR... I don't want to risk breaking other people's work-flows for this somewhat isolated use case... |
Your PR failed on Travis. Through arcane magic we have determined that the following fragments from the build log may contain information about the problem. Click to expand the log.
I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
Alright, running compiletest with |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As a meta comment, this is the kind of thing where I wish we had a testing framework for compiletest (#47606). It always makes me nervous, since a wrong move could mean we are not testing what we think we are testing =)
That said, these changes seem good to me.
So r=me but I'd like @pnkfelix to "sign off" as well, for added security.
r? @pnkfelix |
hmm. right now, even when you are using
but of course that script isn't going to the right thing in this case... |
also, I don't know if this is exactly relevant to this particular PR, but during my experimentation: When I created an empty But instead it seems like if the revision file is empty, then it falls back on the base file
(I don't know whether other people think that fall back behavior for empty files is more intutive... it wasn't intuitive for me, since I'm the kind of person who will just do |
Note: the prior two comments are more nits about things that we can do in follow-up PR's; they need not block landing this as-is. |
@bors r+ |
📋 Looks like this PR is still in progress, ignoring approval |
--compare-mode nll
option--compare-mode nll
option
@bors r+ |
📌 Commit 03e1509 has been approved by |
… r=pnkfelix Add compiletest `--compare-mode nll` option Before implementing the tidy stuff, I'd appreciate if someone reviews the changes so far. This is my first non-trivial pull request, so I could really use some feedback. :) closes #48879. r? @nikomatsakis
☀️ Test successful - status-appveyor, status-travis |
Before implementing the tidy stuff, I'd appreciate if someone reviews the changes so far.
This is my first non-trivial pull request, so I could really use some feedback. :)
closes #48879.
r? @nikomatsakis