mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 06:44:35 +00:00
Bless rustdoc-ui tests
Co-authored-by: Adrian <adrian.iosdev@gmail.com>
This commit is contained in:
parent
41e8d152dc
commit
87a354b15d
@ -4,5 +4,5 @@ error: lifetime bounds cannot be used in this context
|
||||
LL | for<'a: 'b + 'c> &'a (): std::fmt::Debug,
|
||||
| ^^ ^^
|
||||
|
||||
error: aborting due to previous error
|
||||
error: aborting due to 1 previous error
|
||||
|
||||
|
@ -4,6 +4,6 @@ error[E0080]: evaluation of constant value failed
|
||||
LL | pub const N: usize = 0 - (mem::size_of::<S>() != 400) as usize;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ attempt to compute `0_usize - 1_usize`, which would overflow
|
||||
|
||||
error: aborting due to previous error
|
||||
error: aborting due to 1 previous error
|
||||
|
||||
For more information about this error, try `rustc --explain E0080`.
|
||||
|
@ -4,6 +4,6 @@ error[E0747]: constant provided when a type was expected
|
||||
LL | fn foo<const N: usize>() -> Array<N, ()> {
|
||||
| ^
|
||||
|
||||
error: aborting due to previous error
|
||||
error: aborting due to 1 previous error
|
||||
|
||||
For more information about this error, try `rustc --explain E0747`.
|
||||
|
@ -11,5 +11,5 @@ note: the lint level is defined here
|
||||
LL | ...ny(rustdoc::bare_url...
|
||||
| ^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: aborting due to previous error
|
||||
error: aborting due to 1 previous error
|
||||
|
||||
|
@ -4,5 +4,5 @@ error: `#[doc(alias = "...")]` isn't allowed on associated constant in trait imp
|
||||
LL | #[doc(alias = "CONST_BAZ")]
|
||||
| ^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: aborting due to previous error
|
||||
error: aborting due to 1 previous error
|
||||
|
||||
|
@ -4,5 +4,5 @@ error: `#[doc(alias = "...")]` is the same as the item's name
|
||||
LL | #[doc(alias = "Foo")]
|
||||
| ^^^^^^^^^^^^^
|
||||
|
||||
error: aborting due to previous error
|
||||
error: aborting due to 1 previous error
|
||||
|
||||
|
@ -18,5 +18,5 @@ help: mark blocks that do not contain Rust code as text
|
||||
LL | //! ```text
|
||||
| ++++
|
||||
|
||||
error: aborting due to previous error
|
||||
error: aborting due to 1 previous error
|
||||
|
||||
|
@ -13,7 +13,7 @@ LL | struct S {}; // unexpected semicolon after struct def
|
||||
|
|
||||
= help: braced struct declarations are not followed by a semicolon
|
||||
|
||||
error: aborting due to previous error
|
||||
error: aborting due to 1 previous error
|
||||
|
||||
Couldn't compile the test.
|
||||
|
||||
|
@ -13,7 +13,7 @@ LL | let x: () = 5i32;
|
||||
| |
|
||||
| expected due to this
|
||||
|
||||
error: aborting due to previous error
|
||||
error: aborting due to 1 previous error
|
||||
|
||||
For more information about this error, try `rustc --explain E0308`.
|
||||
Some expected error codes were not found: ["E0004"]
|
||||
|
@ -12,7 +12,7 @@ error[E0425]: cannot find value `no` in this scope
|
||||
LL | no
|
||||
| ^^ not found in this scope
|
||||
|
||||
error: aborting due to previous error
|
||||
error: aborting due to 1 previous error
|
||||
|
||||
For more information about this error, try `rustc --explain E0425`.
|
||||
Couldn't compile the test.
|
||||
|
@ -14,5 +14,5 @@ LL | Input: 123
|
||||
LL ~ } }
|
||||
|
|
||||
|
||||
error: aborting due to previous error
|
||||
error: aborting due to 1 previous error
|
||||
|
||||
|
@ -14,5 +14,5 @@ note: the lint level is defined here
|
||||
LL | #![deny(rustdoc::private_doc_tests)]
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: aborting due to previous error
|
||||
error: aborting due to 1 previous error
|
||||
|
||||
|
@ -14,5 +14,5 @@ note: the lint level is defined here
|
||||
LL | #![deny(rustdoc::private_doc_tests)]
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: aborting due to previous error
|
||||
error: aborting due to 1 previous error
|
||||
|
||||
|
@ -9,6 +9,6 @@ error[E0428]: the name `f` is defined multiple times
|
||||
|
|
||||
= note: `f` must be defined only once in the value namespace of this module
|
||||
|
||||
error: aborting due to previous error
|
||||
error: aborting due to 1 previous error
|
||||
|
||||
For more information about this error, try `rustc --explain E0428`.
|
||||
|
@ -4,5 +4,5 @@ error: expected one of `!` or `::`, found `<eof>`
|
||||
3 | fail
|
||||
| ^^^^ expected one of `!` or `::`
|
||||
|
||||
error: aborting due to previous error
|
||||
error: aborting due to 1 previous error
|
||||
|
||||
|
@ -4,6 +4,6 @@ error[E0765]: unterminated double quote string
|
||||
3 | "fail
|
||||
| ^^^^^^
|
||||
|
||||
error: aborting due to previous error
|
||||
error: aborting due to 1 previous error
|
||||
|
||||
For more information about this error, try `rustc --explain E0765`.
|
||||
|
@ -11,7 +11,7 @@ error[E0765]: unterminated double quote string
|
||||
LL | "unterminated
|
||||
| ^^^^^^^^^^^^^
|
||||
|
||||
error: aborting due to previous error
|
||||
error: aborting due to 1 previous error
|
||||
|
||||
For more information about this error, try `rustc --explain E0765`.
|
||||
Couldn't compile the test.
|
||||
|
@ -12,6 +12,6 @@ help: insert some indirection (e.g., a `Box`, `Rc`, or `&`) to break the cycle
|
||||
LL | V(Box<E>),
|
||||
| ++++ +
|
||||
|
||||
error: aborting due to previous error
|
||||
error: aborting due to 1 previous error
|
||||
|
||||
For more information about this error, try `rustc --explain E0072`.
|
||||
|
@ -11,6 +11,6 @@ help: insert some indirection (e.g., a `DEF_ID`) to break the cycle
|
||||
LL | This(Box<E>),
|
||||
| ++++ +
|
||||
|
||||
error: aborting due to previous error
|
||||
error: aborting due to 1 previous error
|
||||
|
||||
For more information about this error, try `DEF_ID`.
|
||||
|
@ -12,6 +12,6 @@ help: insert some indirection (e.g., a `Box`, `Rc`, or `&`) to break the cycle
|
||||
LL | V(Box<E>),
|
||||
| ++++ +
|
||||
|
||||
error: aborting due to previous error
|
||||
error: aborting due to 1 previous error
|
||||
|
||||
For more information about this error, try `rustc --explain E0072`.
|
||||
|
@ -7,6 +7,6 @@ LL | #![doc(cfg_hide(test))]
|
||||
= note: see issue #43781 <https://github.com/rust-lang/rust/issues/43781> for more information
|
||||
= help: add `#![feature(doc_cfg_hide)]` to the crate attributes to enable
|
||||
|
||||
error: aborting due to previous error
|
||||
error: aborting due to 1 previous error
|
||||
|
||||
For more information about this error, try `rustc --explain E0658`.
|
||||
|
@ -12,6 +12,6 @@ help: insert some indirection (e.g., a `Box`, `Rc`, or `&`) to break the cycle
|
||||
LL | V(Box<E>),
|
||||
| ++++ +
|
||||
|
||||
error: aborting due to previous error
|
||||
error: aborting due to 1 previous error
|
||||
|
||||
For more information about this error, try `rustc --explain E0072`.
|
||||
|
@ -10,5 +10,5 @@ note: the lint level is defined here
|
||||
LL | #![deny(rustdoc::broken_intra_doc_links)]
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: aborting due to previous error
|
||||
error: aborting due to 1 previous error
|
||||
|
||||
|
@ -10,5 +10,5 @@ note: the lint level is defined here
|
||||
LL | #![deny(rustdoc::broken_intra_doc_links)]
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: aborting due to previous error
|
||||
error: aborting due to 1 previous error
|
||||
|
||||
|
@ -10,5 +10,5 @@ note: the lint level is defined here
|
||||
LL | #![deny(rustdoc::broken_intra_doc_links)]
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: aborting due to previous error
|
||||
error: aborting due to 1 previous error
|
||||
|
||||
|
@ -11,5 +11,5 @@ note: the lint level is defined here
|
||||
LL | #![deny(rustdoc::broken_intra_doc_links)]
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: aborting due to previous error
|
||||
error: aborting due to 1 previous error
|
||||
|
||||
|
@ -14,5 +14,5 @@ help: to link to the field, remove the disambiguator
|
||||
LL | /// [`Foo::bar`]
|
||||
| ~~~~~~~~
|
||||
|
||||
error: aborting due to previous error
|
||||
error: aborting due to 1 previous error
|
||||
|
||||
|
@ -14,5 +14,5 @@ help: to link to the associated constant, prefix with `const@`
|
||||
LL | //! [const@u8::MIN]
|
||||
| ~~~~~~
|
||||
|
||||
error: aborting due to previous error
|
||||
error: aborting due to 1 previous error
|
||||
|
||||
|
@ -18,5 +18,5 @@ help: to link to the associated type, prefix with `type@`
|
||||
LL | /// [`type@Struct::Trait`]
|
||||
| +++++
|
||||
|
||||
error: aborting due to previous error
|
||||
error: aborting due to 1 previous error
|
||||
|
||||
|
@ -18,5 +18,5 @@ help: to link to the trait, prefix with `trait@`
|
||||
LL | /// [`trait@u32::MAX`]
|
||||
| ++++++
|
||||
|
||||
error: aborting due to previous error
|
||||
error: aborting due to 1 previous error
|
||||
|
||||
|
@ -18,5 +18,5 @@ help: to link to the primitive type, prefix with `prim@`
|
||||
LL | /// [`prim@u32::MAX`]
|
||||
| +++++
|
||||
|
||||
error: aborting due to previous error
|
||||
error: aborting due to 1 previous error
|
||||
|
||||
|
@ -18,5 +18,5 @@ help: to link to the associated type, prefix with `type@`
|
||||
LL | /// [`type@u32::MAX`]
|
||||
| +++++
|
||||
|
||||
error: aborting due to previous error
|
||||
error: aborting due to 1 previous error
|
||||
|
||||
|
@ -18,5 +18,5 @@ help: to link to the associated type, prefix with `type@`
|
||||
LL | /// [`type@u32::MAX`]
|
||||
| +++++
|
||||
|
||||
error: aborting due to previous error
|
||||
error: aborting due to 1 previous error
|
||||
|
||||
|
@ -11,5 +11,5 @@ note: the lint level is defined here
|
||||
LL | #![deny(rustdoc::broken_intra_doc_links)]
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: aborting due to previous error
|
||||
error: aborting due to 1 previous error
|
||||
|
||||
|
@ -10,5 +10,5 @@ note: the lint level is defined here
|
||||
LL | #![deny(rustdoc::broken_intra_doc_links)]
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: aborting due to previous error
|
||||
error: aborting due to 1 previous error
|
||||
|
||||
|
@ -11,5 +11,5 @@ note: the lint level is defined here
|
||||
LL | #![deny(rustdoc::broken_intra_doc_links)]
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: aborting due to previous error
|
||||
error: aborting due to 1 previous error
|
||||
|
||||
|
@ -6,6 +6,6 @@ LL | use unresolved_crate::module::Name;
|
||||
|
|
||||
= help: consider adding `extern crate unresolved_crate` to use the `unresolved_crate` crate
|
||||
|
||||
error: aborting due to previous error
|
||||
error: aborting due to 1 previous error
|
||||
|
||||
For more information about this error, try `rustc --explain E0433`.
|
||||
|
@ -11,5 +11,5 @@ note: the lint level is defined here
|
||||
LL | #![deny(rustdoc::broken_intra_doc_links)]
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: aborting due to previous error
|
||||
error: aborting due to 1 previous error
|
||||
|
||||
|
@ -4,5 +4,5 @@ error: `foo df` is not a valid identifier
|
||||
LL | #[doc(keyword = "foo df")]
|
||||
| ^^^^^^^^
|
||||
|
||||
error: aborting due to previous error
|
||||
error: aborting due to 1 previous error
|
||||
|
||||
|
@ -4,6 +4,6 @@ error[E0229]: associated type bindings are not allowed here
|
||||
LL | type A: S<C<X = 0i32> = 34>;
|
||||
| ^^^^^^^^ associated type not allowed here
|
||||
|
||||
error: aborting due to previous error
|
||||
error: aborting due to 1 previous error
|
||||
|
||||
For more information about this error, try `rustc --explain E0229`.
|
||||
|
@ -4,6 +4,6 @@ error[E0229]: associated type bindings are not allowed here
|
||||
LL | type A: S<C<X = 0i32> = 34>;
|
||||
| ^^^^^^^^ associated type not allowed here
|
||||
|
||||
error: aborting due to previous error
|
||||
error: aborting due to 1 previous error
|
||||
|
||||
For more information about this error, try `rustc --explain E0229`.
|
||||
|
@ -21,6 +21,6 @@ LL | | }
|
||||
| |_^
|
||||
= 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
|
||||
|
||||
error: aborting due to previous error
|
||||
error: aborting due to 1 previous error
|
||||
|
||||
For more information about this error, try `rustc --explain E0391`.
|
||||
|
@ -9,6 +9,6 @@ help: consider replacing `typeof(...)` with an actual type
|
||||
LL | y: (&'static str,),
|
||||
| ~~~~~~~~~~~~
|
||||
|
||||
error: aborting due to previous error
|
||||
error: aborting due to 1 previous error
|
||||
|
||||
For more information about this error, try `rustc --explain E0516`.
|
||||
|
@ -4,6 +4,6 @@ error[E0747]: constant provided when a type was expected
|
||||
LL | impl Vec< br##"*.."## > {}
|
||||
| ^^^^^^^^^^^
|
||||
|
||||
error: aborting due to previous error
|
||||
error: aborting due to 1 previous error
|
||||
|
||||
For more information about this error, try `rustc --explain E0747`.
|
||||
|
@ -7,6 +7,6 @@ LL | impl Vec<lol> {}
|
||||
= help: `lol` is a function item, not a type
|
||||
= help: function item types cannot be named directly
|
||||
|
||||
error: aborting due to previous error
|
||||
error: aborting due to 1 previous error
|
||||
|
||||
For more information about this error, try `rustc --explain E0747`.
|
||||
|
@ -4,6 +4,6 @@ error[E0224]: at least one trait is required for an object type
|
||||
LL | fn use_avx() -> dyn {
|
||||
| ^^^
|
||||
|
||||
error: aborting due to previous error
|
||||
error: aborting due to 1 previous error
|
||||
|
||||
For more information about this error, try `rustc --explain E0224`.
|
||||
|
@ -4,6 +4,6 @@ error[E0121]: the placeholder `_` is not allowed within types on item signatures
|
||||
LL | type F = [_; ()];
|
||||
| ^ not allowed in type signatures
|
||||
|
||||
error: aborting due to previous error
|
||||
error: aborting due to 1 previous error
|
||||
|
||||
For more information about this error, try `rustc --explain E0121`.
|
||||
|
@ -7,6 +7,6 @@ LL | #[doc = "baz"]
|
||||
LL | pub use foo::Foo as _;
|
||||
| ---------------------- anonymous import
|
||||
|
||||
error: aborting due to previous error
|
||||
error: aborting due to 1 previous error
|
||||
|
||||
For more information about this error, try `rustc --explain E0780`.
|
||||
|
@ -6,6 +6,6 @@ LL | #[doc(inline)]
|
||||
LL | pub use foo::Foo as _;
|
||||
| ---------------------- anonymous import
|
||||
|
||||
error: aborting due to previous error
|
||||
error: aborting due to 1 previous error
|
||||
|
||||
For more information about this error, try `rustc --explain E0780`.
|
||||
|
@ -6,6 +6,6 @@ LL | pub(in crate::r#mod) fn main() {}
|
||||
|
|
||||
= help: consider adding `extern crate r#mod` to use the `r#mod` crate
|
||||
|
||||
error: aborting due to previous error
|
||||
error: aborting due to 1 previous error
|
||||
|
||||
For more information about this error, try `rustc --explain E0433`.
|
||||
|
@ -4,6 +4,6 @@ error[E0220]: associated type `A` not found for `T`
|
||||
LL | pub fn f1<T>(x: T::A) {}
|
||||
| ^ associated type `A` not found
|
||||
|
||||
error: aborting due to previous error
|
||||
error: aborting due to 1 previous error
|
||||
|
||||
For more information about this error, try `rustc --explain E0220`.
|
||||
|
@ -4,6 +4,6 @@ error[E0224]: at least one trait is required for an object type
|
||||
LL | dyn 'static: 'static + Copy,
|
||||
| ^^^^^^^^^^^
|
||||
|
||||
error: aborting due to previous error
|
||||
error: aborting due to 1 previous error
|
||||
|
||||
For more information about this error, try `rustc --explain E0224`.
|
||||
|
@ -6,7 +6,7 @@ failures:
|
||||
|
||||
---- $DIR/issue-81662-shortness.rs - foo (line 6) stdout ----
|
||||
$DIR/issue-81662-shortness.rs:7:1: error[E0425]: cannot find function `foo` in this scope
|
||||
error: aborting due to previous error
|
||||
error: aborting due to 1 previous error
|
||||
Couldn't compile the test.
|
||||
|
||||
failures:
|
||||
|
@ -9,6 +9,6 @@ help: consider restricting type parameter `V`
|
||||
LL | pub type Foo<V: TraitWithAssoc> = impl Trait<V::Assoc>;
|
||||
| ++++++++++++++++
|
||||
|
||||
error: aborting due to previous error
|
||||
error: aborting due to 1 previous error
|
||||
|
||||
For more information about this error, try `rustc --explain E0220`.
|
||||
|
@ -10,5 +10,5 @@ note: the lint level is defined here
|
||||
LL | #![deny(missing_docs)]
|
||||
| ^^^^^^^^^^^^
|
||||
|
||||
error: aborting due to previous error
|
||||
error: aborting due to 1 previous error
|
||||
|
||||
|
@ -15,5 +15,5 @@ LL | #![deny(warnings)]
|
||||
| ^^^^^^^^
|
||||
= note: `#[deny(invalid_doc_attributes)]` implied by `#[deny(warnings)]`
|
||||
|
||||
error: aborting due to previous error
|
||||
error: aborting due to 1 previous error
|
||||
|
||||
|
@ -13,5 +13,5 @@ note: the lint level is defined here
|
||||
LL | #![deny(unknown_lints)]
|
||||
| ^^^^^^^^^^^^^
|
||||
|
||||
error: aborting due to previous error
|
||||
error: aborting due to 1 previous error
|
||||
|
||||
|
@ -8,5 +8,5 @@ note: the lint level is defined here
|
||||
LL | #![deny(rustdoc::missing_crate_level_docs)]
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: aborting due to previous error
|
||||
error: aborting due to 1 previous error
|
||||
|
||||
|
@ -12,6 +12,6 @@ note: type alias defined here, with 1 lifetime parameter: `'a`
|
||||
LL | type Alias<'a, T> = <T as Trait<'a>>::Assoc;
|
||||
| ^^^^^ --
|
||||
|
||||
error: aborting due to previous error
|
||||
error: aborting due to 1 previous error
|
||||
|
||||
For more information about this error, try `rustc --explain E0107`.
|
||||
|
@ -4,6 +4,6 @@ error[E0282]: type annotations needed
|
||||
LL | impl<T> Allocator for DefaultAllocator {
|
||||
| ^^^^^^^^^^^^^^^^ cannot infer type for type parameter `T`
|
||||
|
||||
error: aborting due to previous error
|
||||
error: aborting due to 1 previous error
|
||||
|
||||
For more information about this error, try `rustc --explain E0282`.
|
||||
|
@ -4,5 +4,5 @@ error: the `#[proc_macro_derive]` attribute is only usable with crates of the `p
|
||||
LL | #[proc_macro_derive(DeriveA)]
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: aborting due to previous error
|
||||
error: aborting due to 1 previous error
|
||||
|
||||
|
@ -4,6 +4,6 @@ error[E0636]: the feature `rustdoc_internals` has already been declared
|
||||
LL | #![feature(rustdoc_internals)]
|
||||
| ^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: aborting due to previous error
|
||||
error: aborting due to 1 previous error
|
||||
|
||||
For more information about this error, try `rustc --explain E0636`.
|
||||
|
@ -5,6 +5,6 @@ LL | const S: A = B;
|
||||
| ^ expected `A`, found `B`
|
||||
-Ztrack-diagnostics: created at compiler/rustc_infer/src/infer/error_reporting/mod.rs:LL:CC
|
||||
|
||||
error: aborting due to previous error
|
||||
error: aborting due to 1 previous error
|
||||
|
||||
For more information about this error, try `rustc --explain E0308`.
|
||||
|
@ -4,5 +4,5 @@ error: `#[doc(fake_variadic)]` must be used on the first of a set of tuple or fn
|
||||
LL | #[doc(fake_variadic)]
|
||||
| ^^^^^^^^^^^^^
|
||||
|
||||
error: aborting due to previous error
|
||||
error: aborting due to 1 previous error
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user