Skip to content

Commit d9530c0

Browse files
committed
Fallout out rustc
1 parent 890ed5c commit d9530c0

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+173
-171
lines changed

src/librustc/lint/builtin.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ declare_lint! {
113113
}
114114
/// Does nothing as a lint pass, but registers some `Lint`s
115115
/// which are used by other parts of the compiler.
116-
#[derive(Copy)]
116+
#[derive(Copy, Clone)]
117117
pub struct HardwiredLints;
118118

119119
impl LintPass for HardwiredLints {

src/librustc/lint/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ pub use lint::context::{Context, LintStore, raw_emit_lint, check_crate, gather_a
4141
GatherNodeLevels};
4242

4343
/// Specification of a single lint.
44-
#[derive(Copy, Debug)]
44+
#[derive(Copy, Clone, Debug)]
4545
pub struct Lint {
4646
/// A string identifier for the lint.
4747
///

src/librustc/metadata/common.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ pub const tag_items_data_item_reexport_def_id: usize = 0x47;
116116
pub const tag_items_data_item_reexport_name: usize = 0x48;
117117

118118
// used to encode crate_ctxt side tables
119-
#[derive(Copy, PartialEq, FromPrimitive)]
119+
#[derive(Copy, Clone, PartialEq, FromPrimitive)]
120120
#[repr(usize)]
121121
pub enum astencode_tag { // Reserves 0x50 -- 0x6f
122122
tag_ast = 0x50,

src/librustc/metadata/csearch.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ use syntax::parse::token;
2929

3030
use std::collections::hash_map::HashMap;
3131

32-
#[derive(Copy)]
32+
#[derive(Copy, Clone)]
3333
pub struct MethodInfo {
3434
pub name: ast::Name,
3535
pub def_id: ast::DefId,

src/librustc/metadata/filesearch.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ use std::path::{Path, PathBuf};
2121
use util::fs as myfs;
2222
use session::search_paths::{SearchPaths, PathKind};
2323

24-
#[derive(Copy)]
24+
#[derive(Copy, Clone)]
2525
pub enum FileMatch {
2626
FileMatches,
2727
FileDoesntMatch,

src/librustc/metadata/tydecode.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ use syntax::parse::token;
4343
// def-id will depend on where it originated from. Therefore, the conversion
4444
// function is given an indicator of the source of the def-id. See
4545
// astencode.rs for more information.
46-
#[derive(Copy, Debug)]
46+
#[derive(Copy, Clone, Debug)]
4747
pub enum DefIdSource {
4848
// Identifies a struct, trait, enum, etc.
4949
NominalType,

src/librustc/middle/cfg/construct.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ struct CFGBuilder<'a, 'tcx: 'a> {
2525
loop_scopes: Vec<LoopScope>,
2626
}
2727

28-
#[derive(Copy)]
28+
#[derive(Copy, Clone)]
2929
struct LoopScope {
3030
loop_id: ast::NodeId, // id of loop/while node
3131
continue_index: CFGIndex, // where to go on a `loop`

src/librustc/middle/cfg/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ pub struct CFG {
2424
pub exit: CFGIndex,
2525
}
2626

27-
#[derive(Copy, PartialEq)]
27+
#[derive(Copy, Clone, PartialEq)]
2828
pub enum CFGNodeData {
2929
AST(ast::NodeId),
3030
Entry,

src/librustc/middle/check_const.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ bitflags! {
7676
}
7777
}
7878

79-
#[derive(Copy, Eq, PartialEq)]
79+
#[derive(Copy, Clone, Eq, PartialEq)]
8080
enum Mode {
8181
Const,
8282
Static,

src/librustc/middle/check_loop.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ enum Context {
2121
Normal, Loop, Closure
2222
}
2323

24-
#[derive(Copy)]
24+
#[derive(Copy, Clone)]
2525
struct CheckLoopVisitor<'a> {
2626
sess: &'a Session,
2727
cx: Context

0 commit comments

Comments
 (0)