Deny todo!() in tidy#157706
Conversation
|
Some changes occurred in cc @BoxyUwU Some changes occurred in compiler/rustc_builtin_macros/src/autodiff.rs cc @ZuseZ4 Some changes occurred in compiler/rustc_sanitizers cc @rcvalle Some changes occurred in match checking cc @Nadrieril Some changes occurred to the CTFE machinery This PR changes rustc_public cc @oli-obk, @celinval, @ouz-a, @makai410 Some changes occurred to the CTFE / Miri interpreter cc @rust-lang/miri |
|
r? @Kivooeo rustbot has assigned @Kivooeo. Use Why was this reviewer chosen?The reviewer was selected based on:
|
This comment has been minimized.
This comment has been minimized.
|
This PR changes a file inside Some changes occurred in coverage tests. cc @Zalathar Some changes occurred in GUI tests. Some changes occurred in HTML/CSS/JS. cc @GuillaumeGomez, @lolbinarycat The parser was modified, potentially altering the grammar of (stable) Rust cc @fmease This PR modifies |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
| if trimmed.contains("ignore-tidy") { | ||
| return false; | ||
| } |
There was a problem hiding this comment.
so, the backticks lint is cursed. It considers whole comment blocks, and so concatenates comments on consecutive lines together. To answer the question of "why does odd_backticks need to be stored in comment_block": that's because when you do a line ignore for odd backticks, you want it to ignore odd backticks in the comment block starting on the next line (but possibly continuing for a few more lines).
Importantly, we shouldn't consider the starting // ignore-tidy as part of the comment block itself, otherwise the ignore "should have been one line higher" to be before the comment block starts, which it can't be because that argument repeats infinitely. This is prolly not the best solution but I'm so done with this rn, not sure I'm gonna fix it.
|
Reminder, once the PR becomes ready for a review, use |
|
r? wafflelapkin |
|
|
|
This PR was rebased onto a different main commit. Here's a range-diff highlighting what actually changed. Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers. |
View all comments
Implements rust-lang/compiler-team#999
Part of #158173