Panic when checking an unknown stability attribute
This commit is contained in:
parent
1e1d6fe84d
commit
e11b4b8e02
@ -428,9 +428,11 @@ fn find_stability_generic<'a, I>(
|
||||
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…
Reference in New Issue
Block a user