diff options
| author | Nicholas Nethercote <nnethercote@mozilla.com> | 2019-05-07 16:03:44 +1000 |
|---|---|---|
| committer | Nicholas Nethercote <nnethercote@mozilla.com> | 2019-05-13 09:31:30 +1000 |
| commit | 999c1fc2819e34539706b193711735d997633ef1 (patch) | |
| tree | 1ad67bb2b24d9d1e85af2a05308d994ac4ba2949 /src/libsyntax_ext/deriving | |
| parent | fb084a48e2ca663de41b316dc6ece2dceb93e24e (diff) | |
| download | rust-999c1fc2819e34539706b193711735d997633ef1.tar.gz rust-999c1fc2819e34539706b193711735d997633ef1.zip | |
Remove the equality operation between `Symbol` and strings.
And also the equality between `Path` and strings, because `Path` is made up of `Symbol`s.
Diffstat (limited to 'src/libsyntax_ext/deriving')
| -rw-r--r-- | src/libsyntax_ext/deriving/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsyntax_ext/deriving/mod.rs b/src/libsyntax_ext/deriving/mod.rs index fff54814a38..c27de692d88 100644 --- a/src/libsyntax_ext/deriving/mod.rs +++ b/src/libsyntax_ext/deriving/mod.rs @@ -6,7 +6,7 @@ use syntax::ext::base::{Annotatable, ExtCtxt, SyntaxExtension, Resolver}; use syntax::ext::build::AstBuilder; use syntax::ext::hygiene::{Mark, SyntaxContext}; use syntax::ptr::P; -use syntax::symbol::Symbol; +use syntax::symbol::{Symbol, sym}; use syntax_pos::Span; macro path_local($x:ident) { @@ -139,7 +139,7 @@ fn call_intrinsic(cx: &ExtCtxt<'_>, let intrinsic_allowed_via_allow_internal_unstable = cx .current_expansion.mark.expn_info().unwrap() .allow_internal_unstable.map_or(false, |features| features.iter().any(|&s| - s == "core_intrinsics" + s == sym::core_intrinsics )); if intrinsic_allowed_via_allow_internal_unstable { span = span.with_ctxt(cx.backtrace()); |
