diff options
| author | Ralf Jung <post@ralfj.de> | 2024-11-23 08:05:19 +0100 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2024-11-23 08:41:06 +0100 |
| commit | bd00de7123e73d745d643663d856e3dc618adf89 (patch) | |
| tree | 34af2b55dba7e5ce52b0878d417a64f37eb81e3b /compiler/rustc_const_eval/src | |
| parent | 743003b1a6f838e0a694bd5824fd8a839d5d45e5 (diff) | |
| download | rust-bd00de7123e73d745d643663d856e3dc618adf89.tar.gz rust-bd00de7123e73d745d643663d856e3dc618adf89.zip | |
remove is_trivially_const_drop
Diffstat (limited to 'compiler/rustc_const_eval/src')
| -rw-r--r-- | compiler/rustc_const_eval/src/check_consts/qualifs.rs | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/compiler/rustc_const_eval/src/check_consts/qualifs.rs b/compiler/rustc_const_eval/src/check_consts/qualifs.rs index 39eb1a7db78..e244b50a4b5 100644 --- a/compiler/rustc_const_eval/src/check_consts/qualifs.rs +++ b/compiler/rustc_const_eval/src/check_consts/qualifs.rs @@ -170,11 +170,6 @@ impl Qualif for NeedsNonConstDrop { #[instrument(level = "trace", skip(cx), ret)] fn in_any_value_of_ty<'tcx>(cx: &ConstCx<'_, 'tcx>, ty: Ty<'tcx>) -> bool { - // Avoid selecting for simple cases, such as builtin types. - if ty::util::is_trivially_const_drop(ty) { - return false; - } - // If this doesn't need drop at all, then don't select `~const Destruct`. if !ty.needs_drop(cx.tcx, cx.typing_env) { return false; |
