]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_builtin_macros/src/deriving/decodable.rs
Allow more deriving on packed structs.
[rust.git] / compiler / rustc_builtin_macros / src / deriving / decodable.rs
index 5f9519dad1b25e91213e145a4ec768cc376f5d01..c783e46eda9416ba23bb00a77d536e61d97891af 100644 (file)
@@ -25,6 +25,7 @@ pub fn expand_deriving_rustc_decodable(
         span,
         path: Path::new_(vec![krate, sym::Decodable], vec![], PathKind::Global),
         skip_path_as_bound: false,
+        needs_copy_as_bound_if_packed: true,
         additional_bounds: Vec::new(),
         supports_unions: false,
         methods: vec![MethodDef {