fix: sort and deduplicate auto traits in trait object types

This commit is contained in:
Ryo Yoshida
2022-07-18 19:49:14 +09:00
parent 5543dd88c9
commit 7ecead23c8
3 changed files with 132 additions and 9 deletions

View File

@@ -1910,7 +1910,7 @@ impl<T> Vec<T> {
pub struct Box<T> {}
trait Display {}
trait Sync {}
auto trait Sync {}
fn main() {
// The block expression wrapping disables the constructor hint hiding logic