Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/tools/tidy/src/style.rs
Original file line number Diff line number Diff line change
Expand Up @@ -326,8 +326,8 @@ static PROBLEMATIC_REGEX: LazyLock<regex::RegexSet> = LazyLock::new(|| {

fn check_file_style(base_path: &Path, check: &mut RunningCheck, file: &Path, contents: &str) {
// In some cases, a style check would be triggered by its own implementation
// or comments. A simple workaround is to just allowlist this file.
let this_file = Path::new(file!());
// or comments. Use a repository-relative path because file!() may be remapped.
let this_file = Path::new("src/tools/tidy/src/style.rs");
let codegen_file = Path::new("src/tools/tidy/src/codegen.rs");

let path_str = file.to_string_lossy();
Expand Down
Loading