-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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 #68535
Rollup of 6 pull requests #68535
Conversation
The test fails on 1.36.0 but passes on master.
No longer suggest `Box::new(if foo { Type1 } else { Type2 })`, instead suggesting `if foo { Box::new(Type1) } else { Box::new(Type2) }`.
When encountering a multipart suggestion with spans belonging to different contexts, skip that suggestion.
…akis add a test for rust-lang#60976 The test fails on 1.36.0 but passes on master. Huge thanks for @hellow554 actually digging out the minimized version of the repro. Fixes rust-lang#60976.
…Centril Add some type-alias-impl-trait regression tests Fixes rust-lang#57611 Fixes rust-lang#57807
Local is copy r? @oli-obk
Use Self instead of self return type
Further improve `impl Trait`/`dyn Trait` suggestions After reading [_Returning Trait Objects_ by Bryce Fisher-Fleig](https://bryce.fisher-fleig.org/blog/returning-trait-objects/), [I noticed that](https://www.reddit.com/r/rust/comments/esueur/returning_trait_objects/ffczl4k/) rust-lang#68195 had a few bugs due to not ignoring `ty::Error`. - Account for `ty::Error`. - Account for `if`/`else` and `match` blocks when pointing at return types and referencing their types. - Increase the multiline suggestion output from 6 lines to 20.
Do not ICE on multipart suggestions touching multiple files When encountering a multipart suggestion with spans belonging to different contexts, skip that suggestion. Fix rust-lang#68449. Similar to rust-lang#68256.
@bors r+ rollup=never p=6 |
📌 Commit 0b68b78 has been approved by |
⌛ Testing commit 0b68b78 with merge d8b030b7dc2e2fd1b44f86de96bf4b7f69079313... |
Your PR failed (pretty log, raw log). Through arcane magic we have determined that the following fragments from the build log may contain information about the problem. Click to expand the log.
I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
💔 Test failed - checks-azure |
Successful merges:
impl Trait
/dyn Trait
suggestions #68522 (Further improveimpl Trait
/dyn Trait
suggestions)Failed merges:
r? @ghost