diff options
| -rw-r--r-- | src/librustc/diagnostics.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/librustc/diagnostics.rs b/src/librustc/diagnostics.rs index 7cb2de78e2c..361b8c53108 100644 --- a/src/librustc/diagnostics.rs +++ b/src/librustc/diagnostics.rs @@ -858,6 +858,9 @@ It is also possible to manually transmute: ``` ptr::read(&v as *const _ as *const SomeType) // `v` transmuted to `SomeType` ``` + +Note that this does not move `v` (unlike `transmute`), and may need a +call to `mem::forget(v)` in case you want to avoid destructors being called. "##, E0152: r##" |
