diff options
| author | Ralf Jung <post@ralfj.de> | 2024-10-23 08:18:19 +0100 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2024-10-23 09:14:43 +0100 |
| commit | e82bca6f32bd74e018c8bd46fe33986eae514189 (patch) | |
| tree | d1200d3032689eef799d045c8a71d9040686077b /compiler/rustc_feature/src/lib.rs | |
| parent | 6ad17bd30c68c90792cb0e4fca8208be41493f6b (diff) | |
| download | rust-e82bca6f32bd74e018c8bd46fe33986eae514189.tar.gz rust-e82bca6f32bd74e018c8bd46fe33986eae514189.zip | |
remove no longer needd UnstableFeature type
Diffstat (limited to 'compiler/rustc_feature/src/lib.rs')
| -rw-r--r-- | compiler/rustc_feature/src/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_feature/src/lib.rs b/compiler/rustc_feature/src/lib.rs index 8f4c0b0ac95..7c4996c1412 100644 --- a/compiler/rustc_feature/src/lib.rs +++ b/compiler/rustc_feature/src/lib.rs @@ -94,8 +94,8 @@ impl UnstableFeatures { fn find_lang_feature_issue(feature: Symbol) -> Option<NonZero<u32>> { // Search in all the feature lists. - if let Some(f) = UNSTABLE_FEATURES.iter().find(|f| f.feature.name == feature) { - return f.feature.issue; + if let Some(f) = UNSTABLE_FEATURES.iter().find(|f| f.name == feature) { + return f.issue; } if let Some(f) = ACCEPTED_FEATURES.iter().find(|f| f.name == feature) { return f.issue; |
