Skip to content

Commit 413d41d

Browse files
Regenerate compiler error messages
1 parent e0270bf commit 413d41d

File tree

1 file changed

+10
-12
lines changed

1 file changed

+10
-12
lines changed

tests/tests/macro/compile_error.stderr

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -49,19 +49,17 @@ error: specta: invalid formatted attribute
4949
error[E0432]: unresolved import `specta::specta`
5050
--> tests/macro/compile_error.rs:3:14
5151
|
52-
3 | use specta::{specta, Type};
53-
| ^^^^^^ no `specta` in the root
54-
|
52+
3 | use specta::{specta, Type};
53+
| ^^^^^^ no `specta` in the root
54+
|
5555
note: found an item that was configured out
56-
--> $WORKSPACE/specta/src/lib.rs
57-
|
58-
| pub use specta_macros::specta;
59-
| ^^^^^^
60-
note: the item is gated here
61-
--> $WORKSPACE/specta/src/lib.rs
62-
|
63-
| #[cfg(all(feature = "derive", feature = "function"))]
64-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
56+
--> $WORKSPACE/specta/src/lib.rs
57+
|
58+
| #[cfg(all(feature = "derive", feature = "function"))]
59+
| -------------------- the item is gated behind the `function` feature
60+
| #[cfg_attr(docsrs, doc(cfg(all(feature = "derive", feature = "function"))))]
61+
| pub use specta_macros::specta;
62+
| ^^^^^^
6563

6664
error[E0601]: `main` function not found in crate `$CRATE`
6765
--> tests/macro/compile_error.rs:110:20

0 commit comments

Comments
 (0)