-
Notifications
You must be signed in to change notification settings - Fork 13.3k
region-liveness-drop-no-may-dangle.rs compilation failure on MIR borrowck #46267
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
Possibly related to #45537. |
@arielb1 can you elaborate on why you think that this test ought to report a compilation error? I don't understand why that is true. (Among other things, the code does compile today -- i.e., without NLL etc.) |
The test is not supposed to cause a compilation error. The bug is that the test fails to compile with |
Fixed |
Wait a minute: does this test work or not? Has it been reenabled on master yet? Is there a latent bug in NLL still? |
The test was reenabled in #46320. |
Thanks @matthewjasper sorry for the noise, |
Compiling with -Zborrowck-mir does not reveal the problem, but compiling with -Znll does:
@arielb1 said that this is due to us having an incorrect MIR borrowck before, and this should really throw a compilation error as seen.
Temporarily disabling this test in order to land my patch at #46100.
cc @nikomatsakis @arielb1 @pnkfelix
The text was updated successfully, but these errors were encountered: