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

Commit 4d343a5

Browse files
Useful derives on mir::LocalKind
1 parent 4d52dc4 commit 4d343a5

File tree

1 file changed

+1
-1
lines changed
  • compiler/rustc_middle/src/mir

1 file changed

+1
-1
lines changed

compiler/rustc_middle/src/mir/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -670,7 +670,7 @@ impl Atom for Local {
670670
}
671671

672672
/// Classifies locals into categories. See `Body::local_kind`.
673-
#[derive(PartialEq, Eq, Debug, HashStable)]
673+
#[derive(Clone, Copy, PartialEq, Eq, Debug, HashStable)]
674674
pub enum LocalKind {
675675
/// User-declared variable binding.
676676
Var,

0 commit comments

Comments
 (0)