diff options
| author | Dylan DPC <99973273+Dylan-DPC@users.noreply.github.com> | 2022-10-02 20:42:22 +0530 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-10-02 20:42:22 +0530 |
| commit | 890a327c8635cdfc9cd7d97dbd2d916e863e7fc7 (patch) | |
| tree | 0b08ee9e358939158e0c52036241e7ce71f4896f /src | |
| parent | f3ab5a66a93d00da8764057f1503486b8a2516b3 (diff) | |
| parent | da78c1fd43c39166e09dd4b5cf93a66396841c2d (diff) | |
| download | rust-890a327c8635cdfc9cd7d97dbd2d916e863e7fc7.tar.gz rust-890a327c8635cdfc9cd7d97dbd2d916e863e7fc7.zip | |
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?
Diffstat (limited to 'src')
| -rw-r--r-- | src/tools/tidy/src/features.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/tools/tidy/src/features.rs b/src/tools/tidy/src/features.rs index 28a0700a64b..d8b3903b98e 100644 --- a/src/tools/tidy/src/features.rs +++ b/src/tools/tidy/src/features.rs @@ -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"), }; |
