about summary refs log tree commit diff
path: root/compiler/rustc_lint/src/dangling.rs
AgeCommit message (Collapse)AuthorLines
2025-07-31Add lint against dangling pointers form local variablesUrgau-8/+142
2025-07-31remove rustc_attr_data_structuresJana Dönszelmann-2/+2
2025-06-16Port `#[rustc_as_ptr]` to the new attribute systemPavel Grigorenko-1/+2
2025-03-06Implement .use keyword as an alias of cloneSantiago Pastorino-1/+4
2025-01-27Use identifiers in diagnostics more oftenMichael Goulet-1/+1
2024-12-18Re-export more `rustc_span::symbol` things from `rustc_span`.Nicholas Nethercote-2/+1
`rustc_span::symbol` defines some things that are re-exported from `rustc_span`, such as `Symbol` and `sym`. But it doesn't re-export some closely related things such as `Ident` and `kw`. So you can do `use rustc_span::{Symbol, sym}` but you have to do `use rustc_span::symbol::{Ident, kw}`, which is inconsistent for no good reason. This commit re-exports `Ident`, `kw`, and `MacroRulesNormalizedIdent`, and changes many `rustc_span::symbol::` qualifiers in `compiler/` to `rustc_span::`. This is a 200+ net line of code reduction, mostly because many files with two `use rustc_span` items can be reduced to one.
2024-12-12Add unwrap_unsafe_binder and wrap_unsafe_binder macro operatorsMichael Goulet-0/+2
2024-11-27Avoid even more decoding if not absolutely necessaryUrgau-2/+2
2024-11-26Avoid decoding from metadata if not necessaryUrgau-1/+1
2024-11-19Correct comments concerning updated dangling pointer lintgavincrawford-8/+5
2024-11-11Update dangling pointer testsgavincrawford-3/+4
2024-11-11Check for #[rustc_as_ptr] attribute instead of searching for function namesgavincrawford-4/+5
Co-authored-by: Urgau <3616612+Urgau@users.noreply.github.com>
2024-10-28New lint: `dangling_pointers_from_temporaries`Pavel Grigorenko-0/+223