diff options
| author | bors <bors@rust-lang.org> | 2023-06-10 10:02:18 +0000 | 
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-06-10 10:02:18 +0000 | 
| commit | 4b71d79c972a605959b0a7c82b323fbd8562f070 (patch) | |
| tree | 1b4cb2c2cb64500f4efa7f45dfe39cfe38ccc537 /tests/rustdoc-js/generics-trait.js | |
| parent | d0ee1908ed791d3e91d2ad74ba502eaa203cff6d (diff) | |
| parent | dcdfff61d299954557c1a6e3fa9ebb83fe8af30c (diff) | |
| download | rust-4b71d79c972a605959b0a7c82b323fbd8562f070.tar.gz rust-4b71d79c972a605959b0a7c82b323fbd8562f070.zip | |
Auto merge of #112485 - matthiaskrgr:rollup-ta84xje, r=matthiaskrgr
Rollup of 6 pull requests Successful merges: - #110141 (expand: Change how `#![cfg(FALSE)]` behaves on crate root) - #112369 (More CGU cleanups) - #112467 (Compile rustc_driver by default) - #112468 (Change format of rustdoc-js tests by putting query and correction directly alongside the expected values) - #112473 (Update cargo) - #112481 (Ignore tests that hang in new solver) r? `@ghost` `@rustbot` modify labels: rollup
Diffstat (limited to 'tests/rustdoc-js/generics-trait.js')
| -rw-r--r-- | tests/rustdoc-js/generics-trait.js | 26 | 
1 files changed, 8 insertions, 18 deletions
| diff --git a/tests/rustdoc-js/generics-trait.js b/tests/rustdoc-js/generics-trait.js index 0e84751603e..4ccfb8f4e4d 100644 --- a/tests/rustdoc-js/generics-trait.js +++ b/tests/rustdoc-js/generics-trait.js @@ -1,22 +1,9 @@ // exact-check -const QUERY = [ - 'Result<SomeTrait>', - 'Result<SomeTraiz>', - 'OtherThingxxxxxxxx', - 'OtherThingxxxxxxxy', -]; - -const CORRECTIONS = [ - null, - null, - null, - 'OtherThingxxxxxxxx', -]; - const EXPECTED = [ - // Result<SomeTrait> { + 'query': 'Result<SomeTrait>', + 'correction': null, 'in_args': [ { 'path': 'generics_trait', 'name': 'beta' }, ], @@ -24,13 +11,15 @@ const EXPECTED = [ { 'path': 'generics_trait', 'name': 'bet' }, ], }, - // Result<SomeTraiz> { + 'query': 'Result<SomeTraiz>', + 'correction': null, 'in_args': [], 'returned': [], }, - // OtherThingxxxxxxxx { + 'query': 'OtherThingxxxxxxxx', + 'correction': null, 'in_args': [ { 'path': 'generics_trait', 'name': 'alpha' }, ], @@ -38,8 +27,9 @@ const EXPECTED = [ { 'path': 'generics_trait', 'name': 'alef' }, ], }, - // OtherThingxxxxxxxy { + 'query': 'OtherThingxxxxxxxy', + 'correction': 'OtherThingxxxxxxxx', 'in_args': [ { 'path': 'generics_trait', 'name': 'alpha' }, ], | 
