Safe Transmute: Check mutability before creating dst -> src obligation
- Only create dst -> src obligation if Dst is mutable - Add some long comments to explain parts of the transmutability code that were unclear to me when reading - Update/add tests
This commit is contained in:
parent
db3275c962
commit
6266358237
18 changed files with 129 additions and 64 deletions
|
@ -1,4 +1,4 @@
|
|||
#![feature(alloc_layout_extra, decl_macro, iterator_try_reduce, never_type, let_chains)]
|
||||
#![feature(alloc_layout_extra, decl_macro, iterator_try_reduce, never_type)]
|
||||
#![allow(dead_code, unused_variables)]
|
||||
#![deny(rustc::untranslatable_diagnostic)]
|
||||
#![deny(rustc::diagnostic_outside_of_impl)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue