Skip to content

Commit 6b60050

Browse files
author
Keegan McAllister
committed
---
yaml --- r: 152780 b: refs/heads/try2 c: 75bfeda h: refs/heads/master v: v3
1 parent 40b016b commit 6b60050

File tree

19 files changed

+22
-25
lines changed

19 files changed

+22
-25
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: 87f3741fdf6356d57d22f8154cf6069a83dec8d7
8+
refs/heads/try2: 75bfedaef5c7b7bbfd91a78188f8b8e6a97510c3
99
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try2/src/librustc/driver/config.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ use back;
1919
use back::link;
2020
use back::target_strs;
2121
use back::{arm, x86, x86_64, mips, mipsel};
22-
use middle::lint;
22+
use lint;
2323

2424
use syntax::abi;
2525
use syntax::ast;

branches/try2/src/librustc/driver/driver.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,13 @@ use metadata::common::LinkMeta;
2020
use metadata::creader;
2121
use middle::cfg;
2222
use middle::cfg::graphviz::LabelledCFG;
23-
use middle::{trans, freevars, stability, kind, ty, typeck, lint, reachable};
23+
use middle::{trans, freevars, stability, kind, ty, typeck, reachable};
2424
use middle::dependency_format;
2525
use middle;
2626
use plugin::load::Plugins;
2727
use plugin::registry::Registry;
2828
use plugin;
29+
use lint;
2930
use util::common::time;
3031
use util::ppaux;
3132
use util::nodemap::{NodeSet};

branches/try2/src/librustc/driver/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ pub use syntax::diagnostic;
1313
use back::link;
1414
use driver::driver::{Input, FileInput, StrInput};
1515
use driver::session::{Session, build_session};
16-
use middle::lint;
16+
use lint;
1717
use metadata;
1818

1919
use std::any::AnyRefExt;

branches/try2/src/librustc/driver/session.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ use driver::driver;
1414
use front;
1515
use metadata::cstore::CStore;
1616
use metadata::filesearch;
17-
use middle::lint;
17+
use lint;
1818
use util::nodemap::NodeMap;
1919

2020
use syntax::ast::NodeId;

branches/try2/src/librustc/front/feature_gate.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
//! Features are enabled in programs via the crate-level attributes of
1919
//! `#![feature(...)]` with a comma-separated list of features.
2020
21-
use middle::lint;
21+
use lint;
2222

2323
use syntax::abi::RustIntrinsic;
2424
use syntax::ast::NodeId;

branches/try2/src/librustc/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ pub mod middle {
5656
pub mod check_match;
5757
pub mod check_const;
5858
pub mod check_static;
59-
pub mod lint;
6059
pub mod borrowck;
6160
pub mod dataflow;
6261
pub mod mem_categorization;
@@ -113,6 +112,8 @@ pub mod driver;
113112

114113
pub mod plugin;
115114

115+
pub mod lint;
116+
116117
pub mod util {
117118
pub mod common;
118119
pub mod ppaux;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
// from live codes are live, and everything else is dead.
1414

1515
use middle::def;
16-
use middle::lint::{Allow, contains_lint, DeadCode};
16+
use lint::{Allow, contains_lint, DeadCode};
1717
use middle::privacy;
1818
use middle::ty;
1919
use middle::typeck;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,10 +104,10 @@
104104

105105
use middle::def::*;
106106
use middle::freevars;
107-
use middle::lint::{UnusedVariable, DeadAssignment};
108107
use middle::mem_categorization::Typer;
109108
use middle::pat_util;
110109
use middle::ty;
110+
use lint::{UnusedVariable, DeadAssignment};
111111
use util::nodemap::NodeMap;
112112

113113
use std::fmt;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ use std::mem::replace;
1717

1818
use metadata::csearch;
1919
use middle::def;
20-
use middle::lint;
20+
use lint;
2121
use middle::resolve;
2222
use middle::ty;
2323
use middle::typeck::{MethodCall, MethodMap, MethodOrigin, MethodParam};

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ use metadata::csearch;
1515
use metadata::decoder::{DefLike, DlDef, DlField, DlImpl};
1616
use middle::def::*;
1717
use middle::lang_items::LanguageItems;
18-
use middle::lint::{UnnecessaryQualification, UnusedImports};
18+
use lint::{UnnecessaryQualification, UnusedImports};
1919
use middle::pat_util::pat_bindings;
2020
use middle::subst::{ParamSpace, FnSpace, TypeSpace};
2121
use util::nodemap::{NodeMap, DefIdSet, FnvHashMap};

branches/try2/src/librustc/middle/trans/base.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ use lib::llvm::{ModuleRef, ValueRef, BasicBlockRef};
3636
use lib::llvm::{llvm, Vector};
3737
use lib;
3838
use metadata::{csearch, encoder, loader};
39-
use middle::lint;
39+
use lint;
4040
use middle::astencode;
4141
use middle::lang_items::{LangItem, ExchangeMallocFnLangItem, StartFnLangItem};
4242
use middle::weak_lang_items;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ use back::svh::Svh;
1414
use driver::session::Session;
1515
use metadata::csearch;
1616
use mc = middle::mem_categorization;
17-
use middle::lint;
17+
use lint;
1818
use middle::const_eval;
1919
use middle::def;
2020
use middle::dependency_format;

branches/try2/src/librustc/middle/typeck/check/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ type parameter).
7979

8080
use middle::const_eval;
8181
use middle::def;
82-
use middle::lint::UnreachableCode;
82+
use lint::UnreachableCode;
8383
use middle::pat_util::pat_id_map;
8484
use middle::pat_util;
8585
use middle::subst;

branches/try2/src/librustdoc/core.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
use rustc;
1212
use rustc::{driver, middle};
1313
use rustc::middle::privacy;
14-
use rustc::middle::lint;
14+
use rustc::lint;
1515

1616
use syntax::ast;
1717
use syntax::parse::token;

branches/try2/src/libsyntax/ext/base.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -593,14 +593,11 @@ pub fn get_exprs_from_tts(cx: &mut ExtCtxt,
593593
.collect());
594594
let mut es = Vec::new();
595595
while p.token != token::EOF {
596-
es.push(cx.expand_expr(p.parse_expr()));
597-
if p.eat(&token::COMMA) {
598-
continue;
599-
}
600-
if p.token != token::EOF {
596+
if es.len() != 0 && !p.eat(&token::COMMA) {
601597
cx.span_err(sp, "expected token: `,`");
602598
return None;
603599
}
600+
es.push(cx.expand_expr(p.parse_expr()));
604601
}
605602
Some(es)
606603
}

branches/try2/src/test/run-make/tools.mk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# These deliberately use `=` and not `:=` so that client makefiles can
22
# augment HOST_RPATH_DIR / TARGET_RPATH_DIR.
33
HOST_RPATH_ENV = \
4-
$(LD_LIB_PATH_ENVVAR)="$(TMPDIR):$(HOST_RPATH_DIR):$($(LD_LIB_PATH_ENVVAR))"
4+
$(LD_LIB_PATH_ENVVAR)="$(HOST_RPATH_DIR):$($(LD_LIB_PATH_ENVVAR))"
55
TARGET_RPATH_ENV = \
6-
$(LD_LIB_PATH_ENVVAR)="$(TMPDIR):$(TARGET_RPATH_DIR):$($(LD_LIB_PATH_ENVVAR))"
6+
$(LD_LIB_PATH_ENVVAR)="$(TARGET_RPATH_DIR):$($(LD_LIB_PATH_ENVVAR))"
77

88
RUSTC := $(HOST_RPATH_ENV) $(RUSTC) --out-dir $(TMPDIR) -L $(TMPDIR)
99
CC := $(CC) -L $(TMPDIR)

branches/try2/src/test/run-pass/concat.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2013-2014 The Rust Project Developers. See the COPYRIGHT
1+
// Copyright 2013 The Rust Project Developers. See the COPYRIGHT
22
// file at the top-level directory of this distribution and at
33
// http://rust-lang.org/COPYRIGHT.
44
//
@@ -11,8 +11,6 @@
1111
pub fn main() {
1212
assert_eq!(format!(concat!("foo", "bar", "{}"), "baz"), "foobarbaz".to_string());
1313
assert_eq!(format!(concat!()), "".to_string());
14-
// check trailing comma is allowed in concat
15-
assert_eq!(concat!("qux", "quux",).to_string(), "quxquux".to_string());
1614

1715
assert_eq!(
1816
concat!(1, 2i, 3u, 4f32, 4.0, 'a', true, ()),

0 commit comments

Comments
 (0)