rust/compiler/rustc_trait_selection/src
Matthias Krüger b25172b504
Rollup merge of #89889 - estebank:unmet-send-bound-on-foreign-future, r=tmandry
Use the "nice E0277 errors"[1] for `!Send` `impl Future` from foreign crate

Partly address #78543 by making the error quieter.

We don't have access to the `typeck` tables from foreign crates, so we
used to completely skip the new code when checking foreign crates. Now,
we carry on and don't provide as nice output (we don't clarify *what* is
making the `Future: !Send`), but at least we no longer emit a sea of
derived obligations in the output.

[1]: https://blog.rust-lang.org/inside-rust/2019/10/11/AsyncAwait-Not-Send-Error-Improvements.html

r? `@tmandry`
2021-10-25 07:54:12 +02:00
..
traits Rollup merge of #89889 - estebank:unmet-send-bound-on-foreign-future, r=tmandry 2021-10-25 07:54:12 +02:00
autoderef.rs Improve help for recursion limit errors 2021-09-28 22:17:13 +02:00
infer.rs Move some outlives bounds things from rustc_trait_selection to rustc_typeck 2021-10-15 12:14:19 -04:00
lib.rs Rollup merge of #89558 - lcnr:query-stable-lint, r=estebank 2021-10-24 15:48:42 +02:00
opaque_types.rs Member constraints already covered all of E0482 already, so that error never occurred anymore 2021-10-18 15:50:56 +00:00