Increase depth for float infer var fallback hack#159646
Conversation
|
changes to cc @lcnr |
| // Avoid hang from exponentially growing proof trees (see `cycle-modulo-ambig-aliases.rs`). | ||
| // 3 is more than enough for all occurrences in practice (a.k.a. `Into`). | ||
| InspectConfig { max_depth: 3 } | ||
| // 4 is more than enough for all occurrences in practice (a.k.a. `Into`). |
There was a problem hiding this comment.
saying "more than enough" while it's really exactly enough feels questionable 🤣
NestedObligationsForSelfTy uses max_depth: 5 🤔 maybe have a free constant MAX_DEPTH_FOR_OBLIGATIONS_VISITORS in this module. I would use the same comment as in that other visitor/put the comment on that constant
|
please start a perf run after the nits :> |
|
Some changes occurred to the core trait solver cc @rust-lang/initiative-trait-system-refactor |
|
@bors try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Increase depth for float infer var fallback hack
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
|
@bors try cancel |
|
Try build cancelled. Cancelled workflows: |
|
@bors try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
Increase depth for float infer var fallback hack
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
Finished benchmarking commit (99b59f8): comparison URL. Overall result: no relevant changes - no action neededBenchmarking means the PR may be perf-sensitive. Consider adding rollup=never if this change is not fit for rolling up. @rustbot label: -S-waiting-on-perf -perf-regression Instruction countThis perf run didn't have relevant results for this metric. Max RSS (memory usage)This perf run didn't have relevant results for this metric. CyclesResults (secondary -5.0%)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: 486.905s -> 486.578s (-0.07%) |
|
@bors r+ rollup |
Increase depth for float infer var fallback hack Fixes rust-lang/trait-system-refactor-initiative#280 With this, the fallback hack works again in `bevy-shaders@0.1.0` and `bevy-multi@0.1.0`. Also added perf optimizations to the proof tree visitor. r? @ShoyuVanilla cc @lcnr
Increase depth for float infer var fallback hack Fixes rust-lang/trait-system-refactor-initiative#280 With this, the fallback hack works again in `bevy-shaders@0.1.0` and `bevy-multi@0.1.0`. Also added perf optimizations to the proof tree visitor. r? @ShoyuVanilla cc @lcnr
…uwer Rollup of 8 pull requests Successful merges: - #159712 (Subtree sync for rustc_codegen_cranelift) - #155697 (Stabilize c-variadic function definitions) - #159285 (Simplify `apply_effects_in_range`) - #159607 (test: update riscv32e-registers.rs for LLVM 24 MC diagnostic changes) - #159659 (Move `Limit` out of `rustc_hir`) - #159451 (Remove config cloning in compiletest) - #159646 (Increase depth for float infer var fallback hack) - #159705 (bootstrap: Prefer `cfg!(not(test))` when skipping code paths during unit tests)
Increase depth for float infer var fallback hack Fixes rust-lang/trait-system-refactor-initiative#280 With this, the fallback hack works again in `bevy-shaders@0.1.0` and `bevy-multi@0.1.0`. Also added perf optimizations to the proof tree visitor. r? @ShoyuVanilla cc @lcnr
…uwer Rollup of 12 pull requests Successful merges: - #159712 (Subtree sync for rustc_codegen_cranelift) - #155697 (Stabilize c-variadic function definitions) - #159285 (Simplify `apply_effects_in_range`) - #159596 (unify the AST repr of type const and const RHS) - #159607 (test: update riscv32e-registers.rs for LLVM 24 MC diagnostic changes) - #159659 (Move `Limit` out of `rustc_hir`) - #159707 (fix error when a dangling ref in a ManuallyDrop is used in a pattern) - #158479 (Reject static item as direct const generic arg) - #158738 (next_trait_solver: Recover from GCE const exprs) - #159451 (Remove config cloning in compiletest) - #159646 (Increase depth for float infer var fallback hack) - #159705 (bootstrap: Prefer `cfg!(not(test))` when skipping code paths during unit tests)
…uwer Rollup of 11 pull requests Successful merges: - #159712 (Subtree sync for rustc_codegen_cranelift) - #155697 (Stabilize c-variadic function definitions) - #159285 (Simplify `apply_effects_in_range`) - #159596 (unify the AST repr of type const and const RHS) - #159607 (test: update riscv32e-registers.rs for LLVM 24 MC diagnostic changes) - #159659 (Move `Limit` out of `rustc_hir`) - #159707 (fix error when a dangling ref in a ManuallyDrop is used in a pattern) - #158738 (next_trait_solver: Recover from GCE const exprs) - #159451 (Remove config cloning in compiletest) - #159646 (Increase depth for float infer var fallback hack) - #159705 (bootstrap: Prefer `cfg!(not(test))` when skipping code paths during unit tests)
Rollup merge of #159646 - adwinwhite:fix-f16-hack, r=lcnr Increase depth for float infer var fallback hack Fixes rust-lang/trait-system-refactor-initiative#280 With this, the fallback hack works again in `bevy-shaders@0.1.0` and `bevy-multi@0.1.0`. Also added perf optimizations to the proof tree visitor. r? @ShoyuVanilla cc @lcnr
…uwer Rollup of 11 pull requests Successful merges: - rust-lang/rust#159712 (Subtree sync for rustc_codegen_cranelift) - rust-lang/rust#155697 (Stabilize c-variadic function definitions) - rust-lang/rust#159285 (Simplify `apply_effects_in_range`) - rust-lang/rust#159596 (unify the AST repr of type const and const RHS) - rust-lang/rust#159607 (test: update riscv32e-registers.rs for LLVM 24 MC diagnostic changes) - rust-lang/rust#159659 (Move `Limit` out of `rustc_hir`) - rust-lang/rust#159707 (fix error when a dangling ref in a ManuallyDrop is used in a pattern) - rust-lang/rust#158738 (next_trait_solver: Recover from GCE const exprs) - rust-lang/rust#159451 (Remove config cloning in compiletest) - rust-lang/rust#159646 (Increase depth for float infer var fallback hack) - rust-lang/rust#159705 (bootstrap: Prefer `cfg!(not(test))` when skipping code paths during unit tests)
…uwer Rollup of 11 pull requests Successful merges: - rust-lang/rust#159712 (Subtree sync for rustc_codegen_cranelift) - rust-lang/rust#155697 (Stabilize c-variadic function definitions) - rust-lang/rust#159285 (Simplify `apply_effects_in_range`) - rust-lang/rust#159596 (unify the AST repr of type const and const RHS) - rust-lang/rust#159607 (test: update riscv32e-registers.rs for LLVM 24 MC diagnostic changes) - rust-lang/rust#159659 (Move `Limit` out of `rustc_hir`) - rust-lang/rust#159707 (fix error when a dangling ref in a ManuallyDrop is used in a pattern) - rust-lang/rust#158738 (next_trait_solver: Recover from GCE const exprs) - rust-lang/rust#159451 (Remove config cloning in compiletest) - rust-lang/rust#159646 (Increase depth for float infer var fallback hack) - rust-lang/rust#159705 (bootstrap: Prefer `cfg!(not(test))` when skipping code paths during unit tests)
View all comments
Fixes rust-lang/trait-system-refactor-initiative#280
With this, the fallback hack works again in
bevy-shaders@0.1.0andbevy-multi@0.1.0.Also added perf optimizations to the proof tree visitor.
r? @ShoyuVanilla
cc @lcnr