about summary refs log tree commit diff
path: root/compiler/rustc_lint
diff options
context:
space:
mode:
authorNilstrieb <48135649+Nilstrieb@users.noreply.github.com>2022-12-18 21:02:14 +0100
committerNilstrieb <48135649+Nilstrieb@users.noreply.github.com>2022-12-18 21:02:14 +0100
commit88d5f7f4ce72e3489193fb41e687c53809b5c6bd (patch)
tree7db76b11fa1b3b9621793929691bac32d86d0116 /compiler/rustc_lint
parentb4d739ef1285bc983383ec726314d9455f6bfb77 (diff)
downloadrust-88d5f7f4ce72e3489193fb41e687c53809b5c6bd.tar.gz
rust-88d5f7f4ce72e3489193fb41e687c53809b5c6bd.zip
Make `#[custom_encodable]` an attribute for `newtype_index`
Makes the syntax a little more rusty.
Diffstat (limited to 'compiler/rustc_lint')
-rw-r--r--compiler/rustc_lint/src/levels.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_lint/src/levels.rs b/compiler/rustc_lint/src/levels.rs
index 847c356b83c..7fed40b201b 100644
--- a/compiler/rustc_lint/src/levels.rs
+++ b/compiler/rustc_lint/src/levels.rs
@@ -39,8 +39,8 @@ struct LintLevelSets {
 }
 
 rustc_index::newtype_index! {
+    #[custom_encodable] // we don't need encoding
     struct LintStackIndex {
-        ENCODABLE = custom, // we don't need encoding
         const COMMAND_LINE = 0,
     }
 }