about summary refs log tree commit diff
path: root/src/libsyntax/ext/deriving/bounds.rs
diff options
context:
space:
mode:
authorMichael Layzell <michael@thelayzells.com>2015-08-29 14:50:05 -0400
committerMichael Layzell <michael@thelayzells.com>2015-08-29 14:50:05 -0400
commit38d450fad2d8f60041fe72462015fc5b09acccae (patch)
treece4c83c8237dc93ec4d8ab94e15ce544d3042c3e /src/libsyntax/ext/deriving/bounds.rs
parent3f002a4c6ed2bb694407842b5447dba34799b931 (diff)
downloadrust-38d450fad2d8f60041fe72462015fc5b09acccae.tar.gz
rust-38d450fad2d8f60041fe72462015fc5b09acccae.zip
Allow #[derive()] to generate unsafe trait impls
Diffstat (limited to 'src/libsyntax/ext/deriving/bounds.rs')
-rw-r--r--src/libsyntax/ext/deriving/bounds.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libsyntax/ext/deriving/bounds.rs b/src/libsyntax/ext/deriving/bounds.rs
index 71b6184390a..87a6d0805b5 100644
--- a/src/libsyntax/ext/deriving/bounds.rs
+++ b/src/libsyntax/ext/deriving/bounds.rs
@@ -40,6 +40,7 @@ pub fn expand_deriving_copy(cx: &mut ExtCtxt,
         path: path,
         additional_bounds: Vec::new(),
         generics: LifetimeBounds::empty(),
+        is_unsafe: false,
         methods: Vec::new(),
         associated_types: Vec::new(),
     };