mirror of
https://github.com/rust-lang/rust.git
synced 2025-06-05 11:48:30 +00:00
![]() Currently, `emit_diagnostic` takes `&mut self`. This commit changes it so `emit_diagnostic` takes `self` and the new `emit_diagnostic_without_consuming` function takes `&mut self`. I find the distinction useful. The former case is much more common, and avoids a bunch of `mut` and `&mut` occurrences. We can also restrict the latter with `pub(crate)` which is nice. |
||
---|---|---|
.. | ||
rpath | ||
archive.rs | ||
command.rs | ||
link.rs | ||
linker.rs | ||
lto.rs | ||
metadata.rs | ||
mod.rs | ||
rpath.rs | ||
symbol_export.rs | ||
write.rs |