Skip to content

Commit

Permalink
add Copy when possible.
Browse files Browse the repository at this point in the history
  • Loading branch information
Lokathor committed Dec 30, 2024
1 parent a84a36f commit 11a4218
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/mir/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,25 +58,25 @@ pub struct MirLoop {
pub canonical_end: StrID,
}

#[derive(Debug, Clone)]
#[derive(Debug, Clone, Copy)]
pub struct MirJump {
pub condition: Condition,
pub target: StrID,
}

#[derive(Debug, Clone)]
#[derive(Debug, Clone, Copy)]
pub struct MirCall {
pub condition: Condition,
pub target: StrID,
pub abi: Abi,
}

#[derive(Debug, Clone)]
#[derive(Debug, Clone, Copy)]
pub struct Abi {
// todo: an ABI system
}

#[derive(Debug, Clone)]
#[derive(Debug, Clone, Copy)]
pub struct MirReturn {
pub condition: Condition,
}
Expand Down

0 comments on commit 11a4218

Please sign in to comment.