-
Notifications
You must be signed in to change notification settings - Fork 12.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of #13285 - alex-semenyuk:ignore_todo_for_diverging_sub_ex…
…pression, r=xFrednet Diverging subexpression lint should not fire on todo!() As per #10243 it is not that helpful to point out that a subexpression diverges, so do not fire on todo changelog: [`diverging_sub_expression`]: do not trigger on todo
- Loading branch information
Showing
2 changed files
with
12 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -67,3 +67,9 @@ fn foobar() { | |
}; | ||
} | ||
} | ||
|
||
#[allow(unused)] | ||
fn ignore_todo() { | ||
let x: u32 = todo!(); | ||
println!("{x}"); | ||
} |