-
Notifications
You must be signed in to change notification settings - Fork 12.5k
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 6 pull requests #98767
Rollup of 6 pull requests #98767
Commits on Jun 27, 2022
-
Make
ThinBox<T>
covariant inT
Just like `Box<T>`, we want `ThinBox<T>` to be covariant in `T`, but the projection in `WithHeader<<T as Pointee>::Metadata>` was making it invariant. This is now hidden as `WithOpaqueHeader`, which we type-cast whenever the real `WithHeader<H>` type is needed.
Configuration menu - View commit details
-
Copy full SHA for e67e165 - Browse repository at this point
Copy the full SHA e67e165View commit details
Commits on Jun 29, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 7dc0489 - Browse repository at this point
Copy the full SHA 7dc0489View commit details
Commits on Jun 30, 2022
-
add blanket impl suggestion to the local traits
Signed-off-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 81abfe3 - Browse repository at this point
Copy the full SHA 81abfe3View commit details -
ui test: add test of blanklet implementation
Signed-off-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 86c1a73 - Browse repository at this point
Copy the full SHA 86c1a73View commit details -
ui: improve suggestion test by addig the help message
Signed-off-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 835b7a5 - Browse repository at this point
Copy the full SHA 835b7a5View commit details -
Use
split_{first,last}
incs_fold1
.It makes the code a little nicer to read.
Configuration menu - View commit details
-
Copy full SHA for 72a1621 - Browse repository at this point
Copy the full SHA 72a1621View commit details -
Remove unnecessary fields from
EnumNonMatchingCollapsed
.The `&[ast::Variant]` field isn't used. The `Vec<Ident>` field is only used for its length, but that's always the same as the length of the `&[Ident]` and so isn't necessary.
Configuration menu - View commit details
-
Copy full SHA for 7a4fdcb - Browse repository at this point
Copy the full SHA 7a4fdcbView commit details -
Configuration menu - View commit details
-
Copy full SHA for d13fa0d - Browse repository at this point
Copy the full SHA d13fa0dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 625122a - Browse repository at this point
Copy the full SHA 625122aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1254fe9 - Browse repository at this point
Copy the full SHA 1254fe9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 89f6917 - Browse repository at this point
Copy the full SHA 89f6917View commit details -
Configuration menu - View commit details
-
Copy full SHA for 57d5689 - Browse repository at this point
Copy the full SHA 57d5689View commit details -
Remove some commented-out code.
This was accidentally left behind in a previous commit.
Configuration menu - View commit details
-
Copy full SHA for 623ebbe - Browse repository at this point
Copy the full SHA 623ebbeView commit details
Commits on Jul 1, 2022
-
Improve a comment, and panic on an impossible code path.
Configuration menu - View commit details
-
Copy full SHA for 78ec19f - Browse repository at this point
Copy the full SHA 78ec19fView commit details -
The existing derive code allows for various possibilities that aren't needed in practice, which complicates the code. There are only a few auto-derived traits and new ones are unlikely, so this commit simplifies things. - `PtrTy` has been eliminated. The `Raw` variant was never used, and the lifetime for the `Borrowed` variant was always `None`. That left just the mutability field, which has been inlined as necessary. - `MethodDef::explicit_self` was a confusing `Option<Option<PtrTy>>`. Indicating either `&self` or nothing. It's now a `bool`. - `borrowed_self` is renamed as `self_ref`. - `Ty::Ptr` is renamed to `Ty::Ref`.
Configuration menu - View commit details
-
Copy full SHA for b942466 - Browse repository at this point
Copy the full SHA b942466View commit details -
Configuration menu - View commit details
-
Copy full SHA for 18fef6b - Browse repository at this point
Copy the full SHA 18fef6bView commit details -
Rename
Ty::Literal
asTy::Path
.Because a `Literal` is a type of expression, and is simply the wrong name for this.
Configuration menu - View commit details
-
Copy full SHA for 00307a5 - Browse repository at this point
Copy the full SHA 00307a5View commit details -
Because that's all that is needed in practice.
Configuration menu - View commit details
-
Copy full SHA for 85e8d94 - Browse repository at this point
Copy the full SHA 85e8d94View commit details -
Configuration menu - View commit details
-
Copy full SHA for f791ac6 - Browse repository at this point
Copy the full SHA f791ac6View commit details -
Rollup merge of rust-lang#97488 - vincenzopalazzo:macros/blanket_sugg…
…, r=compiler-errors Suggest blanket impl to the local traits This PR will add additional suggestion regarding the blanket implementation when it is possible, by generation a new help message + suggestion. Closes rust-lang#96076 Signed-off-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for e2ed8d7 - Browse repository at this point
Copy the full SHA e2ed8d7View commit details -
Rollup merge of rust-lang#98585 - cuviper:covariant-thinbox, r=thomcc
Make `ThinBox<T>` covariant in `T` Just like `Box<T>`, we want `ThinBox<T>` to be covariant in `T`, but the projection in `WithHeader<<T as Pointee>::Metadata>` was making it invariant. This is now hidden as `WithOpaqueHeader`, which we type-cast whenever the real `WithHeader<H>` type is needed. Fixes the problem noted in <rust-lang#92791 (comment)>.
Configuration menu - View commit details
-
Copy full SHA for 9dd3288 - Browse repository at this point
Copy the full SHA 9dd3288View commit details -
Rollup merge of rust-lang#98644 - matthiaskrgr:drp_loc_span_err__2021…
…_inc_clos_cap, r=lcnr fix ICE with -Wrust-2021-incompatible-closure-captures Fixes rust-lang#93117 Fixes rust-lang#96258
Configuration menu - View commit details
-
Copy full SHA for 90b296d - Browse repository at this point
Copy the full SHA 90b296dView commit details -
Rollup merge of rust-lang#98739 - euclio:useless-comment-plural, r=Dy…
…lan-DPC fix grammar in useless doc comment lint
Configuration menu - View commit details
-
Copy full SHA for 528202f - Browse repository at this point
Copy the full SHA 528202fView commit details -
Rollup merge of rust-lang#98741 - nnethercote:deriving-cleanups, r=Ma…
…rk-Simulacrum Many small deriving cleanups These commits remove lots of little unnecessary things, and clarifies other things. r? `@Mark-Simulacrum`
Configuration menu - View commit details
-
Copy full SHA for c0cf363 - Browse repository at this point
Copy the full SHA c0cf363View commit details -
Rollup merge of rust-lang#98756 - TaKO8Ki:use-const-instead-of-functi…
…on, r=Dylan-DPC Use const instead of function and make it private
Configuration menu - View commit details
-
Copy full SHA for 6404620 - Browse repository at this point
Copy the full SHA 6404620View commit details