@@ -4,7 +4,7 @@ use rustc::lint::*;
4
4
use std:: ops:: Deref ;
5
5
use syntax:: ast:: LitKind ;
6
6
use syntax:: ptr;
7
- use syntax:: symbol:: InternedString ;
7
+ use syntax:: symbol:: LocalInternedString ;
8
8
use syntax_pos:: Span ;
9
9
use utils:: { is_expn_of, match_def_path, match_path, resolve_node, span_lint, span_lint_and_sugg} ;
10
10
use utils:: { opt_def_id, paths, last_path_segment} ;
@@ -389,7 +389,7 @@ where
389
389
}
390
390
391
391
/// 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 {
393
393
if_chain ! {
394
394
// check the final format string part
395
395
if let Some ( '\n' ) = fmtstr. chars( ) . last( ) ;
@@ -407,7 +407,7 @@ fn has_newline_end(args: &HirVec<Expr>, fmtstr: InternedString, fmtlen: usize) -
407
407
}
408
408
409
409
/// 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 > {
411
411
if_chain ! {
412
412
// check that the string is empty
413
413
if fmtlen == 1 ;
@@ -427,7 +427,7 @@ fn has_empty_arg<'a, 'tcx>(cx: &LateContext<'a, 'tcx>, span: Span, fmtstr: Inter
427
427
}
428
428
429
429
/// 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 ) > {
431
431
if_chain ! {
432
432
if let ExprAddrOf ( _, ref expr) = expr. node; // &["…", "…", …]
433
433
if let ExprArray ( ref exprs) = expr. node;
0 commit comments