Panic when checking an unknown stability attribute
This commit is contained in:
parent
1e1d6fe84d
commit
e11b4b8e02
1 changed files with 3 additions and 1 deletions
|
@ -428,9 +428,11 @@ where
|
|||
ConstStability { level, feature, promotable: false },
|
||||
attr.span,
|
||||
));
|
||||
} else {
|
||||
} else if sym::rustc_default_body_unstable == meta_name {
|
||||
body_stab =
|
||||
Some((DefaultBodyStability { level, feature }, attr.span));
|
||||
} else {
|
||||
unreachable!("Unknown stability attribute {meta_name}");
|
||||
}
|
||||
}
|
||||
(None, _, _) => {
|
||||
|
|
Loading…
Add table
Reference in a new issue