You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rust 1.78 added a new diagnostic::on_unimplemented attribute which can be used to add additional context in the event a trait isn't impl'd in the form of note messages that appear in the diagnostics:
These seem very helpful for improving debugging of missing trait impls which are expected to be received via a blanket impl, i.e. the note can include the name of the other trait the user is expected to implement.
It will be awhile before we can consider Rust 1.78, however I thought I'd go ahead and open this as a tracking / planning issue for using this feature.
The text was updated successfully, but these errors were encountered:
Unfortunately, no, it will result in "error[E0658]: #[diagnostic] attribute name space is experimental" compilation error or "error[E0433]: failed to resolve: use of undeclared type or module diagnostic" on older Rust versions.
Rust 1.78 added a new
diagnostic::on_unimplemented
attribute which can be used to add additional context in the event a trait isn't impl'd in the form ofnote
messages that appear in the diagnostics:https://rust-lang.github.io/rfcs/3368-diagnostic-attribute-namespace.html#guide-level-explanation
These seem very helpful for improving debugging of missing trait impls which are expected to be received via a blanket impl, i.e. the
note
can include the name of the other trait the user is expected to implement.It will be awhile before we can consider Rust 1.78, however I thought I'd go ahead and open this as a tracking / planning issue for using this feature.
The text was updated successfully, but these errors were encountered: