Allow tidy check in codegen#153166
Conversation
Add compiler/rustc_codegen_cranelift/scripts/filter_profile.rs to the ALLOWED list for bins, and add compiler/rustc_codegen_gcc/build_system/src/utils.rs to the unit test exclusion list.
| // Patch files may include tidy markers unrelated to source ordering. | ||
| || path.extension() == Some(OsStr::new("patch")) |
There was a problem hiding this comment.
The .patch was allowed because of this file.
| with open(output_file, "w", encoding="utf8") as out: | ||
| out.write("""// File generated by `rustc_codegen_gcc/tools/generate_intrinsics.py` | ||
| // DO NOT EDIT IT! | ||
| // ignore-tidy-filelength |
There was a problem hiding this comment.
I added // ignore-tidy-filelength here and also manually added it to compiler/rustc_codegen_gcc/src/intrinsic/archs.rs.
| @@ -65,6 +65,7 @@ pub fn check(root_path: &Path, stdlib: bool, tidy_ctx: TidyCtx) { | |||
| || path.ends_with("library/alloc/src/collections/vec_deque/tests.rs") | |||
| || path.ends_with("library/alloc/src/raw_vec/tests.rs") | |||
| || path.ends_with("library/alloc/src/wtf8/tests.rs") | |||
| || path.ends_with("compiler/rustc_codegen_gcc/build_system/src/utils.rs") | |||
There was a problem hiding this comment.
rust/compiler/rustc_codegen_gcc/build_system/src/utils.rs
Lines 426 to 442 in 6a979b3
Because of this test, should I move the test or allow this?
It felt like a strong unit test, and I didn't see a good place for it, so I allowed it for now.
|
Some changes occurred in compiler/rustc_codegen_cranelift cc @bjorn3 Some changes occurred in compiler/rustc_codegen_gcc |
|
Tidy does not run inside the cg_clif and cg_gcc repos, which means whenever we do a sync, there is a fair chance that we did be forced to male changes when tidy complains. |
I would suggest not running full Also, doesn't rust-lang/compiler-team#963 only say TODO -> FIXME? Not other |
|
Ah, I overinterpreted it — my mistake. Thanks for the clarification. I’ll update it accordingly. |
Fixes: #152280
MCP: rust-lang/compiler-team#963
I've separated the commits for easier review.
r? lcnr