We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 663caa9 commit cdde06eCopy full SHA for cdde06e
src/librustc_typeck/check/intrinsic.rs
@@ -52,7 +52,7 @@ fn equate_intrinsic_type<'a, 'tcx>(ccx: &CrateCtxt<'a, 'tcx>,
52
let i_n_tps = i_ty.generics.types.len();
53
if i_n_tps != n_tps {
54
let span = match it.node {
55
- hir::ForeignItemFn(_, ref generics) => generics.span().unwrap_or(it.span),
+ hir::ForeignItemFn(_, ref generics) => generics.span,
56
hir::ForeignItemStatic(_, _) => it.span
57
};
58
0 commit comments