mirror of
https://github.com/rust-lang/rust.git
synced 2026-06-01 22:18:23 +03:00
8767e97d7e
The [UnsafeCell documentation says it is undefined behavior](http://doc.rust-lang.org/nightly/std/cell/struct.UnsafeCell.html), so people shouldn't do it. This happened to catch one case in libstd that was doing this, and I switched that to use an UnsafeCell internally. Closes #13146