Skip to content

Commit

Permalink
Add banner to suggest making an exception
Browse files Browse the repository at this point in the history
  • Loading branch information
senekor committed Dec 17, 2023
1 parent 28efd15 commit c6c67cb
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion rust-tooling/ci-tests/tests/no_underscore_prefixed_idents.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,13 @@ fn no_underscore_prefixed_idents() {
{
if identifier_like.starts_with('_') && identifier_like != "_" {
panic!(
"Exercise stub in {} contains underscore-prefixed identifier {}",
"Exercise stub in {} contains underscore-prefixed identifier {}
╔════════════════════════════════════════════════════════════════╗
║ The use of an underscore-prefixed identifier may be justified. ║
║ If you think it is, add it to the list of exceptions. ║
╚════════════════════════════════════════════════════════════════╝
",
lib_rs.display(),
identifier_like
);
Expand Down

0 comments on commit c6c67cb

Please sign in to comment.