From: Ximin Luo Date: Wed, 6 Oct 2021 09:37:40 +0000 (+0100) Subject: Refresh patch for 1.54.0, unbackporting it X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=8faf51b52b7c4f639e925b69d92327cceaf6c89a;p=rustc.git Refresh patch for 1.54.0, unbackporting it --- diff --git a/debian/patches/u-86383.patch b/debian/patches/u-86383.patch index a332828391..b9225617e8 100644 --- a/debian/patches/u-86383.patch +++ b/debian/patches/u-86383.patch @@ -21,13 +21,13 @@ Subject: [PATCH] Squashed implementation of the pass +++ b/compiler/rustc_hir/src/lang_items.rs @@ -310,6 +310,8 @@ - Try, kw::Try, try_trait, Target::Trait; + Try, sym::Try, try_trait, Target::Trait; + SliceLen, sym::slice_len_fn, slice_len_fn, Target::Method(MethodKind::Inherent); + // Language items from AST lowering - TryFromError, sym::from_error, from_error_fn, Target::Method(MethodKind::Trait { body: false }); - TryFromOk, sym::from_ok, from_ok_fn, Target::Method(MethodKind::Trait { body: false }); + TryTraitFromResidual, sym::from_residual, from_residual_fn, Target::Method(MethodKind::Trait { body: false }); + TryTraitFromOutput, sym::from_output, from_output_fn, Target::Method(MethodKind::Trait { body: false }); --- /dev/null +++ b/compiler/rustc_mir/src/transform/lower_slice_len.rs @@ -0,0 +1,100 @@ @@ -141,7 +141,7 @@ Subject: [PATCH] Squashed implementation of the pass pub mod match_branches; pub mod multiple_return_terminators; pub mod no_landing_pads; -@@ -480,6 +481,7 @@ +@@ -479,6 +480,7 @@ // to them. We run some optimizations before that, because they may be harder to do on the state // machine than on MIR with async primitives. let optimizations_with_generators: &[&dyn MirPass<'tcx>] = &[ @@ -151,7 +151,7 @@ Subject: [PATCH] Squashed implementation of the pass &simplify::SimplifyCfg::new("after-uninhabited-enum-branching"), --- a/compiler/rustc_span/src/symbol.rs +++ b/compiler/rustc_span/src/symbol.rs -@@ -675,6 +675,7 @@ +@@ -680,6 +680,7 @@ lateout, lazy_normalization_consts, le, @@ -159,7 +159,7 @@ Subject: [PATCH] Squashed implementation of the pass let_chains, lhs, lib, -@@ -1129,6 +1130,7 @@ +@@ -1146,6 +1147,7 @@ skip, slice, slice_alloc,