Skip to content

Commit

Permalink
Rollup merge of rust-lang#101535 - est31:tidy_error_fix, r=Mark-Simul…
Browse files Browse the repository at this point in the history
…acrum

Fix error printing mistake in tidy

Fixes a small bug in the error printing code added by rust-lang#100591 .
  • Loading branch information
matthiaskrgr authored Sep 7, 2022
2 parents 09e7bb4 + dc2af5f commit 497e170
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/tools/tidy/src/features.rs
Original file line number Diff line number Diff line change
Expand Up @@ -199,8 +199,7 @@ pub fn check(
if channel != "nightly" && since == Version::CurrentPlaceholder {
tidy_error!(
bad,
"The placeholder use of {kind} feature `{feature_name}` is not allowed on the {} channel",
version::VERSION_PLACEHOLDER
"The placeholder use of {kind} feature `{feature_name}` is not allowed on the {channel} channel",
);
}
}
Expand Down

0 comments on commit 497e170

Please sign in to comment.