mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Update Rust to 1.13.0-nightly (499484f56 2016-08-18)
This commit is contained in:
parent
6d56b21adf
commit
79b1f566b8
5 changed files with 144 additions and 146 deletions
|
@ -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")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue