auto merge of #3862 : Manishearth/servo/lint-fix, r=jdm

The correct thing to do here is to use `#[allow(unrooted_must_root)]` (the warning already mentions this). `#[must_root]` on functions does nothing.
This commit is contained in:
bors-servo 2014-11-03 10:54:35 -07:00
commit 21374700b6

View file

@ -112,7 +112,7 @@ impl LintPass for UnrootedPass {
ast::DefaultBlock => {
for arg in decl.inputs.iter() {
lint_unrooted_ty(cx, &*arg.ty,
"Type must be rooted, use #[must_root] on the fn definition to propagate")
"Type must be rooted")
}
}
_ => () // fn is `unsafe`