Update Rust to 1.13.0-nightly (499484f56 2016-08-18)

This commit is contained in:
Anthony Ramine 2016-08-20 13:38:52 +02:00
parent 6d56b21adf
commit 79b1f566b8
5 changed files with 144 additions and 146 deletions

View file

@ -139,10 +139,8 @@ impl LateLintPass for UnrootedPass {
}
if !in_new_function {
if let ty::FnOutput::FnConverging(ret) = ty.fn_ret().0 {
if is_unrooted_ty(cx, ret, false) {
cx.span_lint(UNROOTED_MUST_ROOT, decl.output.span(), "Type must be rooted")
}
if is_unrooted_ty(cx, ty.fn_ret().0, false) {
cx.span_lint(UNROOTED_MUST_ROOT, decl.output.span(), "Type must be rooted")
}
}
}