mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 01:04:03 +00:00
Rollup merge of #109444 - WaffleLapkin:undeprecate_todos, r=jyn514
Change tidy error message for TODOs Blocked on #109440 (first few commits are from where) IMO "deprecated" doesn't really explain anything, I've tried to highlight the actual reason we error on TODOs. The message is not at all perfect, maybe someone has ideas how to phrase it better?
This commit is contained in:
commit
ea8bd06b56
@ -385,10 +385,12 @@ pub fn check(path: &Path, bad: &mut bool) {
|
||||
}
|
||||
if filename != "style.rs" {
|
||||
if trimmed.contains("TODO") {
|
||||
err("TODO is deprecated; use FIXME")
|
||||
err(
|
||||
"TODO is used for tasks that should be done before merging a PR; If you want to leave a message in the codebase use FIXME",
|
||||
)
|
||||
}
|
||||
if trimmed.contains("//") && trimmed.contains(" XXX") {
|
||||
err("XXX is deprecated; use FIXME")
|
||||
err("Instead of XXX use FIXME")
|
||||
}
|
||||
if any_problematic_line {
|
||||
for s in problematic_consts_strings.iter() {
|
||||
|
Loading…
Reference in New Issue
Block a user