about summary refs log tree commit diff
path: root/src/libsyntax/parse
diff options
context:
space:
mode:
authorNicholas Nethercote <nnethercote@mozilla.com>2019-09-05 15:52:47 +1000
committerNicholas Nethercote <nnethercote@mozilla.com>2019-10-15 14:23:27 +1100
commit57d33b155f31ca8c9d17371416d085c66ab4e61c (patch)
treebc2fec898b9135a9d417eb7c968ed060b98415fb /src/libsyntax/parse
parent20cc75272619cc452e3ae6c131e61974f6aa9929 (diff)
downloadrust-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/parse')
-rw-r--r--src/libsyntax/parse/literal.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/parse/literal.rs b/src/libsyntax/parse/literal.rs
index fcd5b2782fd..95588d84f38 100644
--- a/src/libsyntax/parse/literal.rs
+++ b/src/libsyntax/parse/literal.rs
@@ -204,7 +204,7 @@ impl LitKind {
         let (kind, symbol, suffix) = match *self {
             LitKind::Str(symbol, ast::StrStyle::Cooked) => {
                 // Don't re-intern unless the escaped string is different.
-                let s = &symbol.as_str();
+                let s: &str = &symbol.as_str();
                 let escaped = s.escape_default().to_string();
                 let symbol = if escaped == *s { symbol } else { Symbol::intern(&escaped) };
                 (token::Str, symbol, None)