]> git.lizzy.rs Git - rust.git/commit
Fix ordering of auto-generated trait bounds in rustdoc output
authorPhlosioneer <mattmdrr2@gmail.com>
Tue, 20 Mar 2018 03:35:23 +0000 (23:35 -0400)
committerPhlosioneer <mattmdrr2@gmail.com>
Tue, 20 Mar 2018 03:42:14 +0000 (23:42 -0400)
commit57e3df3f879090207f5a128a497b66916aeabb6b
treef2a4f5224d78ad68b483256ece936d6fb27fbb24
parent6bfa7d02d6713acd15ead20c199b808e85031f9e
Fix ordering of auto-generated trait bounds in rustdoc output

While the order of the where clauses was deterministic, the
ordering of bounds and lifetimes was not. This made the order flip-
flop randomly when new traits and impls were added to libstd.

This PR makes the ordering of bounds and lifetimes deterministic,
and re-enables the test that was causing the issue.

Fixes #49123
src/librustdoc/clean/auto_trait.rs
src/test/rustdoc/synthetic_auto/no-redundancy.rs