Enable validation everywhere #551
Labels
A-aliasing
Area: This affects the aliasing model (Stacked/Tree Borrows)
C-bug
Category: This is a bug.
C-project
Category: a larger project is being tracked here, usually with checkmarks for individual steps
Validation is currently disabled in a few places, they should all get fixed:
invalid, now that we require even raw ptr derefs not to dangletests/run-pass/ref-invalid-ptr.rs
because we need something like RFC for an operator to take a raw reference rfcs#2582direct_mut_to_const_raw
intests/run-pass/stacked-borrows.rs
waits for a fix for Coercing &mut to *const should not create a shared reference rust#56604tests/run-pass/btreemap.rs
test, because of BTreeSet causes UB by having (partially) dangling shared reference rust#54957cargo miri test
test (in Fix cargo miri test #550), because of BTreeSet causes UB by having (partially) dangling shared reference rust#54957run-pass-fullmir/vecdeque.rs
waits for VecDeque: fix for stacked borrows rust#56161 to landtests/run-pass-fullmir/async-fn.rs
waits for fix futures creating aliasing mutable and shared ref rust#56319 to landWe also have a whitelist disabling it for a few functions:
Mutex
, can be fixed once use MaybeUninit instead of mem::uninitialized for Windows Mutex rust#56275 landsThe text was updated successfully, but these errors were encountered: