-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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 NLL tests for #46557 and #38899 #47368
Conversation
Closes rust-lang#47366 Adapt the sample code from the issues into mir-borrowck/nll test cases.
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 |
That was a mistake on my part. We expect errors! |
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.
(also remove flags from other test)
|
||
// Regression test for issue #38899 | ||
|
||
// compile-flags:-Znll -Zborrowck=mir -Zverbose |
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.
can we remove the compile-flags
? They should not be necessary. feature(nll)
should suffice.
@bors r+ |
📌 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. Closes rust-lang#46557 Closes rust-lang#38899 r? @nikomatsakis
This adapts the sample code from the two issues into test code.
Closes #46557
Closes #38899
r? @nikomatsakis