Uh oh!
There was an error while loading. Please reload this page.
Add NLL tests for #46557 and #38899 - #47368
Conversation
Closesrust-lang#47366 Adapt the sample code from the issues into mir-borrowck/nll test cases.
chrisvittal
commented
Jan 11, 2018
The mentoring instructions were unclear here. It seems that we want these tests to fail compilation as they both unsoundly passed AST borrowck. |
@chrisvittal When you said the instructions were unclear, were you referring to the step that said that the tests should include the comment |
pnkfelix
commented
Jan 12, 2018
nikomatsakis
commented
Jan 12, 2018
That was a mistake on my part. We expect errors! |
nikomatsakis
left a comment
There was a problem hiding this comment.
(also remove flags from other test)
| // Regression test for issue #38899 | ||
| // compile-flags:-Znll -Zborrowck=mir -Zverbose |
There was a problem hiding this comment.
can we remove the compile-flags? They should not be necessary. feature(nll) should suffice.
nikomatsakis
commented
Jan 12, 2018
@bors r+ |
bors
commented
Jan 12, 2018
📌 Commit e14720b has been approved by |
Add NLL tests for rust-lang#46557 and rust-lang#38899 This adapts the sample code from the two issues into test code. Closesrust-lang#46557Closesrust-lang#38899 r? @nikomatsakis
This adapts the sample code from the two issues into test code.
Closes#46557
Closes#38899
r? @nikomatsakis