From d0c308c6a955b98c01e79e219abc017ba013f56f Mon Sep 17 00:00:00 2001 From: Boxy Date: Thu, 30 Mar 2023 12:41:55 +0100 Subject: [PATCH] `{ty:?}` is weird syntax Co-authored-by: Oli Scherer --- src/librustdoc/clean/mod.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/librustdoc/clean/mod.rs b/src/librustdoc/clean/mod.rs index 191f89ebe0583..fd5f533c3a1e6 100644 --- a/src/librustdoc/clean/mod.rs +++ b/src/librustdoc/clean/mod.rs @@ -1671,8 +1671,7 @@ fn normalize<'tcx>( assert!( !ty.has_non_region_infer(), - "`ty`: {:?} has pre existing infer vars before `InferCtxt` creation", - ty + "`ty`: {ty:?} has pre existing infer vars before `InferCtxt` creation", ); let infcx = cx.tcx.infer_ctxt().build();