-
Notifications
You must be signed in to change notification settings - Fork 12.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rollup of 7 pull requests #72433
Rollup of 7 pull requests #72433
Conversation
This is to provide a more explicit statement against a code pattern that many people end up coming with, since the reason of it being unsound comes from the badly known single-allocation validity rule. Providing that very pattern as a counter-example could help mitigate that. Co-authored-by: Ralf Jung <[email protected]>
Intern predicates Implements the first step of rust-lang/compiler-team#285 Renames `ty::Predicate` to `ty::PredicateKind`, which is now interned. To ease the transition, `ty::Predicate` is now a struct containing a reference to `ty::PredicateKind`. r? @ghost
Don't `type_of` on trait assoc ty without default Fix rust-lang#72076.
…llaumeGomez Make intra-link resolve links for both trait and impl items Closes rust-lang#72340
…t_adjacent_slice_concat, r=RalfJung Improve documentation of `slice::from_raw_parts` This is to provide a more explicit statement against a code pattern that many people end up coming with, since the reason of it being unsound comes from the badly known single-allocation validity rule. Providing that very pattern as a counter-example could help mitigate that. See also: https://internals.rust-lang.org/t/pre-rfc-add-join-seq-method-to-slices-and-strs/11936/13 r? @RalfJung
…s, r=nikomatsakis Show default values for debug-assertions & debug-assertions-std
…r, r=kinnison Fix anchor display when hovering impl A little gif for the fixed behaviour: ![hover-anchor](https://user-images.githubusercontent.com/3050060/82549808-cfdf4080-9b5d-11ea-9495-2b1d90b2a791.gif) r? @kinnison
…akis fix discriminant_value sign extension Fixes a regression introduced in rust-lang#70705 r? @nikomatsakis Cc @lcnr @oli-obk
📌 Commit 74b5c50 has been approved by |
☀️ Test successful - checks-azure |
This PR caused a rather large perf regression. Looking at the per-query results, the slowdown is in trait solving, so it is most likely #72055. There's one other candidate PR, #71718, whose perf run is not yet complete, but it is unlikely to have caused the regression. |
Probably the best way to measure this is to submit a PR that reverts the suspect, and perf-test that. |
Successful merges:
type_of
on trait assoc ty without default #72149 (Don'ttype_of
on trait assoc ty without default)slice::from_raw_parts
#72350 (Improve documentation ofslice::from_raw_parts
)Failed merges:
r? @ghost