We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2205455 commit fad2535Copy full SHA for fad2535
compiler/rustc_resolve/src/lib.rs
@@ -1339,12 +1339,12 @@ impl<'tcx> Resolver<'_, 'tcx> {
1339
expn_id: ExpnId,
1340
span: Span,
1341
) -> TyCtxtFeed<'tcx, LocalDefId> {
1342
- let data = def_kind.def_path_data(name);
1343
assert!(
1344
!self.node_id_to_def_id.contains_key(&node_id),
1345
- "adding a def'n for node-id {:?} and data {:?} but a previous def'n exists: {:?}",
+ "adding a def for node-id {:?}, name {:?}, data {:?} but a previous def exists: {:?}",
1346
node_id,
1347
- data,
+ name,
+ def_kind,
1348
self.tcx.definitions_untracked().def_key(self.node_id_to_def_id[&node_id].key()),
1349
);
1350
0 commit comments