Skip to content

Commit 0b77904

Browse files
committed
Merge pull request #850 from Manishearth/note_31439
add a note of rust-lang/rust/#31439 to the wiki text
2 parents b589b08 + 29c058f commit 0b77904

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/returns.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use utils::{span_lint, span_lint_and_then, snippet_opt, match_path_ast, in_exter
99
///
1010
/// **Why is this bad?** Removing the `return` and semicolon will make the code more rusty.
1111
///
12-
/// **Known problems:** None
12+
/// **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.
1313
///
1414
/// **Example:** `fn foo(x: usize) { return x; }`
1515
declare_lint! {
@@ -21,7 +21,7 @@ declare_lint! {
2121
///
2222
/// **Why is this bad?** It is just extraneous code. Remove it to make your code more rusty.
2323
///
24-
/// **Known problems:** None
24+
/// **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.
2525
///
2626
/// **Example:** `{ let x = ..; x }`
2727
declare_lint! {

0 commit comments

Comments
 (0)