diff options
| author | Aaron Hill <aa1ronham@gmail.com> | 2018-02-19 20:27:28 -0500 |
|---|---|---|
| committer | Aaron Hill <aa1ronham@gmail.com> | 2018-02-19 20:27:28 -0500 |
| commit | 44d07df1cc5913b108d9207410ede33c38905bec (patch) | |
| tree | c3753f0ea1ca3dfc1f16ab52dfab1e122fac19d2 /src/test/rustdoc | |
| parent | 87881799a20e66b8dcef027e26021cefefeb14fd (diff) | |
| download | rust-44d07df1cc5913b108d9207410ede33c38905bec.tar.gz rust-44d07df1cc5913b108d9207410ede33c38905bec.zip | |
Sort synthetic impls bounds before rendering
This removes the implicit dependency on the iteration order of FxHashMap
Diffstat (limited to 'src/test/rustdoc')
| -rw-r--r-- | src/test/rustdoc/synthetic_auto/complex.rs | 4 | ||||
| -rw-r--r-- | src/test/rustdoc/synthetic_auto/lifetimes.rs | 2 | ||||
| -rw-r--r-- | src/test/rustdoc/synthetic_auto/project.rs | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/src/test/rustdoc/synthetic_auto/complex.rs b/src/test/rustdoc/synthetic_auto/complex.rs index 81259a50108..531798c30c6 100644 --- a/src/test/rustdoc/synthetic_auto/complex.rs +++ b/src/test/rustdoc/synthetic_auto/complex.rs @@ -31,8 +31,8 @@ mod foo { // @has complex/struct.NotOuter.html // @has - '//*[@id="synthetic-implementations-list"]/*[@class="impl"]/*/code' "impl<'a, T, K: \ -// ?Sized> Send for NotOuter<'a, T, K> where 'a: 'static, K: for<'b> Fn((&'b bool, &'a u8)) \ -// -> &'b i8, <T as MyTrait<'a>>::MyItem: Copy, T: MyTrait<'a>" +// ?Sized> Send for NotOuter<'a, T, K> where K: for<'b> Fn((&'b bool, &'a u8)) \ +// -> &'b i8, T: MyTrait<'a>, <T as MyTrait<'a>>::MyItem: Copy, 'a: 'static" pub use foo::{Foo, Inner as NotInner, MyTrait as NotMyTrait, Outer as NotOuter}; diff --git a/src/test/rustdoc/synthetic_auto/lifetimes.rs b/src/test/rustdoc/synthetic_auto/lifetimes.rs index 2f92627f954..272925e5db5 100644 --- a/src/test/rustdoc/synthetic_auto/lifetimes.rs +++ b/src/test/rustdoc/synthetic_auto/lifetimes.rs @@ -19,7 +19,7 @@ where // @has lifetimes/struct.Foo.html // @has - '//*[@id="synthetic-implementations-list"]/*[@class="impl"]/*/code' "impl<'c, K> Send \ -// for Foo<'c, K> where 'c: 'static, K: for<'b> Fn(&'b bool) -> &'c u8" +// for Foo<'c, K> where K: for<'b> Fn(&'b bool) -> &'c u8, 'c: 'static" // // @has - '//*[@id="synthetic-implementations-list"]/*[@class="impl"]/*/code' "impl<'c, K> Sync \ // for Foo<'c, K> where K: Sync" diff --git a/src/test/rustdoc/synthetic_auto/project.rs b/src/test/rustdoc/synthetic_auto/project.rs index e1b8621ff6d..977607fb148 100644 --- a/src/test/rustdoc/synthetic_auto/project.rs +++ b/src/test/rustdoc/synthetic_auto/project.rs @@ -34,10 +34,10 @@ where // @has project/struct.Foo.html // @has - '//*[@id="synthetic-implementations-list"]/*[@class="impl"]/*/code' "impl<'c, K> Send \ -// for Foo<'c, K> where 'c: 'static, K: MyTrait<MyItem = bool>" +// for Foo<'c, K> where K: MyTrait<MyItem = bool>, 'c: 'static" // // @has - '//*[@id="synthetic-implementations-list"]/*[@class="impl"]/*/code' "impl<'c, K> Sync \ -// for Foo<'c, K> where 'c: 'static, K: MyTrait, <K as MyTrait>::MyItem: OtherTrait" +// for Foo<'c, K> where K: MyTrait, <K as MyTrait>::MyItem: OtherTrait, 'c: 'static," pub struct Foo<'c, K: 'c> { inner_field: Inner<'c, K>, } |
