]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_builtin_macros/src/deriving/cmp/ord.rs
Allow more deriving on packed structs.
[rust.git] / compiler / rustc_builtin_macros / src / deriving / cmp / ord.rs
index a926fca4e65f8ac21fe7eabd06a1c260d5c0b474..671f32550d2bbee957dd2775fa0976c1a8cefee7 100644 (file)
@@ -20,6 +20,7 @@ pub fn expand_deriving_ord(
         span,
         path: path_std!(cmp::Ord),
         skip_path_as_bound: false,
+        needs_copy_as_bound_if_packed: true,
         additional_bounds: Vec::new(),
         supports_unions: false,
         methods: vec![MethodDef {