Skip to content

Commit

Permalink
update expectations
Browse files Browse the repository at this point in the history
  • Loading branch information
Manishearth committed Dec 20, 2024
1 parent 73ea4ff commit c37be44
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 18 deletions.
12 changes: 6 additions & 6 deletions tests/std/enum_prefix_missing.stderr
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
error: proc-macro derive panicked
--> $DIR/enum_prefix_missing.rs:22:10
--> tests/std/enum_prefix_missing.rs:26:10
|
22 | #[derive(Display)]
26 | #[derive(Display)]
| ^^^^^^^
|
= help: message: Missing doc comment on enum with #[prefix_enum_doc_attributes]. Please remove the attribute or add a doc comment to the enum itself.

error[E0277]: `TestType` doesn't implement `std::fmt::Display`
--> $DIR/enum_prefix_missing.rs:32:37
--> tests/std/enum_prefix_missing.rs:36:37
|
32 | static_assertions::assert_impl_all!(TestType: core::fmt::Display);
36 | static_assertions::assert_impl_all!(TestType: core::fmt::Display);
| ^^^^^^^^ `TestType` cannot be formatted with the default formatter
|
= help: the trait `std::fmt::Display` is not implemented for `TestType`
= note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead
note: required by a bound in `assert_impl_all`
--> $DIR/enum_prefix_missing.rs:32:1
--> tests/std/enum_prefix_missing.rs:36:1
|
32 | static_assertions::assert_impl_all!(TestType: core::fmt::Display);
36 | static_assertions::assert_impl_all!(TestType: core::fmt::Display);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `assert_impl_all`
= note: this error originates in the macro `static_assertions::assert_impl_all` (in Nightly builds, run with -Z macro-backtrace for more info)
12 changes: 6 additions & 6 deletions tests/std/multi_line.stderr
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
error: proc-macro derive panicked
--> $DIR/multi_line.rs:23:10
--> tests/std/multi_line.rs:28:10
|
23 | #[derive(Display)]
28 | #[derive(Display)]
| ^^^^^^^
|
= help: message: Multi-line comments are disabled by default by displaydoc. Please consider using block doc comments (/** */) or adding the #[ignore_extra_doc_attributes] attribute to your type next to the derive.

error[E0277]: `TestType` doesn't implement `std::fmt::Display`
--> $DIR/multi_line.rs:34:37
--> tests/std/multi_line.rs:39:37
|
34 | static_assertions::assert_impl_all!(TestType: core::fmt::Display);
39 | static_assertions::assert_impl_all!(TestType: core::fmt::Display);
| ^^^^^^^^ `TestType` cannot be formatted with the default formatter
|
= help: the trait `std::fmt::Display` is not implemented for `TestType`
= note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead
note: required by a bound in `assert_impl_all`
--> $DIR/multi_line.rs:34:1
--> tests/std/multi_line.rs:39:1
|
34 | static_assertions::assert_impl_all!(TestType: core::fmt::Display);
39 | static_assertions::assert_impl_all!(TestType: core::fmt::Display);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `assert_impl_all`
= note: this error originates in the macro `static_assertions::assert_impl_all` (in Nightly builds, run with -Z macro-backtrace for more info)
12 changes: 6 additions & 6 deletions tests/std/without.stderr
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
warning: unused import: `displaydoc::Display`
--> $DIR/without.rs:20:5
--> tests/std/without.rs:24:5
|
20 | use displaydoc::Display;
24 | use displaydoc::Display;
| ^^^^^^^^^^^^^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default

error[E0277]: `FakeType` doesn't implement `std::fmt::Display`
--> $DIR/without.rs:25:37
--> tests/std/without.rs:29:37
|
25 | static_assertions::assert_impl_all!(FakeType: core::fmt::Display);
29 | static_assertions::assert_impl_all!(FakeType: core::fmt::Display);
| ^^^^^^^^ `FakeType` cannot be formatted with the default formatter
|
= help: the trait `std::fmt::Display` is not implemented for `FakeType`
= note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead
note: required by a bound in `assert_impl_all`
--> $DIR/without.rs:25:1
--> tests/std/without.rs:29:1
|
25 | static_assertions::assert_impl_all!(FakeType: core::fmt::Display);
29 | static_assertions::assert_impl_all!(FakeType: core::fmt::Display);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `assert_impl_all`
= note: this error originates in the macro `static_assertions::assert_impl_all` (in Nightly builds, run with -Z macro-backtrace for more info)

0 comments on commit c37be44

Please sign in to comment.