-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
Error compiling problem case #4 from nll-rfc #46361
Copy link
Copy link
Closed
Labels
A-NLLArea: Non-lexical lifetimes (NLL)Area: Non-lexical lifetimes (NLL)C-bugCategory: This is a bug.Category: This is a bug.E-mentorCall for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.Call for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.E-needs-testCall for participation: An issue has been fixed and does not reproduce, but no test has been added.Call for participation: An issue has been fixed and does not reproduce, but no test has been added.
Metadata
Metadata
Assignees
Labels
A-NLLArea: Non-lexical lifetimes (NLL)Area: Non-lexical lifetimes (NLL)C-bugCategory: This is a bug.Category: This is a bug.E-mentorCall for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.Call for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.E-needs-testCall for participation: An issue has been fixed and does not reproduce, but no test has been added.Call for participation: An issue has been fixed and does not reproduce, but no test has been added.
Type
Fields
Give feedbackNo fields configured for issues without a type.
UPDATE: This example works now, but needs someone to add a test. See mentoring instructions below.
I'm trying to compile some examples using nonlexical lifetimes. To do so, I'm compiling rustc using the
masterbranch, and the-Z nllcompiler option.By compiling "Problem case 4: mutating &mut references" from nll-rfc, I get some errors.
Program
Output of `rustc -g -Zverbose -Znll nll-problem-case-4.rs`:
My questions are:
rustcwith./configure --enable-debug --enable-debuginfo, but I still don't see thedebug!("mir_borrowck done");message from the compiler.