about summary refs log tree commit diff
path: root/compiler/rustc_lint/src/errors.rs
diff options
context:
space:
mode:
authorXiretza <xiretza@xiretza.xyz>2022-10-22 15:48:55 +0200
committerXiretza <xiretza@xiretza.xyz>2022-10-26 15:04:09 +0200
commitcd621be7821834e5322f0acfb9a7826d4397401d (patch)
treecf852b2f6d6aa52c748f32a25d7b2b7df64c102e /compiler/rustc_lint/src/errors.rs
parent20f2958b8af32dd08173272a7ede09aaa255c980 (diff)
downloadrust-cd621be7821834e5322f0acfb9a7826d4397401d.tar.gz
rust-cd621be7821834e5322f0acfb9a7826d4397401d.zip
Convert all #[suggestion_*] attributes to #[suggestion(style = "...")]
Using the following command:

find compiler/ -type f -name '*.rs' -exec perl -i -gpe \
    's/(#\[\w*suggestion)_(short|verbose|hidden)\(\s*(\S+,)?/\1(\3style = "\2",/g' \
    '{}' +
Diffstat (limited to 'compiler/rustc_lint/src/errors.rs')
-rw-r--r--compiler/rustc_lint/src/errors.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_lint/src/errors.rs b/compiler/rustc_lint/src/errors.rs
index a49d1bdacc2..1a769893f55 100644
--- a/compiler/rustc_lint/src/errors.rs
+++ b/compiler/rustc_lint/src/errors.rs
@@ -83,7 +83,7 @@ pub struct UnknownToolInScopedLint {
 pub struct BuiltinEllpisisInclusiveRangePatterns {
     #[primary_span]
     pub span: Span,
-    #[suggestion_short(code = "{replace}", applicability = "machine-applicable")]
+    #[suggestion(style = "short", code = "{replace}", applicability = "machine-applicable")]
     pub suggestion: Span,
     pub replace: String,
 }