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.
rustc_const_unstable
1 parent de341fe commit f606127Copy full SHA for f606127
src/tools/tidy/src/features.rs
@@ -538,7 +538,9 @@ fn map_lib_features(
538
becoming_feature = None;
539
if line.contains("rustc_const_unstable(") {
540
// `const fn` features are handled specially.
541
- let feature_name = match find_attr_val(line, "feature") {
+ let feature_name = match find_attr_val(line, "feature").or_else(|| {
542
+ iter_lines.peek().and_then(|next| find_attr_val(next.1, "feature"))
543
+ }) {
544
Some(name) => name,
545
None => err!("malformed stability attribute: missing `feature` key"),
546
};
0 commit comments