<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/src/test/rustdoc-ui/error-in-impl-trait/README.md, branch 1.56.0</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=1.56.0</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=1.56.0'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2020-07-15T14:54:05+00:00</updated>
<entry>
<title>Recurse into function bodies, but don't typeck closures</title>
<updated>2020-07-15T14:54:05+00:00</updated>
<author>
<name>Joshua Nelson</name>
<email>jyn514@gmail.com</email>
</author>
<published>2020-07-09T13:13:59+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=a93bcc9a7b8e48865d3df59fc936a0553e4d1e37'/>
<id>urn:sha1:a93bcc9a7b8e48865d3df59fc936a0553e4d1e37</id>
<content type='text'>
Previously, rustdoc would issue a delay_span_bug ICE on the following code:

```rust
pub fn a() -&gt; impl Fn() -&gt; 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.
</content>
</entry>
</feed>
