"malformed attribute" for should_panic
missing closing quotes
#100563
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Given the following code: https://play.rust-lang.org/?version=nightly&mode=debug&edition=2021&gist=f5f8842e55751ce384c7d40390bde7e1
The current output is:
Note that in
#[should_panic(expected = "reason)]
we miss the closing quotes.This is because the attribute template is missing it:
rust/compiler/rustc_feature/src/builtin_attrs.rs
Lines 278 to 281 in 80ed61f
Fixing that should be simple as introducing it there.
The text was updated successfully, but these errors were encountered: