Skip to content

Commit 25d8cea

Browse files
committed
---
yaml --- r: 158043 b: refs/heads/master c: dce0be0 h: refs/heads/master i: 158041: 2637cda 158039: 8c0dc22 v: v3
1 parent 713d19c commit 25d8cea

File tree

7 files changed

+12
-4
lines changed

7 files changed

+12
-4
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 02300dc90d4199724f46f6246b57cb10a1288910
2+
refs/heads/master: dce0be03d94360d100825c134892e78c39858ef8
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 1b2ad7831f1745bf4a4709a1fa1772afb47c933c
55
refs/heads/try: 98bd84a3300f974f400a3eeb56567ad3f77b13f0

trunk/src/librustc/metadata/creader.rs

Lines changed: 1 addition & 1 deletion
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: `{}`",

trunk/src/libsyntax/ext/base.rs

Lines changed: 4 additions & 0 deletions
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());

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

Lines changed: 1 addition & 1 deletion
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

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

Lines changed: 1 addition & 1 deletion
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
}

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

Lines changed: 2 additions & 0 deletions
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';

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

Lines changed: 2 additions & 0 deletions
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)