Skip to content

Commit

Permalink
Add more helpful error-message
Browse files Browse the repository at this point in the history
  • Loading branch information
avl committed Aug 19, 2024
1 parent 608e8f5 commit dea7025
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions savefile/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2450,6 +2450,7 @@ pub const MAX_CHILDREN: usize = 10000;
#[cfg_attr(feature = "rust1_78", diagnostic::on_unimplemented(
message = "`{Self}` cannot be introspected by Savefile, since it doesn't implement trait `savefile::Introspect`",
label = "This cannot be introspected",
note = "If you get this message after having used the #[savefile_ignore] attribute on a field, consider adding #[savefile_introspect_ignore]."
note = "You can implement it by adding `#[derive(Savefile)]` or `#[derive(SavefileIntrospectOnly)]` before the declaration of `{Self}`",
note = "Or you can manually implement the `savefile::Introspect` trait."
))]
Expand Down

0 comments on commit dea7025

Please sign in to comment.