about summary refs log tree commit diff
path: root/compiler/rustc_lint/src/reference_casting.rs
AgeCommit message (Expand)AuthorLines
2025-07-03setup CI and tidy to use typos for spellchecking and fix few typosklensy-1/+1
2025-03-30Expose `peel_casts` method as an util method inside `rustc_lint`Urgau-43/+1
2024-11-19move `fn is_item_raw` to `TypingEnv`lcnr-1/+1
2024-08-21Use bool in favor of Option<()> for diagnosticsMichael Goulet-2/+0
2024-07-29Reformat `use` declarations.Nicholas Nethercote-3/+4
2024-05-10Handle Deref expressions in invalid_reference_castingBen Kimock-2/+4
2024-05-08Handle field projections like slice indexing in invalid_reference_castingBen Kimock-1/+2
2024-05-05Fix insufficient logic when searching for the underlying allocationUrgau-0/+7
2024-04-29Remove `extern crate rustc_session` from `rustc_lint`.Nicholas Nethercote-0/+1
2024-03-22Make RawPtr take Ty and Mutbl separatelyMichael Goulet-2/+2
2024-03-22Programmatically convert some of the pat ctorsMichael Goulet-1/+1
2024-02-14Ignore unsized types when trying to determine the size of a typeUrgau-0/+7
2024-02-12Introduce small cache to avoid recomputing the same value twiceUrgau-4/+13
2024-02-12Lint on reference casting to bigger underlying allocationUrgau-7/+66
2024-01-23Rename `LintContext::emit_spanned_lint` as `LintContext::emit_span_lint`.Nicholas Nethercote-1/+1
2023-12-14Recurse into let bindings if possible in ref casting lintUrgau-1/+6
2023-12-14Refactor and rename some functions in ref casting lintUrgau-40/+54
2023-12-14Extract casting detection logic in it's own functionUrgau-19/+24
2023-11-14Fix some typoscui fliter-1/+1
2023-10-13Format all the let chains in compilerMichael Goulet-1/+4
2023-10-04Clarify `invalid_reference_casting` lint around interior mutable typesUrgau-11/+15
2023-09-27Simplify casting logic of the invalid_reference_casting lintUrgau-80/+32
2023-09-27Prefer expr_or_init over manual init detectionUrgau-28/+7
2023-08-24Lint on invalid UnsafeCell::raw_get with invalid_reference_casting lintUrgau-5/+39
2023-08-22Add support for ptr::write for the invalid_reference_casting lintUrgau-17/+47
2023-08-15Improve `invalid_reference_casting` lintUrgau-18/+31
2023-08-12Also consider `transmute` with the `invalid_reference_casting` lintUrgau-24/+48
2023-07-29Improve diagnostics of the invalid_reference_casting lintUrgau-4/+16
2023-07-29Avoid linting on expression that are only UB with SB/TBUrgau-2/+15
2023-07-29Add support for deferred casting for the invalid_reference_casting lintUrgau-29/+62
2023-07-29Revert "Temporarily switch invalid_reference_casting lint to allow-by-default"Urgau-2/+1
2023-07-13Temporarily switch invalid_reference_casting lint to allow-by-defaultUrgau-1/+2
2023-07-13Rename cast_ref_to_mut lint to invalid_reference_castingUrgau-0/+74