diff options
| author | bors <bors@rust-lang.org> | 2023-12-10 06:59:25 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-12-10 06:59:25 +0000 |
| commit | 42dfac5e08b87900dd513124dd0b2540c16f267a (patch) | |
| tree | 5758cebb2d2019825a37c8aba60914c1cfc35535 /compiler/rustc_const_eval/src/transform | |
| parent | 61afc9c92896a43fce92bd5e3bba6274c5e3e960 (diff) | |
| parent | afa35e90ef4e813f83052e0e66fde893b9a29722 (diff) | |
| download | rust-42dfac5e08b87900dd513124dd0b2540c16f267a.tar.gz rust-42dfac5e08b87900dd513124dd0b2540c16f267a.zip | |
Auto merge of #118788 - compiler-errors:const-pretty, r=fee1-dead
Don't print host effect param in pretty `path_generic_args` Make `own_args_no_defaults` pass back the `GenericParamDef`, so that we can pass both the args *and* param definitions into `path_generic_args`. That allows us to use the `GenericParamDef` to filter out effect params. This allows us to filter out the host param regardless of whether it's `sym::host` or `true`/`false`. This also renames a couple of `const_effect_param` -> `host_effect_param`, and restores `~const` pretty printing to `TraitPredPrintModifiersAndPath`. cc #118785 r? `@fee1-dead` cc `@oli-obk`
Diffstat (limited to 'compiler/rustc_const_eval/src/transform')
| -rw-r--r-- | compiler/rustc_const_eval/src/transform/check_consts/qualifs.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_const_eval/src/transform/check_consts/qualifs.rs b/compiler/rustc_const_eval/src/transform/check_consts/qualifs.rs index d5f418e1710..7e1cbfe6667 100644 --- a/compiler/rustc_const_eval/src/transform/check_consts/qualifs.rs +++ b/compiler/rustc_const_eval/src/transform/check_consts/qualifs.rs @@ -172,7 +172,7 @@ impl Qualif for NeedsNonConstDrop { destruct_def_id, [ ty::GenericArg::from(ty), - ty::GenericArg::from(cx.tcx.expected_const_effect_param_for_body(cx.def_id())), + ty::GenericArg::from(cx.tcx.expected_host_effect_param_for_body(cx.def_id())), ], ), ); |
