We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e2512f7 commit 1c9ddd2Copy full SHA for 1c9ddd2
compiler/rustc_monomorphize/src/collector.rs
@@ -1170,7 +1170,7 @@ impl<'v> RootCollector<'_, 'v> {
1170
}
1171
1172
1173
- _ => {}
+ _ => bug!(),
1174
1175
1176
DefKind::GlobalAsm => {
@@ -1197,8 +1197,8 @@ impl<'v> RootCollector<'_, 'v> {
1197
1198
1199
DefKind::Impl => {
1200
- let item = self.tcx.hir().item(id);
1201
if self.mode == MonoItemCollectionMode::Eager {
+ let item = self.tcx.hir().item(id);
1202
create_mono_items_for_default_impls(self.tcx, item, self.output);
1203
1204
0 commit comments