]> git.lizzy.rs Git - rust.git/commit
Make `Impl.trait_` a `Path`, not a `Type`
authorNoah Lev <camelidcamel@gmail.com>
Tue, 24 Aug 2021 04:01:56 +0000 (21:01 -0700)
committerNoah Lev <camelidcamel@gmail.com>
Thu, 30 Sep 2021 20:52:57 +0000 (13:52 -0700)
commit4c6385ff935d8121c5cc4c44b62a2b0ae0118a35
treee532b6c07b718f9be1e9407935ee494d567abb81
parentd91946b3f4ea04bc205b5796fc4af0f13069d204
Make `Impl.trait_` a `Path`, not a `Type`

It should only ever be a `ResolvedPath`, so this (a) enforces that, and
(b) reduces the size of `Impl`.

I had to update a test because the order of the rendered auto trait impl
bounds changed. I think the order changed because rustdoc sorts auto
trait bounds using their `Debug` output.
src/librustdoc/clean/auto_trait.rs
src/librustdoc/clean/blanket_impl.rs
src/librustdoc/clean/inline.rs
src/librustdoc/clean/mod.rs
src/librustdoc/clean/types.rs
src/librustdoc/formats/mod.rs
src/librustdoc/html/format.rs
src/librustdoc/html/render/mod.rs
src/librustdoc/json/conversions.rs
src/librustdoc/passes/collect_trait_impls.rs