Skip to content

Commit dce0be0

Browse files
committed
Test fixes and rebase conflicts
1 parent 02300dc commit dce0be0

File tree

6 files changed

+11
-3
lines changed

6 files changed

+11
-3
lines changed

src/librustc/metadata/creader.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ fn visit_item(e: &Env, i: &ast::Item) {
238238
if k.equiv(&("static")) {
239239
cstore::NativeStatic
240240
} else if k.equiv(&("framework")) {
241-
cstore::NativeUnknown
241+
cstore::NativeFramework
242242
} else {
243243
e.sess.span_err(m.span,
244244
format!("unknown kind: `{}`",

src/libsyntax/ext/base.rs

+4
Original file line numberDiff line numberDiff line change
@@ -681,6 +681,10 @@ pub fn get_single_str_from_tts(cx: &mut ExtCtxt,
681681
name: &str)
682682
-> Option<String> {
683683
let mut p = cx.new_parser_from_tts(tts);
684+
if p.token == token::Eof {
685+
cx.span_err(sp, format!("{} takes 1 argument", name).as_slice());
686+
return None
687+
}
684688
let ret = cx.expander().fold_expr(p.parse_expr());
685689
if p.token != token::Eof {
686690
cx.span_err(sp, format!("{} takes 1 argument", name).as_slice());

src/test/compile-fail/extoption_env-not-string-literal.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
fn main() { option_env!(10); } //~ ERROR: requires a string
11+
fn main() { option_env!(10); } //~ ERROR: argument must be a string literal

src/test/compile-fail/non-constant-expr-for-fixed-len-vec.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@
1313
fn main() {
1414
fn bar(n: int) {
1515
let _x: [int, ..n];
16-
//~^ ERROR expected constant expr for vector length: non-constant path in constant expr
16+
//~^ ERROR expected constant expr for array length: non-constant path in constant expr
1717
}
1818
}

src/test/run-pass/issue-18464.rs

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
// ignore-pretty
12+
1113
#![deny(dead_code)]
1214

1315
const LOW_RANGE: char = '0';

src/test/run-pass/macro-include-items.rs

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
// ignore-pretty
12+
1113
fn bar() {}
1214

1315
include!(concat!("", "", "../auxiliary/", "macro-include-items-item.rs"))

0 commit comments

Comments
 (0)