From d1403d2d7c273f9392940d0d640d6e4c997b5222 Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Mon, 8 Aug 2016 13:37:39 +0200 Subject: [PATCH] Remove "known problem" that only occurs without MIR. Since clippy needs nightly, and nightly is MIR-by-default, we can get rid of the warning. --- clippy_lints/src/returns.rs | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/clippy_lints/src/returns.rs b/clippy_lints/src/returns.rs index 770194dddbe1..456f17e74a7f 100644 --- a/clippy_lints/src/returns.rs +++ b/clippy_lints/src/returns.rs @@ -10,10 +10,7 @@ use utils::{span_note_and_lint, span_lint_and_then, snippet_opt, match_path_ast, /// **Why is this bad?** Removing the `return` and semicolon will make the code /// more rusty. /// -/// **Known problems:** Following this lint's advice may currently run afoul of -/// Rust issue [#31439](https://github.com/rust-lang/rust/issues/31439), so if -/// you get lifetime errors, please roll back the change until that issue is -/// fixed. +/// **Known problems:** None. /// /// **Example:** /// ```rust @@ -30,10 +27,7 @@ declare_lint! { /// **Why is this bad?** It is just extraneous code. Remove it to make your code /// more rusty. /// -/// **Known problems:** Following this lint's advice may currently run afoul of -/// Rust issue [#31439](https://github.com/rust-lang/rust/issues/31439), so if -/// you get lifetime errors, please roll back the change until that issue is -/// fixed. +/// **Known problems:** None. /// /// **Example:** /// ```rust