about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorHuon Wilson <dbau.pp+github@gmail.com>2015-01-07 10:07:56 +1100
committerHuon Wilson <dbau.pp+github@gmail.com>2015-01-08 10:07:07 +1100
commit3c1ca175d131011d87a9db0ffbb833b1d884f900 (patch)
tree5ca5804f853f68a8614b5d737fc02f777101084a /src/rustllvm/RustWrapper.cpp
parentc7dd3c4d69aee1c4ad8cc220c194b176bba2ab62 (diff)
downloadrust-3c1ca175d131011d87a9db0ffbb833b1d884f900.tar.gz
rust-3c1ca175d131011d87a9db0ffbb833b1d884f900.zip
Require that types cannot implement both Drop and Copy.
Opt-in built-in traits allowed one to explicitly implement both `Drop`
and `Copy` for a type. This can theoretically make some sense, but the
current implementation means it is codegened totally incorrectly which
can lead to memory unsafety, so this feature is disabled for now.

Fixes #20126.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions