Improved diagnostic on failure to meet send bound on future in a foreign crate#94493
Conversation
|
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @lcnr (or someone else) soon. Please see the contribution instructions for more information. |
|
This is my first PR for the rustc project, will need a rigorous review. And sorry in advance if I missed anything from the contribution guidelines. |
|
☔ The latest upstream changes (presumably #87402) made this pull request unmergeable. Please resolve the merge conflicts. |
|
r? @estebank maybe, don't have the capacity for this rn |
|
Thanks for this! You'll have to rebase against a more recent master. Can you also make sure you run I'll take a more detailed view later this week, but so far it looks good. |
4dd9b89 to
726bdab
Compare
|
I haven't forgotten about this, sorry for the delay in reviewing! |
davidtwco
left a comment
There was a problem hiding this comment.
Apologies for the delay in having this reviewed, this looks pretty good to me, I've left a few comments.
compiler/rustc_trait_selection/src/traits/error_reporting/suggestions.rs
Outdated
Show resolved
Hide resolved
compiler/rustc_trait_selection/src/traits/error_reporting/suggestions.rs
Outdated
Show resolved
Hide resolved
|
r? @davidtwco |
|
☔ The latest upstream changes (presumably #95656) made this pull request unmergeable. Please resolve the merge conflicts. |
…in a foreign crate Adding diagnostic data on generators to the crate metadata and using it to provide a better diagnostic on failure to meet send bound on futures originated from a foreign crate
726bdab to
ebe3c56
Compare
|
Sorry for the late response (recovered from COVID) |
|
Thanks! @bors r+ |
|
bors? you there? @bors r+ |
|
📌 Commit ebe3c56 has been approved by |
…c_fn_in_foreign_crate_diag_2, r=davidtwco Improved diagnostic on failure to meet send bound on future in a foreign crate Provide a better diagnostic on failure to meet send bound on futures in a foreign crate. fixes rust-lang#78543
…c_fn_in_foreign_crate_diag_2, r=davidtwco Improved diagnostic on failure to meet send bound on future in a foreign crate Provide a better diagnostic on failure to meet send bound on futures in a foreign crate. fixes rust-lang#78543
Rollup of 6 pull requests Successful merges: - rust-lang#94493 (Improved diagnostic on failure to meet send bound on future in a foreign crate) - rust-lang#95809 (Fix typo in bootstrap.py) - rust-lang#96086 (Remove `--extern-location` and all associated code) - rust-lang#96089 (`alloc`: make `vec!` unavailable under `no_global_oom_handling`) - rust-lang#96122 (Fix an invalid error for a suggestion to add a slice in pattern-matching) - rust-lang#96142 (Stop using CRATE_DEF_INDEX outside of metadata encoding.) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
Provide a better diagnostic on failure to meet send bound on futures in a foreign crate.
fixes #78543