rust/compiler/rustc_passes/src
Matthias Krüger 332f8f73ea
Rollup merge of #120107 - shepmaster:dead-code-repr-transparent, r=Nilstrieb
dead_code treats #[repr(transparent)] the same as #[repr(C)]

In #92972 we enabled linting on unused fields in tuple structs. In #118297 that lint was enabled by default. That exposed issues like #119659, where the fields of a struct marked `#[repr(transparent)]` were reported by the `dead_code` lint. The language team [decided](https://github.com/rust-lang/rust/issues/119659#issuecomment-1885172045) that the lint should treat `repr(transparent)` the same as `#[repr(C)]`.

Fixes #119659
2024-01-19 08:15:05 +01:00
..
liveness Match unmatched backticks in compiler/ that are part of rustdoc 2023-03-03 08:39:00 +01:00
abi_test.rs Remove Session methods that duplicate DiagCtxt methods. 2023-12-24 08:05:28 +11:00
check_attr.rs Add check for ui_testing via promoting parameters from ParseSess to Session 2024-01-13 12:11:13 -05:00
check_const.rs Add check for ui_testing via promoting parameters from ParseSess to Session 2024-01-13 12:11:13 -05:00
dead.rs dead_code treats #[repr(transparent)] the same as #[repr(C)] 2024-01-18 13:04:31 -05:00
debugger_visualizer.rs Add check for ui_testing via promoting parameters from ParseSess to Session 2024-01-13 12:11:13 -05:00
diagnostic_items.rs Remove Session methods that duplicate DiagCtxt methods. 2023-12-24 08:05:28 +11:00
entry.rs Rework how diagnostic lints are stored. 2024-01-14 14:04:25 +11:00
errors.rs Stop mentioning internal lang items in no_std binary errors 2024-01-10 21:18:54 +01:00
hir_id_validator.rs Add DiagCtxt::delayed_bug. 2024-01-10 07:33:07 +11:00
hir_stats.rs Add PatKind::Err 2024-01-17 03:14:16 +01:00
lang_items.rs Delegation implementation: step 1 2024-01-12 14:11:16 +03:00
layout_test.rs Remove Session methods that duplicate DiagCtxt methods. 2023-12-24 08:05:28 +11:00
lib.rs Pass DeadItem and lint as consistent group in dead-code. 2023-12-25 13:15:28 +00:00
lib_features.rs Remove Session methods that duplicate DiagCtxt methods. 2023-12-24 08:05:28 +11:00
liveness.rs Add DiagCtxt::delayed_bug. 2024-01-10 07:33:07 +11:00
loops.rs Auto merge of #119258 - compiler-errors:closure-kind, r=eholk 2023-12-26 04:25:53 +00:00
naked_functions.rs Remove Session methods that duplicate DiagCtxt methods. 2023-12-24 08:05:28 +11:00
reachable.rs Move some methods from tcx.hir() to tcx 2023-12-12 06:40:29 -08:00
stability.rs Address review comments and add back some #[inline] attrs from removed commits. 2024-01-04 13:51:06 +01:00
upvars.rs is_coroutine -> is_coroutine_or_closure 2023-12-30 15:24:15 +00:00
weak_lang_items.rs Stop mentioning internal lang items in no_std binary errors 2024-01-10 21:18:54 +01:00