Ensure nested allocations in statics do not get deduplicated
This commit is contained in:
@@ -250,6 +250,9 @@ impl DefKind {
|
||||
| DefKind::AssocTy
|
||||
| DefKind::TyParam
|
||||
| DefKind::ExternCrate => DefPathData::TypeNs(name),
|
||||
// It's not exactly an anon const, but wrt DefPathData, there
|
||||
// is not difference.
|
||||
DefKind::Static { nested: true, .. } => DefPathData::AnonConst,
|
||||
DefKind::Fn
|
||||
| DefKind::Const
|
||||
| DefKind::ConstParam
|
||||
|
||||
Reference in New Issue
Block a user