diff options
| author | Joshua Nelson <jyn514@gmail.com> | 2020-07-09 09:13:59 -0400 |
|---|---|---|
| committer | Joshua Nelson <jyn514@gmail.com> | 2020-07-15 10:54:05 -0400 |
| commit | a93bcc9a7b8e48865d3df59fc936a0553e4d1e37 (patch) | |
| tree | 4cfa88cff7c79c7bcbc74dbe4b89908d84468a07 /src/rustllvm/RustWrapper.cpp | |
| parent | 768d6a4950d66f1a0e1e7793a984fb638494d1c5 (diff) | |
| download | rust-a93bcc9a7b8e48865d3df59fc936a0553e4d1e37.tar.gz rust-a93bcc9a7b8e48865d3df59fc936a0553e4d1e37.zip | |
Recurse into function bodies, but don't typeck closures
Previously, rustdoc would issue a delay_span_bug ICE on the following code:
```rust
pub fn a() -> impl Fn() -> u32 {
|| content::doesnt::matter()
}
```
This wasn't picked up earlier because having `type Alias = impl Trait;`
in the same module caused _all closures_ to be typechecked, even if they
wouldn't normally. Additionally, if _any_ error was emitted, no
delay_span_bug would be emitted. So as part of this commit all of the
tests were separated out into different files.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
