From 29c058f0af1306e6c7d7a6b633a758d36dc89fef Mon Sep 17 00:00:00 2001 From: Andre Bogus Date: Mon, 11 Apr 2016 23:59:52 +0200 Subject: [PATCH] add a note of rust-lang/rust/#31439 to the wiki text --- src/returns.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/returns.rs b/src/returns.rs index 43ea37801733..bb94b59df7d0 100644 --- a/src/returns.rs +++ b/src/returns.rs @@ -9,7 +9,7 @@ use utils::{span_lint, span_lint_and_then, snippet_opt, match_path_ast, in_exter /// /// **Why is this bad?** Removing the `return` and semicolon will make the code more rusty. /// -/// **Known problems:** None +/// **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. /// /// **Example:** `fn foo(x: usize) { return x; }` declare_lint! { @@ -21,7 +21,7 @@ declare_lint! { /// /// **Why is this bad?** It is just extraneous code. Remove it to make your code more rusty. /// -/// **Known problems:** None +/// **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. /// /// **Example:** `{ let x = ..; x }` declare_lint! {