Skip to content

Commit 3da69c7

Browse files
committed
Auto merge of rust-lang#116052 - oli-obk:ceci_nest_pas_une_query, r=WaffleLapkin
Add a way to decouple the implementation and the declaration of a TyCtxt method. properly addresses rust-lang#115819 accepted MCP: rust-lang/compiler-team#395
2 parents 835d7d9 + 5ee167e commit 3da69c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_utils/src/consts.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -718,7 +718,7 @@ fn field_of_struct<'tcx>(
718718
field: &Ident,
719719
) -> Option<mir::Const<'tcx>> {
720720
if let mir::Const::Val(result, ty) = result
721-
&& let Some(dc) = lcx.tcx.try_destructure_mir_constant_for_diagnostics((result, ty))
721+
&& let Some(dc) = lcx.tcx.try_destructure_mir_constant_for_diagnostics(result, ty)
722722
&& let Some(dc_variant) = dc.variant
723723
&& let Some(variant) = adt_def.variants().get(dc_variant)
724724
&& let Some(field_idx) = variant.fields.iter().position(|el| el.name == field.name)

0 commit comments

Comments
 (0)