about summary refs log tree commit diff
path: root/compiler/rustc_macros/src/session_diagnostic.rs
diff options
context:
space:
mode:
authorRuby Lazuli <general@patchmixolydic.com>2022-02-11 18:21:02 -0600
committerRuby Lazuli <general@patchmixolydic.com>2022-02-27 08:52:37 -0600
commit6dcf5d8fdeb341a3ec2ed00d2cb4449da35d8623 (patch)
tree3b3e3598c2edfbf34bf9deea021a53efae392ec3 /compiler/rustc_macros/src/session_diagnostic.rs
parent6499c5e7fc173a3f55b7a3bd1e6a50e9edef782d (diff)
downloadrust-6dcf5d8fdeb341a3ec2ed00d2cb4449da35d8623.tar.gz
rust-6dcf5d8fdeb341a3ec2ed00d2cb4449da35d8623.zip
Lint against more useless `#[must_use]` attributes
This expands the existing `#[must_use]` check in `unused_attributes`
to lint against pretty much everything `#[must_use]` doesn't support.
Fixes #93906.
Diffstat (limited to 'compiler/rustc_macros/src/session_diagnostic.rs')
-rw-r--r--compiler/rustc_macros/src/session_diagnostic.rs1
1 files changed, 0 insertions, 1 deletions
diff --git a/compiler/rustc_macros/src/session_diagnostic.rs b/compiler/rustc_macros/src/session_diagnostic.rs
index 80dcf99da62..cb0654e0133 100644
--- a/compiler/rustc_macros/src/session_diagnostic.rs
+++ b/compiler/rustc_macros/src/session_diagnostic.rs
@@ -587,7 +587,6 @@ impl<'a> SessionDiagnosticDeriveBuilder<'a> {
         // next call to `it.next()` retrieves the next character.
         while let Some(c) = it.next() {
             if c == '{' && *it.peek().unwrap_or(&'\0') != '{' {
-                #[must_use]
                 let mut eat_argument = || -> Option<String> {
                     let mut result = String::new();
                     // Format specifiers look like