Skip to content

Commit 6e14ab8

Browse files
committed
---
yaml --- r: 148205 b: refs/heads/try2 c: 4bdda35 h: refs/heads/master i: 148203: 7fcdae4 v: v3
1 parent 46848e8 commit 6e14ab8

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
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: 08ac616d379bb181e55b08f88e8c5342ee8d63a2
8+
refs/heads/try2: 4bdda359c3cf41e36ba01ca6aef826aca7cc81c0
99
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ pub fn expand_env(cx: &mut ExtCtxt, sp: Span, tts: &[ast::TokenTree])
4343

4444
let (var, _var_str_style) = expr_to_str(cx, exprs[0], "expected string literal");
4545
let msg = match exprs.len() {
46-
1 => format!("Environment variable {} not defined", var).to_managed(),
46+
1 => format!("environment variable `{}` not defined", var).to_managed(),
4747
2 => {
4848
let (s, _style) = expr_to_str(cx, exprs[1], "expected string literal");
4949
s

branches/try2/src/libsyntax/ext/tt/macro_parser.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -351,9 +351,9 @@ pub fn parse(sess: @ParseSess,
351351
}
352352
return Success(nameize(sess, ms, v));
353353
} else if eof_eis.len() > 1u {
354-
return Error(sp, ~"Ambiguity: multiple successful parses");
354+
return Error(sp, ~"ambiguity: multiple successful parses");
355355
} else {
356-
return Failure(sp, ~"Unexpected end of macro invocation");
356+
return Failure(sp, ~"unexpected end of macro invocation");
357357
}
358358
} else {
359359
if (bb_eis.len() > 0u && next_eis.len() > 0u)
@@ -367,12 +367,12 @@ pub fn parse(sess: @ParseSess,
367367
_ => fail!()
368368
} }).connect(" or ");
369369
return Error(sp, format!(
370-
"Local ambiguity: multiple parsing options: \
370+
"local ambiguity: multiple parsing options: \
371371
built-in NTs {} or {} other options.",
372372
nts, next_eis.len()));
373373
} else if (bb_eis.len() == 0u && next_eis.len() == 0u) {
374-
return Failure(sp, ~"No rules expected the token: "
375-
+ to_str(get_ident_interner(), &tok));
374+
return Failure(sp, format!("no rules expected the token `{}`",
375+
to_str(get_ident_interner(), &tok)));
376376
} else if (next_eis.len() > 0u) {
377377
/* Now process the next token */
378378
while(next_eis.len() > 0u) {

branches/try2/src/test/compile-fail/extenv-not-defined-default.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() { env!("__HOPEFULLY_NOT_DEFINED__"); } //~ ERROR: Environment variable __HOPEFULLY_NOT_DEFINED__ not defined
11+
fn main() { env!("__HOPEFULLY_NOT_DEFINED__"); } //~ ERROR: environment variable `__HOPEFULLY_NOT_DEFINED__` not defined

0 commit comments

Comments
 (0)