about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2023-10-13 09:02:49 +0000
committerMichael Goulet <michael@errs.io>2023-10-13 09:31:36 +0000
commite805151fd47f8b8fc6b4c4a3fb8fd44e6eaf6230 (patch)
treed93c7dd8a517c5ad15a2193c2291b1b63d7c0ea8
parentb2d2184edea578109a48ec3d8decbee5948e8f35 (diff)
downloadrust-e805151fd47f8b8fc6b4c4a3fb8fd44e6eaf6230.tar.gz
rust-e805151fd47f8b8fc6b4c4a3fb8fd44e6eaf6230.zip
Bless tests and new warnings due to formatting changes
-rw-r--r--compiler/rustc_mir_build/src/thir/pattern/check_match.rs2
-rw-r--r--tests/ui/const-generics/generic_const_exprs/issue-80742.stderr2
2 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_mir_build/src/thir/pattern/check_match.rs b/compiler/rustc_mir_build/src/thir/pattern/check_match.rs
index 964a911ec00..ed10657e71c 100644
--- a/compiler/rustc_mir_build/src/thir/pattern/check_match.rs
+++ b/compiler/rustc_mir_build/src/thir/pattern/check_match.rs
@@ -569,7 +569,7 @@ fn check_for_bindings_named_same_as_variants(
                 .any(|variant| variant.name == name && variant.ctor_kind() == Some(CtorKind::Const))
         {
             let variant_count = edef.variants().len();
-            let ty_path = with_no_trimmed_paths!({ cx.tcx.def_path_str(edef.did()) });
+            let ty_path = with_no_trimmed_paths!(cx.tcx.def_path_str(edef.did()));
             cx.tcx.emit_spanned_lint(
                 BINDINGS_WITH_VARIANT_NAME,
                 cx.lint_level,
diff --git a/tests/ui/const-generics/generic_const_exprs/issue-80742.stderr b/tests/ui/const-generics/generic_const_exprs/issue-80742.stderr
index 25a455d3308..00b8a397702 100644
--- a/tests/ui/const-generics/generic_const_exprs/issue-80742.stderr
+++ b/tests/ui/const-generics/generic_const_exprs/issue-80742.stderr
@@ -1,4 +1,4 @@
-error: internal compiler error: compiler/rustc_const_eval/src/interpret/step.rs:272:21: SizeOf MIR operator called for unsized type dyn Debug
+error: internal compiler error: compiler/rustc_const_eval/src/interpret/step.rs:274:21: SizeOf MIR operator called for unsized type dyn Debug
   --> $SRC_DIR/core/src/mem/mod.rs:LL:COL
 
 Box<dyn Any>