Uh oh!
There was an error while loading. Please reload this page.
Further improve impl Trait/dyn Trait suggestions - #68522
Conversation
No longer suggest `Box::new(if foo { Type1 } else { Type2 })`, instead
suggesting `if foo { Box::new(Type1) } else { Box::new(Type2) }`.rust-highfive
commented
Jan 24, 2020
r? @eddyb (rust_highfive has picked a reviewer for you, use r? to override) |
estebank
commented
Jan 24, 2020
CC @oli-obk |
oli-obk
commented
Jan 24, 2020
r? @oli-obk |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
oli-obk
commented
Jan 24, 2020
@bors r+ |
bors
commented
Jan 24, 2020
📌 Commit 600e385 has been approved by |
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.
Uh oh!
There was an error while loading. Please reload this page.
oli-obk
commented
Jan 25, 2020
@bors r- |
estebank
commented
Jan 25, 2020
@bors r=oli-obk |
bors
commented
Jan 25, 2020
📌 Commit 16709f0 has been approved by |
bors
commented
Jan 26, 2020
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/) #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.
bors
commented
Jan 26, 2020
☀️ Test successful - checks-azure |
After reading Returning Trait Objects by Bryce Fisher-Fleig, I noticed that#68195 had a few bugs due to not ignoring
ty::Error.ty::Error.if/elseandmatchblocks when pointing at return types and referencing their types.