y21
ae5326b967
visit struct fields in uninit fallback check
2024-09-07 17:18:55 +02:00
Philipp Krones
7a73a101e9
Merge remote-tracking branch 'upstream/master' into rustup
2024-08-08 18:54:43 +02:00
y21
4c6a3f4b6e
pass the right ParamEnv
to might_permit_raw_init_strict
2024-08-06 01:53:50 +02:00
Philipp Krones
cc61aeea54
Merge commit '080b587854a73f2a8cbaecff1884860a78e2ff37' into clippyup
2023-08-24 21:32:12 +02:00
Guillaume Gomez
a05d3a4137
Automatic generation of error annotations for ui tests
2023-08-22 17:18:11 +02:00
Philipp Krones
6b95029f17
Merge commit '83e42a2337dadac915c956d125f1d69132f36425' into clippyup
2023-04-11 15:31:08 +02:00
Nilstrieb
51b4d2a1e8
In uninit checking, add fallback for polymorphic types
2023-03-29 19:46:44 +02:00
Philipp Krones
8df896c076
Merge commit 'd5e2a7aca55ed49fc943b7a07a8eba05ab5a0079' into clippyup
2023-03-24 14:26:19 +01:00
Nilstrieb
84b6049eb9
Use uninit checking from rustc
...
rustc has proper heuristics for actually checking whether a type allows
being left uninitialized (by asking CTFE). We can now use this for our
helper instead of rolling our own bad version with false positives.
2023-03-21 18:28:06 +01:00
Philipp Krones
d75b25faab
Merge commit 'ac0e10aa68325235069a842f47499852b2dee79e' into clippyup
2022-10-06 09:44:38 +02:00
Alessandro Decina
49319b4206
uninit_vec: special case set_len(0)
...
set_len(0) does not create uninitialized elements. Fixes a false positive with
the following pattern:
fn copy_slice_into_vec(dst: &mut Vec<u8>, src: &[u8]) {
dst.reserve(src.len().saturating_sub(dst.len()));
unsafe {
dst.set_len(0);
std::ptr::copy_nonoverlapping(src.as_ptr(), dst.as_mut_ptr(), src.len());
dst.set_len(src.len());
}
}
2022-09-23 09:35:47 +01:00
flip1995
7631fc5d82
Merge commit '91496c2ac6abf6454c413bb23e8becf6b6dc20ea' into clippyup
2021-10-21 13:11:36 +02:00
Yechan Bae
de0d2b1500
Add testcases
2021-10-09 05:47:07 -04:00
Yechan Bae
b1aa3064b6
Address PR comments
2021-10-09 05:47:06 -04:00
Yechan Bae
fdc06d9b2b
Improve error messages
2021-10-09 05:38:19 -04:00
Yechan Bae
759200b699
Handle PR feedbacks first round
2021-10-09 05:38:19 -04:00
Yechan Bae
452181c69d
Implement uninit_vec lint
2021-10-09 05:38:19 -04:00