]> git.lizzy.rs Git - rust.git/commit
Don't try to render auto-trait bounds with any inference variables
authorAaron Hill <aa1ronham@gmail.com>
Sun, 28 Apr 2019 00:33:03 +0000 (20:33 -0400)
committerAaron Hill <aa1ronham@gmail.com>
Sun, 28 Apr 2019 00:33:03 +0000 (20:33 -0400)
commit02a40e83b217e281e7d2928cf1ce1560f6f7c219
tree35de5d6d6343f4e86cd62114aa13cfe89d407bb1
parentab9c016395e7a7ce5b2aaf09e1b10c8dd2744eee
Don't try to render auto-trait bounds with any inference variables

Previously, we checked if the target of a projection type was itself an
inference variable. However, for Rustdoc rendering purposes, there's no
distinction between an inference variable ('_') and a type containing
one (e.g. (MyStruct<u8, _>)) - we don't want to render either of them.

Fixes #60269

Due to the complexity of the original bug, which spans three different
crates (hyper, tower-hyper, and tower), I have been unable to create a
minimized reproduction for the issue.
src/librustc/traits/auto_trait.rs
src/librustdoc/clean/mod.rs