Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 6807bb7

Browse files
committed
Make mir::Constant Copy
1 parent 413a129 commit 6807bb7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc_middle/mir/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2393,7 +2393,7 @@ impl<'tcx> Debug for Rvalue<'tcx> {
23932393
/// this does not necessarily mean that they are "==" in Rust -- in
23942394
/// particular one must be wary of `NaN`!
23952395
2396-
#[derive(Clone, PartialEq, RustcEncodable, RustcDecodable, HashStable)]
2396+
#[derive(Clone, Copy, PartialEq, RustcEncodable, RustcDecodable, HashStable)]
23972397
pub struct Constant<'tcx> {
23982398
pub span: Span,
23992399

0 commit comments

Comments
 (0)