mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Upgrade to rustc 1.3.0-dev (f3b97a74a 2015-07-03)
This commit is contained in:
parent
02d84a1347
commit
75e3e787f6
15 changed files with 96 additions and 116 deletions
|
@ -4,7 +4,6 @@
|
|||
|
||||
use syntax::ast;
|
||||
use rustc::lint::{Context, LintPass, LintArray};
|
||||
use rustc::middle::ty::expr_ty;
|
||||
use rustc::middle::ty;
|
||||
|
||||
declare_lint!(STR_TO_STRING, Deny,
|
||||
|
@ -38,7 +37,7 @@ impl LintPass for StrToStringPass {
|
|||
_ => ty
|
||||
}
|
||||
}
|
||||
match walk_ty(expr_ty(cx.tcx, expr)).sty {
|
||||
match walk_ty(cx.tcx.expr_ty(expr)).sty {
|
||||
ty::TyStr => true,
|
||||
_ => false
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue