]> git.lizzy.rs Git - rust.git/commitdiff
Fix ICE formatting
authorEsteban Küber <esteban@kuber.com.ar>
Thu, 12 Jan 2023 23:46:58 +0000 (23:46 +0000)
committerEsteban Küber <esteban@kuber.com.ar>
Thu, 12 Jan 2023 23:46:58 +0000 (23:46 +0000)
compiler/rustc_borrowck/src/diagnostics/region_errors.rs

index e8a4d1c37c1877296151a84dd9e3cd5513716b2b..f3050a6ef3f07f7964cf58a23bc3a858dd05b717 100644 (file)
@@ -79,7 +79,7 @@ pub fn new(tcx: TyCtxt<'tcx>) -> Self {
     #[track_caller]
     pub fn push(&mut self, val: impl Into<RegionErrorKind<'tcx>>) {
         let val = val.into();
-        self.1.sess.delay_span_bug(DUMMY_SP, "{val:?}");
+        self.1.sess.delay_span_bug(DUMMY_SP, format!("{val:?}"));
         self.0.push(val);
     }
     pub fn is_empty(&self) -> bool {