-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
NLL: must review all .nll.stderr files #49862
Copy link
Copy link
Closed
Labels
A-NLLArea: Non-lexical lifetimes (NLL)Area: Non-lexical lifetimes (NLL)C-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.NLL-diagnosticsWorking towards the "diagnostic parity" goalWorking towards the "diagnostic parity" goalT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Metadata
Metadata
Assignees
Labels
A-NLLArea: Non-lexical lifetimes (NLL)Area: Non-lexical lifetimes (NLL)C-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.NLL-diagnosticsWorking towards the "diagnostic parity" goalWorking towards the "diagnostic parity" goalT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Type
Fields
Give feedbackNo fields configured for issues without a type.
#49861 checkpoints the state of NLL blindly. I made almost no attempt to check whether the content of each
.nll.stderrfile makes sense.(I did sanity check a couple to just make sure that
--compile-mode=nllseems like it is working, but even then I wouldn't call that skimming any sort of formal review.)So, here's the issue: each instance of
foo.nll.stderrrepresents a difference in the output from the AST-borrowck versus NLL borrowck.Here are some reasons we might see different output:
foo.nll.stderror a#[rustc_error]diagnostic output (see compiletest: compare-mode cannot handle mixed success + failure #49855 for an explanation of that).run-passtest.In this issue, I am going to make a list of all of the
.nll.stderrfiles added in #49861. The idea is that people can then volunteer to review that stderr output under NLL mode, comparing it to thestderroutput under AST borrowck, and figure out which case above the test falls into.