X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=compiler%2Frustc_typeck%2Fsrc%2Fastconv%2Fmod.rs;h=da751f2075399cef877e49ae73c661a34c2a03a6;hb=71fcb72307e2bb9512d291d33f2adace2406e65a;hp=889b68773c27b1eaeba74e462ea02d7fc4cc2bd9;hpb=05b4cd6789bf6eef76744246d54064fe3758123e;p=rust.git diff --git a/compiler/rustc_typeck/src/astconv/mod.rs b/compiler/rustc_typeck/src/astconv/mod.rs index 889b68773c2..da751f20753 100644 --- a/compiler/rustc_typeck/src/astconv/mod.rs +++ b/compiler/rustc_typeck/src/astconv/mod.rs @@ -1916,9 +1916,7 @@ fn qpath_to_ty( debug!("qpath_to_ty: trait_def_id={:?}", trait_def_id); - let self_ty = if let Some(ty) = opt_self_ty { - ty - } else { + let Some(self_ty) = opt_self_ty else { let path_str = tcx.def_path_str(trait_def_id); let def_id = self.item_def_id();