multi_mut icon indicating copy to clipboard operation
multi_mut copied to clipboard

Adapt crate to Stacked Borrows?

Open avl opened this issue 5 years ago • 1 comments

Hi,

In your introduction you mention that it is impossible to determine if the unsafe things done in this crate are UB or not. Since the release of Stacked Borrows, there is now a formal model against which things could be verified (and also miri, to do automated checking).

Are you still maintaining this crate? If so, would you be interested in working toward making things safe according to these new rules? Would you be interested in accepting pull requests?

avl avatar Feb 06 '20 20:02 avl

Yeah, this is unsound stacked borrows or no. It's invalid under llvm's noalias rules, which is probably why it hasn't triggered errors in the past (these were turned off for &mut until recently).

thomcc avatar May 31 '21 07:05 thomcc