Skip to content

Commit f74d7f0

Browse files
committed
Use Rust-1.78 #[diagnostic::on_unimplemented] to clarify push_next 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
1 parent 660553c commit f74d7f0

File tree

2 files changed

+551
-1
lines changed

2 files changed

+551
-1
lines changed

0 commit comments

Comments
 (0)