]> git.lizzy.rs Git - rust.git/commitdiff
auto merge of #19703 : nikomatsakis/rust/unsafe-trait, r=acrichto
authorbors <bors@rust-lang.org>
Sun, 14 Dec 2014 19:07:29 +0000 (19:07 +0000)
committerbors <bors@rust-lang.org>
Sun, 14 Dec 2014 19:07:29 +0000 (19:07 +0000)
This PR allows declaring traits and impls as `unsafe`. An `unsafe` trait requires an `unsafe` impl. An `unsafe` impl does not permit unsafe code within its interior (unless that code is contained within an unsafe block or unsafe fn, as normal). The commits are standalone.

r? @alexcrichton
cc #13231


Trivial merge