mirror of
https://github.com/rust-lang/rust.git
synced 2025-06-05 03:38:29 +00:00
![]() Don't pass lint back out of lint decorator Change the decorator function in the signature of the `emit_lint`/`span_lint`/etc family of methods from `impl for<'a, 'b> FnOnce(&'b mut DiagnosticBuilder<'a, ()>) -> &'b mut DiagnosticBuilder<'a, ()>` to `impl for<'a, 'b> FnOnce(&'b mut DiagnosticBuilder<'a, ()>)`. I consider it easier to read this way, especially when there's control flow involved. r? nnethercote though feel free to reassign |
||
---|---|---|
.. | ||
src | ||
Cargo.toml | ||
messages.ftl |