diff options
author | Manish Goregaokar <manishsmail@gmail.com> | 2015-06-14 20:15:31 +0530 |
---|---|---|
committer | Manish Goregaokar <manishsmail@gmail.com> | 2015-06-14 20:15:31 +0530 |
commit | 3cdc412a4cf76a1ec77219381966e0f0fc11d732 (patch) | |
tree | b82665e2811cc84afeb674ed215d4b418dfec4d4 /components/plugins/lints/str_to_string.rs | |
parent | 9fbffff604ba16a1a5905267fb87342b18522f29 (diff) | |
download | servo-3cdc412a4cf76a1ec77219381966e0f0fc11d732.tar.gz servo-3cdc412a4cf76a1ec77219381966e0f0fc11d732.zip |
Upgrade plugins
Diffstat (limited to 'components/plugins/lints/str_to_string.rs')
-rw-r--r-- | components/plugins/lints/str_to_string.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/plugins/lints/str_to_string.rs b/components/plugins/lints/str_to_string.rs index d93268844e0..cf8c4b396ad 100644 --- a/components/plugins/lints/str_to_string.rs +++ b/components/plugins/lints/str_to_string.rs @@ -34,12 +34,12 @@ impl LintPass for StrToStringPass { fn is_str(cx: &Context, expr: &ast::Expr) -> bool { fn walk_ty<'t>(ty: ty::Ty<'t>) -> ty::Ty<'t> { match ty.sty { - ty::ty_ptr(ref tm) | ty::ty_rptr(_, ref tm) => walk_ty(tm.ty), + ty::TyRef(_, ref tm) | ty::TyRawPtr(ref tm) => walk_ty(tm.ty), _ => ty } } match walk_ty(expr_ty(cx.tcx, expr)).sty { - ty::ty_str => true, + ty::TyStr => true, _ => false } } |