@@ -13,7 +13,7 @@ use rustc_data_structures::fx::{FxHashMap, FxHashSet};
13
13
use rustc_errors:: Applicability ;
14
14
use syntax:: ast:: { Crate as AstCrate , ItemKind , Name } ;
15
15
use syntax:: source_map:: Span ;
16
- use syntax_pos:: symbol:: LocalInternedString ;
16
+ use syntax_pos:: symbol:: SymbolStr ;
17
17
18
18
declare_clippy_lint ! {
19
19
/// **What it does:** Checks for various things we like to keep tidy in clippy.
@@ -112,7 +112,7 @@ impl EarlyLintPass for ClippyLintsInternal {
112
112
if let ItemKind :: Mod ( ref utils_mod) = utils. kind {
113
113
if let Some ( paths) = utils_mod. items . iter ( ) . find ( |item| item. ident . name . as_str ( ) == "paths" ) {
114
114
if let ItemKind :: Mod ( ref paths_mod) = paths. kind {
115
- let mut last_name: Option < LocalInternedString > = None ;
115
+ let mut last_name: Option < SymbolStr > = None ;
116
116
for item in & * paths_mod. items {
117
117
let name = item. ident . as_str ( ) ;
118
118
if let Some ( ref last_name) = last_name {
@@ -279,8 +279,8 @@ declare_lint_pass!(OuterExpnDataPass => [OUTER_EXPN_EXPN_DATA]);
279
279
impl < ' a , ' tcx > LateLintPass < ' a , ' tcx > for OuterExpnDataPass {
280
280
fn check_expr ( & mut self , cx : & LateContext < ' a , ' tcx > , expr : & ' tcx hir:: Expr ) {
281
281
let ( method_names, arg_lists, spans) = method_calls ( expr, 2 ) ;
282
- let method_names: Vec < LocalInternedString > = method_names. iter ( ) . map ( |s| s. as_str ( ) ) . collect ( ) ;
283
- let method_names: Vec < & str > = method_names. iter ( ) . map ( std :: convert :: AsRef :: as_ref ) . collect ( ) ;
282
+ let method_names: Vec < SymbolStr > = method_names. iter ( ) . map ( |s| s. as_str ( ) ) . collect ( ) ;
283
+ let method_names: Vec < & str > = method_names. iter ( ) . map ( |s| & * * s ) . collect ( ) ;
284
284
if_chain ! {
285
285
if let [ "expn_data" , "outer_expn" ] = method_names. as_slice( ) ;
286
286
let args = arg_lists[ 1 ] ;
0 commit comments