diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2022-02-09 23:29:55 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-02-09 23:29:55 +0100 |
| commit | 9634559599537e334cbfa854446d048e6ebe5ee9 (patch) | |
| tree | ccbdfb0d1c274fff3ac3077f85356e112145c2a0 /library/std/src/sys/unix/stack_overflow.rs | |
| parent | e7aca895980f25f6d2d3c48e10fd04656764d1e4 (diff) | |
| parent | fea0015f9320f59c46821957a01f688f79a02546 (diff) | |
| download | rust-9634559599537e334cbfa854446d048e6ebe5ee9.tar.gz rust-9634559599537e334cbfa854446d048e6ebe5ee9.zip | |
Rollup merge of #91443 - compiler-errors:bad_collect_into_slice, r=wesleywiser
Better suggestions when user tries to collect into an unsized `[_]` 1. Extend the predicate on `rustc_on_unimplemented` to support substitutions like note, label, etc (i.e. treat it as a `OnUnimplementedFormatString`) so we can have slightly more general `rustc_on_unimplemented` special-cases. 2. Add a `rustc_on_unimplemented` if we fail on `FromIterator<A> for [A]` which happens when we don't explicitly collect into a `vec<A>`, but then pass the return from a `.collect` call into something that takes a slice. Fixes #91423
Diffstat (limited to 'library/std/src/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions
