Commit 6de28af
committed
Ignore invalid_reference_casting lint
I believe this is a false positive. rust-lang/rust#121074
error: casting references to a bigger memory layout than the backing allocation is undefined behavior, even if the reference is unused
--> src/arena.rs:81:30
|
81 | let arena = unsafe { &*(&**arena as *const dyn Send as *const Arena<T>) };
| ^^^^-------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| |
| backing allocation comes from here
|
= note: casting from `dyn Send` (0 bytes) to `Arena<T>` (56 bytes)
= note: `#[deny(invalid_reference_casting)]` on by default1 parent 7916860 commit 6de28af
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| 63 | + | |
63 | 64 | | |
64 | 65 | | |
65 | 66 | | |
| |||
0 commit comments