diff options
| author | bors <bors@rust-lang.org> | 2024-12-11 15:31:52 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-12-11 15:31:52 +0000 |
| commit | 1f3bf231e160b9869e2a85260fd6805304bfcee2 (patch) | |
| tree | dab4eb4699fd3536811549fb2289a2609ec92298 /compiler/rustc_hir/src/def.rs | |
| parent | 5a6036a1802262f8cf02192b02026688d396f1d7 (diff) | |
| parent | c384b28148cd85f71779aa8025660b9c5b6c3d26 (diff) | |
| download | rust-1f3bf231e160b9869e2a85260fd6805304bfcee2.tar.gz rust-1f3bf231e160b9869e2a85260fd6805304bfcee2.zip | |
Auto merge of #134164 - jhpratt:rollup-s7z0vcc, r=jhpratt
Rollup of 8 pull requests
Successful merges:
- #134079 (Add a note saying that `{u8,i8}::from_{be,le,ne}_bytes` is meaningless)
- #134105 (Validate self in host predicates correctly)
- #134136 (Exercise const trait interaction with default fields)
- #134139 ([AIX] keep profile-rt symbol alive)
- #134141 (Remove more traces of anonymous ADTs)
- #134142 (Rudimentary heuristic to insert parentheses when needed for RPIT overcaptures lint)
- #134158 (Rename `projection_def_id` to `item_def_id`)
- #134160 (Add vacation entry for myself in triagebot.toml)
r? `@ghost`
`@rustbot` modify labels: rollup
Diffstat (limited to 'compiler/rustc_hir/src/def.rs')
| -rw-r--r-- | compiler/rustc_hir/src/def.rs | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/compiler/rustc_hir/src/def.rs b/compiler/rustc_hir/src/def.rs index 0b7ffc4af45..705de389e07 100644 --- a/compiler/rustc_hir/src/def.rs +++ b/compiler/rustc_hir/src/def.rs @@ -9,7 +9,6 @@ use rustc_macros::{Decodable, Encodable, HashStable_Generic}; use rustc_span::Symbol; use rustc_span::def_id::{DefId, LocalDefId}; use rustc_span::hygiene::MacroKind; -use rustc_span::symbol::kw; use crate::definitions::DefPathData; use crate::hir; @@ -256,7 +255,6 @@ impl DefKind { pub fn def_path_data(self, name: Symbol) -> DefPathData { match self { - DefKind::Struct | DefKind::Union if name == kw::Empty => DefPathData::AnonAdt, DefKind::Mod | DefKind::Struct | DefKind::Union |
