]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_builtin_macros/src/deriving/cmp/partial_ord.rs
Auto merge of #107443 - cjgillot:generator-less-query, r=compiler-errors
[rust.git] / compiler / rustc_builtin_macros / src / deriving / cmp / partial_ord.rs
index 2fc30d8e05f2c6748c4e03ed0a07d056105e3439..bcc90442eb72bb91aef8f06a7cd2830155d881ff 100644 (file)
@@ -59,6 +59,7 @@ pub fn expand_deriving_partial_ord(
         span,
         path: path_std!(cmp::PartialOrd),
         skip_path_as_bound: false,
+        needs_copy_as_bound_if_packed: true,
         additional_bounds: vec![],
         supports_unions: false,
         methods: vec![partial_cmp_def],