Skip to content

Commit 5bac350

Browse files
committed
fix: calling dcx method to emit an error
1 parent 8356d3f commit 5bac350

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_hir_analysis/src/check/intrinsicck.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ impl<'a, 'tcx> InlineAsmCtxt<'a, 'tcx> {
232232
}
233233
NonAsmTypeReason::EmptySIMDArray(ty) => {
234234
let msg = format!("use of empty SIMD vector `{ty}`");
235-
self.tcx.dcx().struct_span_err(expr.span, msg).emit();
235+
self.infcx.dcx().struct_span_err(expr.span, msg).emit();
236236
}
237237
}
238238
return None;

0 commit comments

Comments
 (0)