mirror of
https://github.com/servo/servo.git
synced 2025-07-29 18:20:24 +01:00
Update to rustc 2d0cbf3e3e25e092bd9e4c94d08e446b680869f0.
This commit is contained in:
parent
57cc84b293
commit
73a7e92bfd
22 changed files with 232 additions and 132 deletions
|
@ -8,7 +8,6 @@ use rustc::ast_map;
|
|||
use rustc::lint::{Context, LintPass, LintArray};
|
||||
use rustc::middle::ty::expr_ty;
|
||||
use rustc::middle::{ty, def};
|
||||
use rustc::util::ppaux::Repr;
|
||||
use utils::unsafe_context;
|
||||
|
||||
declare_lint!(UNROOTED_MUST_ROOT, Deny,
|
||||
|
@ -163,7 +162,7 @@ impl LintPass for UnrootedPass {
|
|||
ty::TyEnum(did, _) => {
|
||||
if ty::has_attr(cx.tcx, did, "must_root") {
|
||||
cx.span_lint(UNROOTED_MUST_ROOT, expr.span,
|
||||
&format!("Expression of type {} must be rooted", t.repr(cx.tcx)));
|
||||
&format!("Expression of type {:?} must be rooted", t));
|
||||
}
|
||||
}
|
||||
_ => {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue