Skip to content

Commit 78619de

Browse files
committed
---
yaml --- r: 142935 b: refs/heads/try2 c: 3f8d548 h: refs/heads/master i: 142933: 7d854f8 142931: 9a3ca71 142927: 4670db2 v: v3
1 parent f4c7cb2 commit 78619de

File tree

5 files changed

+9
-5
lines changed

5 files changed

+9
-5
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ refs/heads/snap-stage3: 78a7676898d9f80ab540c6df5d4c9ce35bb50463
55
refs/heads/try: 519addf6277dbafccbb4159db4b710c37eaa2ec5
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8-
refs/heads/try2: 66a9b7d5bd725960b67deb3e3793e19a0ad3cea5
8+
refs/heads/try2: 3f8d548914fac1e7c32fcd9a903590d0fe21c64f
99
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try2/src/librustc/middle/const_eval.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,11 @@ pub fn lookup_variant_by_id(tcx: ty::ctxt,
204204
capture_map: @mut HashMap::new()
205205
};
206206
match csearch::maybe_get_item_ast(tcx, enum_def,
207-
|a, b, c, d| astencode::decode_inlined_item(a, b, maps, /*bar*/ copy c, d)) {
207+
|a, b, c, d| astencode::decode_inlined_item(a,
208+
b,
209+
maps,
210+
/*bad*/ c.clone(),
211+
d)) {
208212
csearch::found(ast::ii_item(item)) => match item.node {
209213
item_enum(ast::enum_def { variants: ref variants }, _) => {
210214
variant_expr(*variants, variant_def.node)

branches/try2/src/librustc/middle/lint.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ pub enum level {
112112
allow, warn, deny, forbid
113113
}
114114

115-
#[deriving(Eq)]
115+
#[deriving(Clone, Eq)]
116116
pub struct LintSpec {
117117
lint: lint,
118118
desc: &'static str,

branches/try2/src/librustpkg/tests.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ fn command_line_test_with_env(args: &[~str], cwd: &Path, env: Option<~[(~str, ~s
221221
let cwd = normalize(RemotePath((*cwd).clone()));
222222
debug!("About to run command: %? %? in %s", cmd, args, cwd.to_str());
223223
assert!(os::path_is_dir(&*cwd));
224-
let cwd = cwd.clone();
224+
let cwd = (*cwd).clone();
225225
let mut prog = run::Process::new(cmd, args, run::ProcessOptions {
226226
env: env.map(|v| v.slice(0, v.len())),
227227
dir: Some(&cwd),

branches/try2/src/test/bench/shootout-k-nucleotide-pipes.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ fn sort_and_fmt(mm: &HashMap<~[u8], uint>, total: uint) -> ~str {
6363

6464
// map -> [(k,%)]
6565
for mm.iter().advance |(key, &val)| {
66-
pairs.push((copy *key, pct(val, total)));
66+
pairs.push(((*key).clone(), pct(val, total)));
6767
}
6868

6969
let pairs_sorted = sortKV(pairs);

0 commit comments

Comments
 (0)