Skip to content

Commit

Permalink
Fix one new error due to a formatted block
Browse files Browse the repository at this point in the history
  • Loading branch information
compiler-errors committed Oct 13, 2023
1 parent b2d2184 commit d0143cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/rustc_mir_build/src/thir/pattern/check_match.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit d0143cf

Please sign in to comment.