Skip to content

Commit

Permalink
Rollup merge of rust-lang#27988 - nagisa:diags-e0139, r=brson
Browse files Browse the repository at this point in the history
  • Loading branch information
steveklabnik committed Aug 25, 2015
2 parents d9de182 + 067ad99 commit c4847a1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/librustc/diagnostics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -836,9 +836,7 @@ is a size mismatch in one of the impls.
It is also possible to manually transmute:
```
let result: SomeType = mem::uninitialized();
unsafe { copy_nonoverlapping(&v, &result) };
result // `v` transmuted to type `SomeType`
ptr::read(&v as *const _ as *const SomeType) // `v` transmuted to `SomeType`
```
"##,

Expand Down

0 comments on commit c4847a1

Please sign in to comment.