Ben Kimock
|
2bb25d3f4a
|
Handle Deref expressions in invalid_reference_casting
|
2024-05-10 12:33:07 -04:00 |
|
Ben Kimock
|
0ca1a94b2b
|
Handle field projections like slice indexing in invalid_reference_casting
|
2024-05-08 17:21:06 -04:00 |
|
Urgau
|
cd6a0c8c77
|
Fix insufficient logic when searching for the underlying allocation
in the `invalid_reference_casting` lint, when trying to lint on
bigger memory layout casts.
|
2024-05-05 19:14:20 +02:00 |
|
Nicholas Nethercote
|
e6b3e20243
|
Remove extern crate rustc_session from rustc_lint .
|
2024-04-29 13:57:41 +10:00 |
|
Michael Goulet
|
7be0dbe772
|
Make RawPtr take Ty and Mutbl separately
|
2024-03-22 11:13:29 -04:00 |
|
Michael Goulet
|
ff0c31e6b9
|
Programmatically convert some of the pat ctors
|
2024-03-22 11:13:29 -04:00 |
|
Urgau
|
ddec8c5edc
|
Ignore unsized types when trying to determine the size of a type
|
2024-02-14 19:23:20 +01:00 |
|
Urgau
|
6a8f50e907
|
Introduce small cache to avoid recomputing the same value twice
|
2024-02-12 19:40:17 +01:00 |
|
Urgau
|
915200fbe0
|
Lint on reference casting to bigger underlying allocation
|
2024-02-12 19:40:17 +01:00 |
|
Nicholas Nethercote
|
1881bfaa2b
|
Rename LintContext::emit_spanned_lint as LintContext::emit_span_lint .
|
2024-01-23 08:08:25 +11:00 |
|
Urgau
|
4839cca9aa
|
Recurse into let bindings if possible in ref casting lint
|
2023-12-14 17:27:14 +01:00 |
|
Urgau
|
97a26138e9
|
Refactor and rename some functions in ref casting lint
|
2023-12-14 17:27:04 +01:00 |
|
Urgau
|
07e6224eff
|
Extract casting detection logic in it's own function
|
2023-12-14 17:15:28 +01:00 |
|
cui fliter
|
a44a4edc0e
|
Fix some typos
Signed-off-by: cui fliter <imcusg@gmail.com>
|
2023-11-14 23:06:50 +08:00 |
|
Michael Goulet
|
b2d2184ede
|
Format all the let chains in compiler
|
2023-10-13 08:59:36 +00:00 |
|
Urgau
|
e46236cceb
|
Clarify invalid_reference_casting lint around interior mutable types
|
2023-10-04 22:06:16 +02:00 |
|
Urgau
|
bd360472b1
|
Simplify casting logic of the invalid_reference_casting lint
|
2023-09-27 18:50:26 +02:00 |
|
Urgau
|
e577dcdd4d
|
Prefer expr_or_init over manual init detection
|
2023-09-27 15:09:30 +02:00 |
|
Urgau
|
89800a27fc
|
Lint on invalid UnsafeCell::raw_get with invalid_reference_casting lint
|
2023-08-24 15:00:21 +02:00 |
|
Urgau
|
7ee77b5d1b
|
Add support for ptr::write for the invalid_reference_casting lint
|
2023-08-22 15:47:29 +02:00 |
|
Urgau
|
91b05f8e09
|
Improve invalid_reference_casting lint
|
2023-08-15 10:14:45 +02:00 |
|
Urgau
|
b517dd5bc9
|
Also consider transmute with the invalid_reference_casting lint
|
2023-08-12 13:05:44 +02:00 |
|
Urgau
|
20a6b57106
|
Improve diagnostics of the invalid_reference_casting lint
|
2023-07-29 12:20:59 +02:00 |
|
Urgau
|
50a46710a9
|
Avoid linting on expression that are only UB with SB/TB
|
2023-07-29 12:20:59 +02:00 |
|
Urgau
|
f3dafe91ff
|
Add support for deferred casting for the invalid_reference_casting lint
|
2023-07-29 12:20:59 +02:00 |
|
Urgau
|
345d6b816b
|
Revert "Temporarily switch invalid_reference_casting lint to allow-by-default"
This reverts commit f25ad54a4d .
|
2023-07-29 12:20:59 +02:00 |
|
Urgau
|
f25ad54a4d
|
Temporarily switch invalid_reference_casting lint to allow-by-default
|
2023-07-13 23:01:24 +02:00 |
|
Urgau
|
3dbbf23e29
|
Rename cast_ref_to_mut lint to invalid_reference_casting
|
2023-07-13 23:01:24 +02:00 |
|