Rollup merge of #129816 - RalfJung:tidy-feature-issue-mismatch, r=compiler-errors

tidy: say which feature gate has a stability issue mismatch

This gives some valuable context to what the error is actually about :)
This commit is contained in:
Matthias Krüger 2024-08-31 20:36:26 +02:00 committed by GitHub
commit 08b813b30e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -455,9 +455,10 @@ fn get_and_check_lib_features(
if f.tracking_issue != s.tracking_issue && f.level != Status::Accepted { if f.tracking_issue != s.tracking_issue && f.level != Status::Accepted {
tidy_error!( tidy_error!(
bad, bad,
"{}:{}: `issue` \"{}\" mismatches the {} `issue` of \"{}\"", "{}:{}: feature gate {} has inconsistent `issue`: \"{}\" mismatches the {} `issue` of \"{}\"",
file.display(), file.display(),
line, line,
name,
f.tracking_issue_display(), f.tracking_issue_display(),
display, display,
s.tracking_issue_display(), s.tracking_issue_display(),