]> git.lizzy.rs Git - rust.git/commitdiff
Auto merge of #24392 - seanmonstar:lint-transmute-mut, r=alexcrichton
authorbors <bors@rust-lang.org>
Wed, 6 May 2015 22:27:58 +0000 (22:27 +0000)
committerbors <bors@rust-lang.org>
Wed, 6 May 2015 22:27:58 +0000 (22:27 +0000)
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


Trivial merge