Rollup merge of #21602 - japaric:derive-copy, r=alexcrichton
This commit is contained in:
commit
51ff9e82ec
99 changed files with 136 additions and 289 deletions
|
|
@ -13,7 +13,7 @@ use std::fmt;
|
|||
use std::str::FromStr;
|
||||
|
||||
#[cfg(stage0)] // NOTE: remove impl after snapshot
|
||||
#[derive(Clone, PartialEq, Show)]
|
||||
#[derive(Clone, Copy, PartialEq, Show)]
|
||||
pub enum Mode {
|
||||
CompileFail,
|
||||
RunFail,
|
||||
|
|
@ -26,7 +26,7 @@ pub enum Mode {
|
|||
}
|
||||
|
||||
#[cfg(not(stage0))] // NOTE: remove cfg after snapshot
|
||||
#[derive(Clone, PartialEq, Debug)]
|
||||
#[derive(Clone, Copy, PartialEq, Debug)]
|
||||
pub enum Mode {
|
||||
CompileFail,
|
||||
RunFail,
|
||||
|
|
@ -38,9 +38,6 @@ pub enum Mode {
|
|||
Codegen
|
||||
}
|
||||
|
||||
|
||||
impl Copy for Mode {}
|
||||
|
||||
impl FromStr for Mode {
|
||||
fn from_str(s: &str) -> Option<Mode> {
|
||||
match s {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue