rust/compiler/rustc_codegen_ssa/src/mir
Matthias Krüger 110c3df7fd
Rollup merge of #126013 - nnethercote:unreachable_pub, r=Urgau
Add `#[warn(unreachable_pub)]` to a bunch of compiler crates

By default `unreachable_pub` identifies things that need not be `pub` and tells you to make them `pub(crate)`. But sometimes those things don't need any kind of visibility. So they way I did these was to remove the visibility entirely for each thing the lint identifies, and then add `pub(crate)` back in everywhere the compiler said it was necessary. (Or occasionally `pub(super)` when context suggested that was appropriate.) Tedious, but results in more `pub` removal.

There are plenty more crates to do but this seems like enough for a first PR.

r? `@compiler-errors`
2024-08-27 00:41:57 +02:00
..
analyze.rs Rollup merge of #126013 - nnethercote:unreachable_pub, r=Urgau 2024-08-27 00:41:57 +02:00
block.rs Auto merge of #128812 - nnethercote:shrink-TyKind-FnPtr, r=compiler-errors 2024-08-14 00:56:53 +00:00
constant.rs const vector passed to codegen 2024-08-08 11:15:03 +01:00
coverageinfo.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
debuginfo.rs Rework MIR inlining debuginfo so function parameters show up in debuggers. 2024-08-12 19:20:00 -07:00
intrinsic.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
locals.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
mod.rs Rework MIR inlining debuginfo so function parameters show up in debuggers. 2024-08-12 19:20:00 -07:00
operand.rs Rollup merge of #128978 - compiler-errors:assert-matches, r=jieyouxu 2024-08-12 17:09:19 +02:00
place.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
rvalue.rs rename AddressOf -> RawBorrow inside the compiler 2024-08-18 19:46:53 +02:00
statement.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00