diff options
| author | Nicholas Nethercote <nnethercote@mozilla.com> | 2019-09-05 15:52:47 +1000 |
|---|---|---|
| committer | Nicholas Nethercote <nnethercote@mozilla.com> | 2019-10-15 14:23:27 +1100 |
| commit | 57d33b155f31ca8c9d17371416d085c66ab4e61c (patch) | |
| tree | bc2fec898b9135a9d417eb7c968ed060b98415fb /src/libsyntax/feature_gate | |
| parent | 20cc75272619cc452e3ae6c131e61974f6aa9929 (diff) | |
| download | rust-57d33b155f31ca8c9d17371416d085c66ab4e61c.tar.gz rust-57d33b155f31ca8c9d17371416d085c66ab4e61c.zip | |
Remove custom `PartialEq` impls for `LocalInternedString`.
This is on-trend with the recent changes simplifying `LocalInternedString` and reducing its use.
Diffstat (limited to 'src/libsyntax/feature_gate')
| -rw-r--r-- | src/libsyntax/feature_gate/check.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/feature_gate/check.rs b/src/libsyntax/feature_gate/check.rs index 9e40b1a26ac..5f79050c5b8 100644 --- a/src/libsyntax/feature_gate/check.rs +++ b/src/libsyntax/feature_gate/check.rs @@ -769,7 +769,7 @@ pub fn get_features(span_handler: &Handler, krate_attrs: &[ast::Attribute], } if let Some(allowed) = allow_features.as_ref() { - if allowed.iter().find(|f| *f == name.as_str()).is_none() { + if allowed.iter().find(|&f| f == &name.as_str() as &str).is_none() { span_err!(span_handler, mi.span(), E0725, "the feature `{}` is not in the list of allowed features", name); |
