Repository navigation
Add Forget trait feature gate - #165376
jdonszelmann wants to merge 2 commits into
Conversation
This comment has been minimized.
This comment has been minimized.
5f088b4 to
eab4fb5
Compare
This comment has been minimized.
This comment has been minimized.
eab4fb5 to
44352d9
Compare
This comment has been minimized.
This comment has been minimized.
44352d9 to
b9bb2ee
Compare
This comment has been minimized.
This comment has been minimized.
b9bb2ee to
e6ae420
Compare
This comment has been minimized.
This comment has been minimized.
|
❌ Commit e6ae420 has been unapproved due to PR CI failure. Reapprove it with |
|
sigh, that makes sense, should've checked that. I'll fix it in a bit |
|
@bors try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
Add `Forget` trait feature gate
This comment has been minimized.
This comment has been minimized.
e6ae420 to
124af59
Compare
|
This should fix it for the time being. Enabling forget will cost the extra 10% though so it's not ideal when actually landing forget trait but at least without the feature enabled this handles it gracefully |
|
Local benchmarks show that this indeed solves the issue fyi |
|
The "auto trait finder" that uses the old solver sucks; under the next solver we use a much faster but more limited one. In the future, when everything is more settled, adding new auto traits should hopefully not regress doc build times as much (inevitably tho, it'll regress HTML artifact size) |
This comment has been minimized.
This comment has been minimized.
|
@fmease yea I figured. However, this is fine as a temporary solution right? |
1dda39f to
b70d2a2
Compare
|
Yea, absolutely fine! |
This comment has been minimized.
This comment has been minimized.
|
Finished benchmarking commit (1167d71): comparison URL. Overall result: ❌ regressions - please read:Benchmarking means the PR may be perf-sensitive. It's automatically marked not fit for rolling up. Overriding is possible but disadvised: it risks changing compiler perf. Next, please: If you can, justify the regressions found in this try perf run in writing along with @bors rollup=never rustc-perf Instruction countOur most reliable metric. Used to determine the overall result above. However, even this metric can be noisy.
Max RSS (memory usage)Results (secondary -3.4%)A less reliable metric. May be of interest, but not used to determine the overall result above.
CyclesResults (primary -2.8%)A less reliable metric. May be of interest, but not used to determine the overall result above.
Binary sizeThis perf run didn't have relevant results for this metric. Bootstrap: 482.475s -> 482.923s (0.09%) |
|
ok, @fmease or @rust-lang/rustdoc do you agree that 1% regressions on rustdoc are acceptable for this kind of change? I've looked and it's all just in html emitting basically, which is to be expected. We're likely going to do another change like it soon with |
|
Sounds acceptable. 👍 |
|
@bors rollup=iffy |
…gate, r=JonathanBrouwer Add `Forget` trait feature gate r? jonathanbrouwer Add an unstable feature gate for the `Forget` trait. Creating the feature gate allows experimentation with its implementation. Note that this does not commit to anything w.r.t. stabilization of the forget trait. A feature gate can be removed at any time. Part of rust-lang#165370
…gate, r=JonathanBrouwer Add `Forget` trait feature gate r? jonathanbrouwer Add an unstable feature gate for the `Forget` trait. Creating the feature gate allows experimentation with its implementation. Note that this does not commit to anything w.r.t. stabilization of the forget trait. A feature gate can be removed at any time. Part of rust-lang#165370
…uwer Rollup of 7 pull requests Successful merges: - #164752 (Apply the Cortex-A53 843419 CC mitigation to aarch64 targets ) - #165376 (Add `Forget` trait feature gate) - #165257 (Revert FCW on lint attributes on macro calls) - #165364 (Update books) - #165424 (Update amdgpu datalayout for LLVM 24) - #165443 (Add `Discriminant::ord`) - #165445 (Add an unstable option to increase the chain depth of the next solver overflow FCW)
…gate, r=JonathanBrouwer Add `Forget` trait feature gate r? jonathanbrouwer Add an unstable feature gate for the `Forget` trait. Creating the feature gate allows experimentation with its implementation. Note that this does not commit to anything w.r.t. stabilization of the forget trait. A feature gate can be removed at any time. Part of rust-lang#165370
…uwer Rollup of 17 pull requests Successful merges: - #164752 (Apply the Cortex-A53 843419 CC mitigation to aarch64 targets ) - #165011 (std: Clean up and improve errors for `is_*_feature_detected` macros) - #165376 (Add `Forget` trait feature gate) - #164482 (Remove the label starting with 0 in the test binary_asm_labels_allowed.rs) - #165201 (Move a bunch of methods out of `AttributeExt`) - #165268 (Fix constant-pattern equality suggestion spans in macros) - #165318 (Fix explicit destructor-call suggestion spans in macros) - #164440 ([Outreachy] alloc: Add test coverage for try_clone_from_ref_in (Box, Arc, Rc)) - #165001 (Document allocator swap in BinaryHeap::append) - #165257 (Revert FCW on lint attributes on macro calls) - #165330 (Impl read_le/read_be for f16 and f128) - #165364 (Update books) - #165414 (Remove unusued query key impl) - #165424 (Update amdgpu datalayout for LLVM 24) - #165440 (docker: bump node to v24.22.2 in shared script) - #165443 (Add `Discriminant::ord`) - #165445 (Add an unstable option to increase the chain depth of the next solver overflow FCW)
…uwer Rollup of 17 pull requests Successful merges: - #164752 (Apply the Cortex-A53 843419 CC mitigation to aarch64 targets ) - #165011 (std: Clean up and improve errors for `is_*_feature_detected` macros) - #165376 (Add `Forget` trait feature gate) - #164482 (Remove the label starting with 0 in the test binary_asm_labels_allowed.rs) - #165201 (Move a bunch of methods out of `AttributeExt`) - #165268 (Fix constant-pattern equality suggestion spans in macros) - #165318 (Fix explicit destructor-call suggestion spans in macros) - #164440 ([Outreachy] alloc: Add test coverage for try_clone_from_ref_in (Box, Arc, Rc)) - #165001 (Document allocator swap in BinaryHeap::append) - #165257 (Revert FCW on lint attributes on macro calls) - #165330 (Impl read_le/read_be for f16 and f128) - #165364 (Update books) - #165414 (Remove unusued query key impl) - #165424 (Update amdgpu datalayout for LLVM 24) - #165440 (docker: bump node to v24.22.2 in shared script) - #165443 (Add `Discriminant::ord`) - #165445 (Add an unstable option to increase the chain depth of the next solver overflow FCW)
…uwer Rollup of 17 pull requests Successful merges: - #164752 (Apply the Cortex-A53 843419 CC mitigation to aarch64 targets ) - #165011 (std: Clean up and improve errors for `is_*_feature_detected` macros) - #165376 (Add `Forget` trait feature gate) - #164482 (Remove the label starting with 0 in the test binary_asm_labels_allowed.rs) - #165201 (Move a bunch of methods out of `AttributeExt`) - #165268 (Fix constant-pattern equality suggestion spans in macros) - #165318 (Fix explicit destructor-call suggestion spans in macros) - #164440 ([Outreachy] alloc: Add test coverage for try_clone_from_ref_in (Box, Arc, Rc)) - #165001 (Document allocator swap in BinaryHeap::append) - #165257 (Revert FCW on lint attributes on macro calls) - #165330 (Impl read_le/read_be for f16 and f128) - #165364 (Update books) - #165414 (Remove unusued query key impl) - #165424 (Update amdgpu datalayout for LLVM 24) - #165440 (docker: bump node to v24.22.2 in shared script) - #165443 (Add `Discriminant::ord`) - #165445 (Add an unstable option to increase the chain depth of the next solver overflow FCW)
View all comments
r? jonathanbrouwer
Add an unstable feature gate for the
Forgettrait. Creating the feature gate allows experimentation with its implementation. Note that this does not commit to anything w.r.t. stabilization of the forget trait. A feature gate can be removed at any time.Part of #165370