fix nightly breakage
This commit is contained in:
parent
d305bca25b
commit
3f34b65747
23 changed files with 201 additions and 259 deletions
|
|
@ -1,6 +1,6 @@
|
|||
use rustc::lint::*;
|
||||
use rustc_front::hir::*;
|
||||
use syntax::ast::Lit_::LitStr;
|
||||
use syntax::ast::LitKind;
|
||||
|
||||
use utils::{span_lint, in_external_macro, match_path, BEGIN_UNWIND};
|
||||
|
||||
|
|
@ -37,7 +37,7 @@ impl LateLintPass for PanicPass {
|
|||
let ExprPath(None, ref path) = fun.node,
|
||||
match_path(path, &BEGIN_UNWIND),
|
||||
let ExprLit(ref lit) = params[0].node,
|
||||
let LitStr(ref string, _) = lit.node,
|
||||
let LitKind::Str(ref string, _) = lit.node,
|
||||
string.contains('{'),
|
||||
let Some(sp) = cx.sess().codemap()
|
||||
.with_expn_info(expr.span.expn_id,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue