Skip to content

Commit

Permalink
Use Rust-1.78 #[diagnostic::on_unimplemented] to clarify `push_next…
Browse files Browse the repository at this point in the history
…` trait

When a user passes an invalid type into `push_next()`, [since Rust 1.78]
we can now customize the diagnostics error to more clearly decsribe what
and why they are not allowed to pass a certain type into this structure
instead of having to refer to the trait definition (which contains no
docs either).

[since Rust 1.78]: https://blog.rust-lang.org/2024/05/02/Rust-1.78.0.html#diagnostic-attributes
  • Loading branch information
MarijnS95 committed May 3, 2024
1 parent 660553c commit dced885
Show file tree
Hide file tree
Showing 2 changed files with 551 additions and 1 deletion.
Loading

0 comments on commit dced885

Please sign in to comment.