Uh oh!
There was an error while loading. Please reload this page.
Add polonius compare mode - #51138
Conversation
rust-highfive
commented
May 28, 2018
(rust_highfive has picked a reviewer for you, use r? to override) |
1207f82 to
539a6f0CompareThere was a problem hiding this comment.
Hmm, this is a bit more hard-coded than I expected, but I imagine it does the right thing.
There was a problem hiding this comment.
Maybe it's not worth making a super general mechanism here, given that we'll hopefully be removing polonius and nll "soon".
There was a problem hiding this comment.
What I expected was some kind of table where, for each compare-mode, we specify a "parent" mode (which may be None for nll) — and we iterate through modes, walking to their parents (and ultimately to a None mode) — looking for a path that exists.
There was a problem hiding this comment.
There appears to be some very similar logic a few lines below:
It seems like there is a compare_mode that comes from the test directory configuration as well as one (now) that you have added to builder.config.cmd. Perhaps we want to just change this line to something like this:
let compare_mode = builder.config.cmd.compare_mode().or(self.compare_mode);(This is giving precedence to the --compare-mode option from the command line, which seems appropriate.)
(Alternatively, we could error if compare-mode is given both in the command line and the test suite definition; I think that the latter (test suite) can only occur when running ./x.py test, in which case the command line probably ought not to be in use.)
michaelwoerister
commented
May 29, 2018
539a6f0 to
ecb7f52Comparespastorino
commented
May 29, 2018
Have just force pushed this again. Still needs #51133 merged. |
ecb7f52 to
c0f897dComparec0f897d to
74d48edComparepnkfelix
commented
May 29, 2018
@bors r+ |
bors
commented
May 29, 2018
📌 Commit 74d48ed has been approved by |
bors
commented
May 30, 2018
🔒 Merge conflict |
74d48ed to
a73b4d7Comparenikomatsakis
commented
May 30, 2018
@bors r=pnkfelix |
bors
commented
May 30, 2018
📌 Commit a73b4d7 has been approved by |
rust-highfive
commented
May 30, 2018
The job 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 |
nikomatsakis
commented
May 30, 2018
@bors r- |
nikomatsakis
commented
May 30, 2018
(Travis failure) |
a73b4d7 to
214c25dCompare214c25d to
b39a1d6Comparenikomatsakis
commented
May 30, 2018
@bors r=pnkfelix |
bors
commented
May 30, 2018
📌 Commit b39a1d6 has been approved by |
bors
commented
May 30, 2018
Add polonius compare mode **This is now ready to review/merge**
bors
commented
May 31, 2018
☀️ Test successful - status-appveyor, status-travis |
This is now ready to review/merge