-
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
Implement RFC 3323: restrictions #106074
base: master
Are you sure you want to change the base?
Implement RFC 3323: restrictions #106074
Commits on Jul 14, 2023
-
It replaces `(Linkage, Visibility)`, making the code nicer. Plus the next commit will add another field.
Configuration menu - View commit details
-
Copy full SHA for 54b5eae - Browse repository at this point
Copy the full SHA 54b5eaeView commit details -
Store item size estimate in
MonoItemData
.This means we call `MonoItem::size_estimate` (which involves a query) less often: just once per mono item, and then once more per inline item placement. After that we can reuse the stored value as necessary. This means `CodegenUnit::compute_size_estimate` is cheaper.
Configuration menu - View commit details
-
Copy full SHA for 1159f43 - Browse repository at this point
Copy the full SHA 1159f43View commit details -
Ignore unreachable inlined items in
debug_dump
.They're quite rare, and ignoring them simplifies things quite a bit, and further reduces the number of calls to `MonoItem::size_estimate` to the number of placed items (one per root item, and one or more per reachable inlined item).
Configuration menu - View commit details
-
Copy full SHA for 71bfc57 - Browse repository at this point
Copy the full SHA 71bfc57View commit details -
Remove
instance_def_size_estimate
query.It doesn't seem worthwhile now that `MonoItem::size_estimate` is called much less often.
Configuration menu - View commit details
-
Copy full SHA for f4c4602 - Browse repository at this point
Copy the full SHA f4c4602View commit details -
Auto merge of rust-lang#113684 - nnethercote:streamline-size-estimate…
…s, r=<try> Streamline size estimates Makes things nicer and a tiny bit faster. r? `@wesleywiser`
Configuration menu - View commit details
-
Copy full SHA for bef6ff6 - Browse repository at this point
Copy the full SHA bef6ff6View commit details
Commits on Jul 15, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 2a30038 - Browse repository at this point
Copy the full SHA 2a30038View commit details -
Configuration menu - View commit details
-
Copy full SHA for 49cd517 - Browse repository at this point
Copy the full SHA 49cd517View commit details -
Configuration menu - View commit details
-
Copy full SHA for b35b975 - Browse repository at this point
Copy the full SHA b35b975View commit details -
Configuration menu - View commit details
-
Copy full SHA for a89c303 - Browse repository at this point
Copy the full SHA a89c303View commit details -
Configuration menu - View commit details
-
Copy full SHA for c938764 - Browse repository at this point
Copy the full SHA c938764View commit details -
Configuration menu - View commit details
-
Copy full SHA for 94bef5a - Browse repository at this point
Copy the full SHA 94bef5aView commit details -
Configuration menu - View commit details
-
Copy full SHA for f5ea0f7 - Browse repository at this point
Copy the full SHA f5ea0f7View commit details -
Configuration menu - View commit details
-
Copy full SHA for bb278ab - Browse repository at this point
Copy the full SHA bb278abView commit details -
Configuration menu - View commit details
-
Copy full SHA for f6a6786 - Browse repository at this point
Copy the full SHA f6a6786View commit details -
Configuration menu - View commit details
-
Copy full SHA for c162277 - Browse repository at this point
Copy the full SHA c162277View commit details -
Configuration menu - View commit details
-
Copy full SHA for ad7f018 - Browse repository at this point
Copy the full SHA ad7f018View commit details -
Configuration menu - View commit details
-
Copy full SHA for f7ffd59 - Browse repository at this point
Copy the full SHA f7ffd59View commit details -
Configuration menu - View commit details
-
Copy full SHA for 75830d4 - Browse repository at this point
Copy the full SHA 75830d4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1d0f756 - Browse repository at this point
Copy the full SHA 1d0f756View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9dfdfea - Browse repository at this point
Copy the full SHA 9dfdfeaView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4a7aab2 - Browse repository at this point
Copy the full SHA 4a7aab2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 17ef482 - Browse repository at this point
Copy the full SHA 17ef482View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0561a0b - Browse repository at this point
Copy the full SHA 0561a0bView commit details -
Configuration menu - View commit details
-
Copy full SHA for e984d82 - Browse repository at this point
Copy the full SHA e984d82View commit details -
Turn construction restriction into a query
This allows the compiler to cache the result.
Configuration menu - View commit details
-
Copy full SHA for 3421cb9 - Browse repository at this point
Copy the full SHA 3421cb9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 400b4d0 - Browse repository at this point
Copy the full SHA 400b4d0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8a85dc5 - Browse repository at this point
Copy the full SHA 8a85dc5View commit details -
Remove kw-only restriction, use shorthand properly
This also moves the field-level mut restriction to a single location. It attempts to resolve the missing errors for when a restricted trait is implemented outside the defining crate, but the compiler does not currently store information for other crates.
Configuration menu - View commit details
-
Copy full SHA for bd9c2db - Browse repository at this point
Copy the full SHA bd9c2dbView commit details -
Configuration menu - View commit details
-
Copy full SHA for ae5d13c - Browse repository at this point
Copy the full SHA ae5d13cView commit details -
Configuration menu - View commit details
-
Copy full SHA for cc4d414 - Browse repository at this point
Copy the full SHA cc4d414View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7e22f74 - Browse repository at this point
Copy the full SHA 7e22f74View commit details -
Configuration menu - View commit details
-
Copy full SHA for ae7a6a2 - Browse repository at this point
Copy the full SHA ae7a6a2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 716ecbd - Browse repository at this point
Copy the full SHA 716ecbdView commit details -
Configuration menu - View commit details
-
Copy full SHA for 011e7c6 - Browse repository at this point
Copy the full SHA 011e7c6View commit details -
Configuration menu - View commit details
-
Copy full SHA for bafce51 - Browse repository at this point
Copy the full SHA bafce51View commit details -
Change restriction kind into const generic
This allows for static verification that the wrong restriction is never provided.
Configuration menu - View commit details
-
Copy full SHA for 23f53bf - Browse repository at this point
Copy the full SHA 23f53bfView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2f7037c - Browse repository at this point
Copy the full SHA 2f7037cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 497f535 - Browse repository at this point
Copy the full SHA 497f535View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7801c8f - Browse repository at this point
Copy the full SHA 7801c8fView commit details -
Configuration menu - View commit details
-
Copy full SHA for eea7a35 - Browse repository at this point
Copy the full SHA eea7a35View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5370b54 - Browse repository at this point
Copy the full SHA 5370b54View commit details -
- Make diagnostics more translatable - Avoid ICE on potential future bug - Use `#![crate_type = lib]`
Configuration menu - View commit details
-
Copy full SHA for fb12bf1 - Browse repository at this point
Copy the full SHA fb12bf1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 731bbd8 - Browse repository at this point
Copy the full SHA 731bbd8View commit details -
Configuration menu - View commit details
-
Copy full SHA for f4a661f - Browse repository at this point
Copy the full SHA f4a661fView commit details -
Configuration menu - View commit details
-
Copy full SHA for c4c73cd - Browse repository at this point
Copy the full SHA c4c73cdView commit details -
Configuration menu - View commit details
-
Copy full SHA for 076a838 - Browse repository at this point
Copy the full SHA 076a838View commit details