This adds errors for specifying source(false) on fields not named "source", and backtrace(false) on fields not named "backtrace". These almost surely represent the user being confused about their purpose, and these error messages can help explain.
Testing done:
New compile-fail tests were added to show the errors in action.
Note: the attribute-misuse.rs compile-fail test was also updated because... it was using source(false) in this incorrect manner :)
Fixes #140
This adds errors for specifying
source(false)
on fields not named "source", andbacktrace(false)
on fields not named "backtrace". These almost surely represent the user being confused about their purpose, and these error messages can help explain.Testing done:
New compile-fail tests were added to show the errors in action.
Note: the
attribute-misuse.rs
compile-fail test was also updated because... it was usingsource(false)
in this incorrect manner :)