compiletest: Make diagnostic kind mandatory on line annotations #862
Labels
final-comment-period
The FCP has started, most (if not all) team members are in agreement
major-change
A proposal to make a major change to rustc
T-compiler
Add this label so rfcbot knows to poll the compiler team
Proposal
This is an MCP for PR rust-lang/rust#139720.
Compiletest currently accepts line annotations without kind in UI tests.
Such annotations have two effects.
//~ NOTE my msg
in a test requires all otherNOTE
diagnostics in the same test to be annotated. Implicit//~ my msg
will just match the note and won't require other annotations.The second functionality has a replacement since recently - directive
//@ dont-require-annotations: NOTE
.The proposal is to remove support for
//~ my message
annotations and always require specifying the kind.Unwanted additional annotations can be suppressed using the
dont-require-annotations
directive if necessary.Mentors or Reviewers
@jieyouxu
Process
The main points of the Major Change Process are as follows:
@rustbot second
.-C flag
, then full team check-off is required.@rfcbot fcp merge
on either the MCP or the PR.You can read more about Major Change Proposals on forge.
The text was updated successfully, but these errors were encountered: