@@ -4,7 +4,7 @@ use rustc::lint::*;
44use std:: ops:: Deref ;
55use syntax:: ast:: LitKind ;
66use syntax:: ptr;
7- use syntax:: symbol:: InternedString ;
7+ use syntax:: symbol:: LocalInternedString ;
88use syntax_pos:: Span ;
99use utils:: { is_expn_of, match_def_path, match_path, resolve_node, span_lint, span_lint_and_sugg} ;
1010use utils:: { opt_def_id, paths, last_path_segment} ;
@@ -389,7 +389,7 @@ where
389389}
390390
391391/// Check for fmtstr = "... \n"
392- fn has_newline_end ( args : & HirVec < Expr > , fmtstr : InternedString , fmtlen : usize ) -> bool {
392+ fn has_newline_end ( args : & HirVec < Expr > , fmtstr : LocalInternedString , fmtlen : usize ) -> bool {
393393 if_chain ! {
394394 // check the final format string part
395395 if let Some ( '\n' ) = fmtstr. chars( ) . last( ) ;
@@ -407,7 +407,7 @@ fn has_newline_end(args: &HirVec<Expr>, fmtstr: InternedString, fmtlen: usize) -
407407}
408408
409409/// Check for writeln!(v, "") / println!("")
410- fn has_empty_arg < ' a , ' tcx > ( cx : & LateContext < ' a , ' tcx > , span : Span , fmtstr : InternedString , fmtlen : usize ) -> Option < Span > {
410+ fn has_empty_arg < ' a , ' tcx > ( cx : & LateContext < ' a , ' tcx > , span : Span , fmtstr : LocalInternedString , fmtlen : usize ) -> Option < Span > {
411411 if_chain ! {
412412 // check that the string is empty
413413 if fmtlen == 1 ;
@@ -427,7 +427,7 @@ fn has_empty_arg<'a, 'tcx>(cx: &LateContext<'a, 'tcx>, span: Span, fmtstr: Inter
427427}
428428
429429/// Returns the slice of format string parts in an `Arguments::new_v1` call.
430- fn get_argument_fmtstr_parts ( expr : & Expr ) -> Option < ( InternedString , usize ) > {
430+ fn get_argument_fmtstr_parts ( expr : & Expr ) -> Option < ( LocalInternedString , usize ) > {
431431 if_chain ! {
432432 if let ExprAddrOf ( _, ref expr) = expr. node; // &["…", "…", …]
433433 if let ExprArray ( ref exprs) = expr. node;
0 commit comments