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 06af25e commit 64b6c32Copy full SHA for 64b6c32
compiler/rustc_metadata/src/rmeta/decoder.rs
@@ -774,7 +774,8 @@ impl<'a, 'tcx> CrateMetadataRef<'a> {
774
775
fn opt_item_ident(self, item_index: DefIndex, sess: &Session) -> Option<Ident> {
776
let name = self.opt_item_name(item_index)?;
777
- let span = self.root.tables.def_ident_span.get(self, item_index)?.decode((self, sess));
+ let span =
778
+ self.root.tables.def_ident_span.get(self, item_index).unwrap().decode((self, sess));
779
Some(Ident::new(name, span))
780
}
781
0 commit comments