diff options
| author | Joshua Nelson <jyn514@gmail.com> | 2020-07-03 18:41:23 -0400 |
|---|---|---|
| committer | Joshua Nelson <jyn514@gmail.com> | 2020-07-15 10:54:05 -0400 |
| commit | 768d6a4950d66f1a0e1e7793a984fb638494d1c5 (patch) | |
| tree | 0fa6c6b3650ce0d7f7e3272400c16b339271ca84 /src/rustllvm/RustWrapper.cpp | |
| parent | 14a8707cde48c7914af307f4687056d829ad2de9 (diff) | |
| download | rust-768d6a4950d66f1a0e1e7793a984fb638494d1c5.tar.gz rust-768d6a4950d66f1a0e1e7793a984fb638494d1c5.zip | |
Don't ICE on errors in function returning impl trait
Instead, report the error. This emits the errors on-demand, without special-casing `impl Trait`, so it should catch all ICEs of this kind, including ones that haven't been found yet. Since the error is emitted during type-checking there is less info about the error; see comments in the code for details. - Add test case for -> impl Trait - Add test for impl trait with alias - Move EmitIgnoredResolutionErrors to rustdoc This makes `fn typeck_item_bodies` public, which is not desired behavior. That change should be removed once https://github.com/rust-lang/rust/pull/74070 is merged. - Don't visit nested closures twice
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
