Register all clauses of DefKind::Fn as obligations - #161319
Conversation
|
Thanks for the pull request, and welcome! The Rust Project is excited to review your changes, and you should hear from @lcnr (or someone else) some time within the next two weeks. Please see the contribution instructions for more information. Namely, in order to ensure the minimum review times lag, PR authors and assigned reviewers should ensure that the review label (
|
This comment has been minimized.
This comment has been minimized.
|
@bors try @rust-timer queue try build for a crater run with this change |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Register all clauses of DefKind::Fn as obligations
This comment has been minimized.
This comment has been minimized.
|
Finished benchmarking commit (bd72bf2): 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 (primary 2.8%, secondary -1.6%)A less reliable metric. May be of interest, but not used to determine the overall result above.
CyclesResults (primary -2.6%, secondary 2.1%)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: 474.678s -> 473.983s (-0.15%) |
|
@craterbot check |
|
👌 Experiment ℹ️ Crater is a tool to run experiments across parts of the Rust ecosystem. Learn more |
| } | ||
| } | ||
|
|
||
| fn check_function_clauses(tcx: TyCtxt<'_>, def_id: LocalDefId) -> Result<(), ErrorGuaranteed> { |
There was a problem hiding this comment.
didn't realize, we should move this to check::wfcheck which already has a function to check functions. feel free to wait until after the crater run is done
|
@craterbot cancel See #162233 |
|
🗑️ Experiment ℹ️ Crater is a tool to run experiments across parts of the Rust ecosystem. Learn more |
This fixes #151319 by adding the clauses of a function definition as obligations in the functions own
param_env.r? @lcnr