We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1e1d6fe commit e11b4b8Copy full SHA for e11b4b8
compiler/rustc_attr/src/builtin.rs
@@ -428,9 +428,11 @@ where
428
ConstStability { level, feature, promotable: false },
429
attr.span,
430
));
431
- } else {
+ } else if sym::rustc_default_body_unstable == meta_name {
432
body_stab =
433
Some((DefaultBodyStability { level, feature }, attr.span));
434
+ } else {
435
+ unreachable!("Unknown stability attribute {meta_name}");
436
}
437
438
(None, _, _) => {
0 commit comments