1
Fork 0

Remove more traces of anonymous ADTs

This commit is contained in:
Michael Goulet 2024-12-10 19:50:40 +00:00
parent 33c245b9e9
commit 916d279236
12 changed files with 5 additions and 38 deletions

View file

@ -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