]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_builtin_macros/src/deriving/bounds.rs
Show a note where a macro failed to match
[rust.git] / compiler / rustc_builtin_macros / src / deriving / bounds.rs
index 7bd344467d03213130aa32ae46fad4f47875d853..345db700298a81813d544b00197b4a89b1daba3f 100644 (file)
@@ -12,6 +12,7 @@ pub fn expand_deriving_copy(
     mitem: &MetaItem,
     item: &Annotatable,
     push: &mut dyn FnMut(Annotatable),
+    is_const: bool,
 ) {
     let trait_def = TraitDef {
         span,
@@ -22,6 +23,7 @@ pub fn expand_deriving_copy(
         supports_unions: true,
         methods: Vec::new(),
         associated_types: Vec::new(),
+        is_const,
     };
 
     trait_def.expand(cx, mitem, item, push);