Skip to content

Commit 87a354b

Browse files
NoratriebadrianEffe
andcommitted
Bless rustdoc-ui tests
Co-authored-by: Adrian <adrian.iosdev@gmail.com>
1 parent 41e8d15 commit 87a354b

File tree

64 files changed

+64
-64
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+64
-64
lines changed

tests/rustdoc-ui/bounded-hr-lifetime.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ error: lifetime bounds cannot be used in this context
44
LL | for<'a: 'b + 'c> &'a (): std::fmt::Debug,
55
| ^^ ^^
66

7-
error: aborting due to previous error
7+
error: aborting due to 1 previous error
88

tests/rustdoc-ui/const-evalutation-ice.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ error[E0080]: evaluation of constant value failed
44
LL | pub const N: usize = 0 - (mem::size_of::<S>() != 400) as usize;
55
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ attempt to compute `0_usize - 1_usize`, which would overflow
66

7-
error: aborting due to previous error
7+
error: aborting due to 1 previous error
88

99
For more information about this error, try `rustc --explain E0080`.

tests/rustdoc-ui/const_arg_in_type_position.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ error[E0747]: constant provided when a type was expected
44
LL | fn foo<const N: usize>() -> Array<N, ()> {
55
| ^
66

7-
error: aborting due to previous error
7+
error: aborting due to 1 previous error
88

99
For more information about this error, try `rustc --explain E0747`.

tests/rustdoc-ui/diagnostic-width.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ note: the lint level is defined here
1111
LL | ...ny(rustdoc::bare_url...
1212
| ^^^^^^^^^^^^^^^^^^
1313

14-
error: aborting due to previous error
14+
error: aborting due to 1 previous error
1515

tests/rustdoc-ui/doc-alias-assoc-const.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ error: `#[doc(alias = "...")]` isn't allowed on associated constant in trait imp
44
LL | #[doc(alias = "CONST_BAZ")]
55
| ^^^^^^^^^^^^^^^^^^^
66

7-
error: aborting due to previous error
7+
error: aborting due to 1 previous error
88

tests/rustdoc-ui/doc-alias-same-name.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ error: `#[doc(alias = "...")]` is the same as the item's name
44
LL | #[doc(alias = "Foo")]
55
| ^^^^^^^^^^^^^
66

7-
error: aborting due to previous error
7+
error: aborting due to 1 previous error
88

tests/rustdoc-ui/doctest/doctest-edition.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@ help: mark blocks that do not contain Rust code as text
1818
LL | //! ```text
1919
| ++++
2020

21-
error: aborting due to previous error
21+
error: aborting due to 1 previous error
2222

tests/rustdoc-ui/doctest/failed-doctest-extra-semicolon-on-item.stdout

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ LL | struct S {}; // unexpected semicolon after struct def
1313
|
1414
= help: braced struct declarations are not followed by a semicolon
1515

16-
error: aborting due to previous error
16+
error: aborting due to 1 previous error
1717

1818
Couldn't compile the test.
1919

tests/rustdoc-ui/doctest/failed-doctest-missing-codes.stdout

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ LL | let x: () = 5i32;
1313
| |
1414
| expected due to this
1515

16-
error: aborting due to previous error
16+
error: aborting due to 1 previous error
1717

1818
For more information about this error, try `rustc --explain E0308`.
1919
Some expected error codes were not found: ["E0004"]

tests/rustdoc-ui/doctest/failed-doctest-output.stdout

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ error[E0425]: cannot find value `no` in this scope
1212
LL | no
1313
| ^^ not found in this scope
1414

15-
error: aborting due to previous error
15+
error: aborting due to 1 previous error
1616

1717
For more information about this error, try `rustc --explain E0425`.
1818
Couldn't compile the test.

tests/rustdoc-ui/doctest/nocapture-fail.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@ LL | Input: 123
1414
LL ~ } }
1515
|
1616

17-
error: aborting due to previous error
17+
error: aborting due to 1 previous error
1818

tests/rustdoc-ui/doctest/private-item-doc-test.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@ note: the lint level is defined here
1414
LL | #![deny(rustdoc::private_doc_tests)]
1515
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
1616

17-
error: aborting due to previous error
17+
error: aborting due to 1 previous error
1818

tests/rustdoc-ui/doctest/private-public-item-doc-test.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@ note: the lint level is defined here
1414
LL | #![deny(rustdoc::private_doc_tests)]
1515
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
1616

17-
error: aborting due to previous error
17+
error: aborting due to 1 previous error
1818

tests/rustdoc-ui/doctest/test-compile-fail1.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ error[E0428]: the name `f` is defined multiple times
99
|
1010
= note: `f` must be defined only once in the value namespace of this module
1111

12-
error: aborting due to previous error
12+
error: aborting due to 1 previous error
1313

1414
For more information about this error, try `rustc --explain E0428`.

tests/rustdoc-ui/doctest/test-compile-fail2.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ error: expected one of `!` or `::`, found `<eof>`
44
3 | fail
55
| ^^^^ expected one of `!` or `::`
66

7-
error: aborting due to previous error
7+
error: aborting due to 1 previous error
88

tests/rustdoc-ui/doctest/test-compile-fail3.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ error[E0765]: unterminated double quote string
44
3 | "fail
55
| ^^^^^^
66

7-
error: aborting due to previous error
7+
error: aborting due to 1 previous error
88

99
For more information about this error, try `rustc --explain E0765`.

tests/rustdoc-ui/doctest/unparseable-doc-test.stdout

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ error[E0765]: unterminated double quote string
1111
LL | "unterminated
1212
| ^^^^^^^^^^^^^
1313

14-
error: aborting due to previous error
14+
error: aborting due to 1 previous error
1515

1616
For more information about this error, try `rustc --explain E0765`.
1717
Couldn't compile the test.

tests/rustdoc-ui/error-in-impl-trait/infinite-recursive-type-2.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@ help: insert some indirection (e.g., a `Box`, `Rc`, or `&`) to break the cycle
1212
LL | V(Box<E>),
1313
| ++++ +
1414

15-
error: aborting due to previous error
15+
error: aborting due to 1 previous error
1616

1717
For more information about this error, try `rustc --explain E0072`.

tests/rustdoc-ui/error-in-impl-trait/infinite-recursive-type-impl-trait-return.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ help: insert some indirection (e.g., a `DEF_ID`) to break the cycle
1111
LL | This(Box<E>),
1212
| ++++ +
1313

14-
error: aborting due to previous error
14+
error: aborting due to 1 previous error
1515

1616
For more information about this error, try `DEF_ID`.

tests/rustdoc-ui/error-in-impl-trait/infinite-recursive-type.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@ help: insert some indirection (e.g., a `Box`, `Rc`, or `&`) to break the cycle
1212
LL | V(Box<E>),
1313
| ++++ +
1414

15-
error: aborting due to previous error
15+
error: aborting due to 1 previous error
1616

1717
For more information about this error, try `rustc --explain E0072`.

tests/rustdoc-ui/feature-gate-doc_cfg_hide.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ LL | #![doc(cfg_hide(test))]
77
= note: see issue #43781 <https://github.com/rust-lang/rust/issues/43781> for more information
88
= help: add `#![feature(doc_cfg_hide)]` to the crate attributes to enable
99

10-
error: aborting due to previous error
10+
error: aborting due to 1 previous error
1111

1212
For more information about this error, try `rustc --explain E0658`.

tests/rustdoc-ui/infinite-recursive-type.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@ help: insert some indirection (e.g., a `Box`, `Rc`, or `&`) to break the cycle
1212
LL | V(Box<E>),
1313
| ++++ +
1414

15-
error: aborting due to previous error
15+
error: aborting due to 1 previous error
1616

1717
For more information about this error, try `rustc --explain E0072`.

tests/rustdoc-ui/intra-doc/alias-ice.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ note: the lint level is defined here
1010
LL | #![deny(rustdoc::broken_intra_doc_links)]
1111
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1212

13-
error: aborting due to previous error
13+
error: aborting due to 1 previous error
1414

tests/rustdoc-ui/intra-doc/assoc-item-not-in-scope.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ note: the lint level is defined here
1010
LL | #![deny(rustdoc::broken_intra_doc_links)]
1111
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1212

13-
error: aborting due to previous error
13+
error: aborting due to 1 previous error
1414

tests/rustdoc-ui/intra-doc/crate-nonexistent.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ note: the lint level is defined here
1010
LL | #![deny(rustdoc::broken_intra_doc_links)]
1111
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1212

13-
error: aborting due to previous error
13+
error: aborting due to 1 previous error
1414

tests/rustdoc-ui/intra-doc/deny-intra-link-resolution-failure.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ note: the lint level is defined here
1111
LL | #![deny(rustdoc::broken_intra_doc_links)]
1212
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1313

14-
error: aborting due to previous error
14+
error: aborting due to 1 previous error
1515

tests/rustdoc-ui/intra-doc/field-ice.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@ help: to link to the field, remove the disambiguator
1414
LL | /// [`Foo::bar`]
1515
| ~~~~~~~~
1616

17-
error: aborting due to previous error
17+
error: aborting due to 1 previous error
1818

tests/rustdoc-ui/intra-doc/incompatible-primitive-disambiguator.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@ help: to link to the associated constant, prefix with `const@`
1414
LL | //! [const@u8::MIN]
1515
| ~~~~~~
1616

17-
error: aborting due to previous error
17+
error: aborting due to 1 previous error
1818

tests/rustdoc-ui/intra-doc/issue-108653-associated-items-4.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@ help: to link to the associated type, prefix with `type@`
1818
LL | /// [`type@Struct::Trait`]
1919
| +++++
2020

21-
error: aborting due to previous error
21+
error: aborting due to 1 previous error
2222

tests/rustdoc-ui/intra-doc/issue-108653-associated-items-5.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@ help: to link to the trait, prefix with `trait@`
1818
LL | /// [`trait@u32::MAX`]
1919
| ++++++
2020

21-
error: aborting due to previous error
21+
error: aborting due to 1 previous error
2222

tests/rustdoc-ui/intra-doc/issue-108653-associated-items-6.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@ help: to link to the primitive type, prefix with `prim@`
1818
LL | /// [`prim@u32::MAX`]
1919
| +++++
2020

21-
error: aborting due to previous error
21+
error: aborting due to 1 previous error
2222

tests/rustdoc-ui/intra-doc/issue-108653-associated-items-7.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@ help: to link to the associated type, prefix with `type@`
1818
LL | /// [`type@u32::MAX`]
1919
| +++++
2020

21-
error: aborting due to previous error
21+
error: aborting due to 1 previous error
2222

tests/rustdoc-ui/intra-doc/issue-108653-associated-items-8.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@ help: to link to the associated type, prefix with `type@`
1818
LL | /// [`type@u32::MAX`]
1919
| +++++
2020

21-
error: aborting due to previous error
21+
error: aborting due to 1 previous error
2222

tests/rustdoc-ui/intra-doc/pub-export-lint.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ note: the lint level is defined here
1111
LL | #![deny(rustdoc::broken_intra_doc_links)]
1212
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1313

14-
error: aborting due to previous error
14+
error: aborting due to 1 previous error
1515

tests/rustdoc-ui/intra-doc/reference-links.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ note: the lint level is defined here
1010
LL | #![deny(rustdoc::broken_intra_doc_links)]
1111
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1212

13-
error: aborting due to previous error
13+
error: aborting due to 1 previous error
1414

tests/rustdoc-ui/intra-doc/span-ice-55723.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ note: the lint level is defined here
1111
LL | #![deny(rustdoc::broken_intra_doc_links)]
1212
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1313

14-
error: aborting due to previous error
14+
error: aborting due to 1 previous error
1515

tests/rustdoc-ui/intra-doc/unresolved-import-recovery.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ LL | use unresolved_crate::module::Name;
66
|
77
= help: consider adding `extern crate unresolved_crate` to use the `unresolved_crate` crate
88

9-
error: aborting due to previous error
9+
error: aborting due to 1 previous error
1010

1111
For more information about this error, try `rustc --explain E0433`.

tests/rustdoc-ui/intra-doc/unused-extern-crate.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ note: the lint level is defined here
1111
LL | #![deny(rustdoc::broken_intra_doc_links)]
1212
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1313

14-
error: aborting due to previous error
14+
error: aborting due to 1 previous error
1515

tests/rustdoc-ui/invalid-keyword.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ error: `foo df` is not a valid identifier
44
LL | #[doc(keyword = "foo df")]
55
| ^^^^^^^^
66

7-
error: aborting due to previous error
7+
error: aborting due to 1 previous error
88

tests/rustdoc-ui/invalid_associated_const.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ error[E0229]: associated type bindings are not allowed here
44
LL | type A: S<C<X = 0i32> = 34>;
55
| ^^^^^^^^ associated type not allowed here
66

7-
error: aborting due to previous error
7+
error: aborting due to 1 previous error
88

99
For more information about this error, try `rustc --explain E0229`.

tests/rustdoc-ui/issue-102467.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ error[E0229]: associated type bindings are not allowed here
44
LL | type A: S<C<X = 0i32> = 34>;
55
| ^^^^^^^^ associated type not allowed here
66

7-
error: aborting due to previous error
7+
error: aborting due to 1 previous error
88

99
For more information about this error, try `rustc --explain E0229`.

tests/rustdoc-ui/issue-110629-private-type-cycle-dyn.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@ LL | | }
2121
| |_^
2222
= note: see https://rustc-dev-guide.rust-lang.org/overview.html#queries and https://rustc-dev-guide.rust-lang.org/query.html for more information
2323

24-
error: aborting due to previous error
24+
error: aborting due to 1 previous error
2525

2626
For more information about this error, try `rustc --explain E0391`.

tests/rustdoc-ui/issues/issue-102986.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ help: consider replacing `typeof(...)` with an actual type
99
LL | y: (&'static str,),
1010
| ~~~~~~~~~~~~
1111

12-
error: aborting due to previous error
12+
error: aborting due to 1 previous error
1313

1414
For more information about this error, try `rustc --explain E0516`.

tests/rustdoc-ui/issues/issue-105334.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ error[E0747]: constant provided when a type was expected
44
LL | impl Vec< br##"*.."## > {}
55
| ^^^^^^^^^^^
66

7-
error: aborting due to previous error
7+
error: aborting due to 1 previous error
88

99
For more information about this error, try `rustc --explain E0747`.

tests/rustdoc-ui/issues/issue-105737.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ LL | impl Vec<lol> {}
77
= help: `lol` is a function item, not a type
88
= help: function item types cannot be named directly
99

10-
error: aborting due to previous error
10+
error: aborting due to 1 previous error
1111

1212
For more information about this error, try `rustc --explain E0747`.

tests/rustdoc-ui/issues/issue-106213.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ error[E0224]: at least one trait is required for an object type
44
LL | fn use_avx() -> dyn {
55
| ^^^
66

7-
error: aborting due to previous error
7+
error: aborting due to 1 previous error
88

99
For more information about this error, try `rustc --explain E0224`.

tests/rustdoc-ui/issues/issue-106226.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ error[E0121]: the placeholder `_` is not allowed within types on item signatures
44
LL | type F = [_; ()];
55
| ^ not allowed in type signatures
66

7-
error: aborting due to previous error
7+
error: aborting due to 1 previous error
88

99
For more information about this error, try `rustc --explain E0121`.

tests/rustdoc-ui/issues/issue-61592-2.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ LL | #[doc = "baz"]
77
LL | pub use foo::Foo as _;
88
| ---------------------- anonymous import
99

10-
error: aborting due to previous error
10+
error: aborting due to 1 previous error
1111

1212
For more information about this error, try `rustc --explain E0780`.

tests/rustdoc-ui/issues/issue-61592.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ LL | #[doc(inline)]
66
LL | pub use foo::Foo as _;
77
| ---------------------- anonymous import
88

9-
error: aborting due to previous error
9+
error: aborting due to 1 previous error
1010

1111
For more information about this error, try `rustc --explain E0780`.

tests/rustdoc-ui/issues/issue-61732.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ LL | pub(in crate::r#mod) fn main() {}
66
|
77
= help: consider adding `extern crate r#mod` to use the `r#mod` crate
88

9-
error: aborting due to previous error
9+
error: aborting due to 1 previous error
1010

1111
For more information about this error, try `rustc --explain E0433`.

tests/rustdoc-ui/issues/issue-79465.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ error[E0220]: associated type `A` not found for `T`
44
LL | pub fn f1<T>(x: T::A) {}
55
| ^ associated type `A` not found
66

7-
error: aborting due to previous error
7+
error: aborting due to 1 previous error
88

99
For more information about this error, try `rustc --explain E0220`.

tests/rustdoc-ui/issues/issue-79467.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ error[E0224]: at least one trait is required for an object type
44
LL | dyn 'static: 'static + Copy,
55
| ^^^^^^^^^^^
66

7-
error: aborting due to previous error
7+
error: aborting due to 1 previous error
88

99
For more information about this error, try `rustc --explain E0224`.

0 commit comments

Comments
 (0)