about summary refs log tree commit diff
path: root/compiler/rustc_lint/src/autorefs.rs
AgeCommit message (Collapse)AuthorLines
2025-07-03setup CI and tidy to use typos for spellchecking and fix few typosklensy-1/+1
2025-05-27Make the `dangerous_implicit_autorefs` lint deny-by-defaultUrgau-2/+2
2025-05-14Use more subdiagnostics and reword the overloaded deref noteUrgau-9/+20
2025-05-14Improve `dangerous_implicit_aurorefs` diagnostic outputUrgau-11/+16
2025-05-07fix typo in autorefs lint doc exampleJoseph Perez-7/+7
The documentation is talking about other way using only raw pointers, but the example was use `std::slice::from_raw_parts_mut` which also create a reference. `std::ptr::slice_from_raw_parts_mut` should be used instead, and it also highlights the benefit of raw pointer manipulation compared to dereference, as the function doesn't need to be unsafe anymore. Moreover, [`unsafe_op_in_unsafe_fn`](https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html) warning has been enabled since Edition 2024, so I've updated the examples to use unsafe blocks.
2025-04-29Delay checking of `#[rustc_no_implicit_autorefs]` for reasonUrgau-4/+11
2025-04-20Implement lint against dangerous implicit autorefsUrgau-0/+153