]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_typeck/src/structured_errors/sized_unsized_cast.rs
Auto merge of #97081 - oli-obk:outlives_query_fast_path, r=jackh726
[rust.git] / compiler / rustc_typeck / src / structured_errors / sized_unsized_cast.rs
index 9b058d32f79ee0fcb050a679602ea1f716819286..afc5c1fe6cc172775dc75f56db78d14c476dbcdd 100644 (file)
@@ -21,7 +21,7 @@ fn code(&self) -> DiagnosticId {
     }
 
     fn diagnostic_common(&self) -> DiagnosticBuilder<'tcx, ErrorGuaranteed> {
-        let mut err = self.sess.struct_span_fatal_with_code(
+        let mut err = self.sess.struct_span_err_with_code(
             self.span,
             &format!(
                 "cannot cast thin pointer `{}` to fat pointer `{}`",