diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2023-05-31 07:07:00 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-05-31 07:07:00 +0200 |
| commit | 7ca941f18e2b1bd3db325e6653ad76d7d407003a (patch) | |
| tree | d826e62574471257ddb528c552fdf664f951ce9b /compiler/rustc_session/src | |
| parent | fdd62cfe7d2ea9189e957951b8b7b8251cd50854 (diff) | |
| parent | 5ed014977e59f886a51844fcae8eab80467e45e6 (diff) | |
| download | rust-7ca941f18e2b1bd3db325e6653ad76d7d407003a.tar.gz rust-7ca941f18e2b1bd3db325e6653ad76d7d407003a.zip | |
Rollup merge of #112053 - nnethercote:rm-Zcpu-partitioning-strategy, r=wesleywiser
Remove `-Zcgu-partitioning-strategy`. This option was introduced three years ago, but it's never been meaningfully used, and `default` is the only acceptable value. Also, I think the `Partition` trait presents an interface that is too closely tied to the existing strategy and would probably be wrong for other strategies. (My rule of thumb is to not make something generic until there are at least two instances of it, to avoid this kind of problem.) Also, I don't think providing multiple partitioning strategies to the user is a good idea, because the compiler already has enough obscure knobs. This commit removes the option, along with the `Partition` trait, and the `Partitioner` and `DefaultPartitioning` types. I left the existing code in `compiler/rustc_monomorphize/src/partitioning/default.rs`, though I could be persuaded that moving it into `compiler/rustc_monomorphize/src/partitioning/mod.rs` is better. r? ``@wesleywiser``
Diffstat (limited to 'compiler/rustc_session/src')
| -rw-r--r-- | compiler/rustc_session/src/options.rs | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/compiler/rustc_session/src/options.rs b/compiler/rustc_session/src/options.rs index 007e720823b..7cc2b2c880c 100644 --- a/compiler/rustc_session/src/options.rs +++ b/compiler/rustc_session/src/options.rs @@ -1372,8 +1372,6 @@ options! { "set options for branch target identification and pointer authentication on AArch64"), cf_protection: CFProtection = (CFProtection::None, parse_cfprotection, [TRACKED], "instrument control-flow architecture protection"), - cgu_partitioning_strategy: Option<String> = (None, parse_opt_string, [TRACKED], - "the codegen unit partitioning strategy to use"), codegen_backend: Option<String> = (None, parse_opt_string, [TRACKED], "the backend to use"), combine_cgu: bool = (false, parse_bool, [TRACKED], |
