Rollup merge of #102556 - WaffleLapkin:implied_by_btree_new, r=Mark-Simulacrum
Make `feature(const_btree_len)` implied by `feature(const_btree_new)` ...this should fix code that used the old feature that was changed in #102197 cc ```@davidtwco``` it seems like tidy doesn't check `implied_by`, should it?
This commit is contained in:
commit
890a327c86
3 changed files with 23 additions and 5 deletions
|
|
@ -538,7 +538,9 @@ fn map_lib_features(
|
|||
becoming_feature = None;
|
||||
if line.contains("rustc_const_unstable(") {
|
||||
// `const fn` features are handled specially.
|
||||
let feature_name = match find_attr_val(line, "feature") {
|
||||
let feature_name = match find_attr_val(line, "feature").or_else(|| {
|
||||
iter_lines.peek().and_then(|next| find_attr_val(next.1, "feature"))
|
||||
}) {
|
||||
Some(name) => name,
|
||||
None => err!("malformed stability attribute: missing `feature` key"),
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue