1
Fork 0

more back-ticks, less colons

This commit is contained in:
Lenny222 2013-05-10 18:52:56 +02:00
parent fdf601eaf3
commit 52610c3980
17 changed files with 34 additions and 34 deletions

View file

@ -1007,7 +1007,7 @@ pub impl Resolver {
let ns = namespace_for_duplicate_checking_mode( let ns = namespace_for_duplicate_checking_mode(
duplicate_checking_mode); duplicate_checking_mode);
self.session.span_err(sp, self.session.span_err(sp,
fmt!("duplicate definition of %s %s", fmt!("duplicate definition of %s `%s`",
namespace_to_str(ns), namespace_to_str(ns),
*self.session.str_of(name))); *self.session.str_of(name)));
for child.span_for_namespace(ns).each |sp| { for child.span_for_namespace(ns).each |sp| {
@ -1959,7 +1959,7 @@ pub impl Resolver {
match self.resolve_import_for_module(module, import_directive) { match self.resolve_import_for_module(module, import_directive) {
Failed => { Failed => {
// We presumably emitted an error. Continue. // We presumably emitted an error. Continue.
let msg = fmt!("failed to resolve import: %s", let msg = fmt!("failed to resolve import `%s`",
*self.import_path_to_str( *self.import_path_to_str(
import_directive.module_path, import_directive.module_path,
*import_directive.subclass)); *import_directive.subclass));
@ -2488,7 +2488,7 @@ pub impl Resolver {
self.session.span_err(span {lo: span.lo, hi: span.lo + self.session.span_err(span {lo: span.lo, hi: span.lo +
BytePos(str::len(*segment_name)), expn_info: BytePos(str::len(*segment_name)), expn_info:
span.expn_info}, fmt!("unresolved import. maybe \ span.expn_info}, fmt!("unresolved import. maybe \
a missing 'extern mod %s'?", a missing `extern mod %s`?",
*segment_name)); *segment_name));
return Failed; return Failed;
} }
@ -2511,7 +2511,7 @@ pub impl Resolver {
// Not a module. // Not a module.
self.session.span_err(span, self.session.span_err(span,
fmt!("not a \ fmt!("not a \
module: %s", module `%s`",
*self.session. *self.session.
str_of( str_of(
name))); name)));
@ -2525,7 +2525,7 @@ pub impl Resolver {
None => { None => {
// There are no type bindings at all. // There are no type bindings at all.
self.session.span_err(span, self.session.span_err(span,
fmt!("not a module: %s", fmt!("not a module `%s`",
*self.session.str_of( *self.session.str_of(
name))); name)));
return Failed; return Failed;
@ -2976,7 +2976,7 @@ pub impl Resolver {
} }
// We're out of luck. // We're out of luck.
debug!("(resolving name in module) failed to resolve %s", debug!("(resolving name in module) failed to resolve `%s`",
*self.session.str_of(name)); *self.session.str_of(name));
return Failed; return Failed;
} }
@ -4158,7 +4158,7 @@ pub impl Resolver {
// in the same disjunct, which is an // in the same disjunct, which is an
// error // error
self.session.span_err(pattern.span, self.session.span_err(pattern.span,
fmt!("Identifier %s is bound more \ fmt!("Identifier `%s` is bound more \
than once in the same pattern", than once in the same pattern",
path_to_str(path, self.session path_to_str(path, self.session
.intr()))); .intr())));
@ -4199,7 +4199,7 @@ pub impl Resolver {
Some(_) => { Some(_) => {
self.session.span_err( self.session.span_err(
path.span, path.span,
fmt!("not an enum variant or constant: %s", fmt!("`%s` is not an enum variant or constant",
*self.session.str_of( *self.session.str_of(
*path.idents.last()))); *path.idents.last())));
} }
@ -4227,7 +4227,7 @@ pub impl Resolver {
Some(_) => { Some(_) => {
self.session.span_err( self.session.span_err(
path.span, path.span,
fmt!("not an enum variant, struct or const: %s", fmt!("`%s` is not an enum variant, struct or const",
*self.session.str_of( *self.session.str_of(
*path.idents.last()))); *path.idents.last())));
} }
@ -4723,8 +4723,8 @@ pub impl Resolver {
path.idents); path.idents);
if self.name_exists_in_scope_struct(wrong_name) { if self.name_exists_in_scope_struct(wrong_name) {
self.session.span_err(expr.span, self.session.span_err(expr.span,
fmt!("unresolved name: `%s`. \ fmt!("unresolved name `%s`. \
Did you mean: `self.%s`?", Did you mean `self.%s`?",
wrong_name, wrong_name,
wrong_name)); wrong_name));
} }
@ -4734,13 +4734,13 @@ pub impl Resolver {
match self.find_best_match_for_name(wrong_name, 5) { match self.find_best_match_for_name(wrong_name, 5) {
Some(m) => { Some(m) => {
self.session.span_err(expr.span, self.session.span_err(expr.span,
fmt!("unresolved name: `%s`. \ fmt!("unresolved name `%s`. \
Did you mean: `%s`?", Did you mean `%s`?",
wrong_name, m)); wrong_name, m));
} }
None => { None => {
self.session.span_err(expr.span, self.session.span_err(expr.span,
fmt!("unresolved name: `%s`.", fmt!("unresolved name `%s`.",
wrong_name)); wrong_name));
} }
} }

View file

@ -16,6 +16,6 @@ fn my_fail() -> ! { fail!(); }
fn main() { fn main() {
match true { false => { my_fail(); } true => { } } match true { false => { my_fail(); } true => { } }
debug!(x); //~ ERROR unresolved name: `x`. debug!(x); //~ ERROR unresolved name `x`.
let x: int; let x: int;
} }

View file

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
// error-pattern: unresolved name: `m1::a`. Did you mean: `args`? // error-pattern: unresolved name `m1::a`. Did you mean `args`?
mod m1 {} mod m1 {}

View file

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
// error-pattern: unresolved name: `m1::a`. Did you mean: `args`? // error-pattern: unresolved name `m1::a`. Did you mean `args`?
mod m1 { mod m1 {
pub mod a {} pub mod a {}

View file

@ -1,2 +1,2 @@
// error-pattern: unresolved name: `this_does_nothing_what_the`. // error-pattern: unresolved name `this_does_nothing_what_the`.
fn main() { debug!("doing"); this_does_nothing_what_the; debug!("boing"); } fn main() { debug!("doing"); this_does_nothing_what_the; debug!("boing"); }

View file

@ -9,5 +9,5 @@
// except according to those terms. // except according to those terms.
fn main() { fn main() {
error!(x); //~ ERROR unresolved name: `x`. error!(x); //~ ERROR unresolved name `x`.
} }

View file

@ -8,6 +8,6 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
// error-pattern: unresolved name: `foobar`. // error-pattern: unresolved name `foobar`.
fn main(args: ~[str]) { debug!(foobar); } fn main(args: ~[str]) { debug!(foobar); }

View file

@ -19,7 +19,7 @@ fn siphash(k0 : u64) {
pub impl siphash { pub impl siphash {
fn reset(&mut self) { fn reset(&mut self) {
self.v0 = k0 ^ 0x736f6d6570736575; //~ ERROR attempted dynamic environment-capture self.v0 = k0 ^ 0x736f6d6570736575; //~ ERROR attempted dynamic environment-capture
//~^ ERROR unresolved name: `k0`. //~^ ERROR unresolved name `k0`.
} }
} }
} }

View file

@ -31,9 +31,9 @@ fn siphash(k0 : u64, k1 : u64) -> siphash {
impl siphash for SipState { impl siphash for SipState {
fn reset(&self) { fn reset(&self) {
self.v0 = k0 ^ 0x736f6d6570736575; //~ ERROR attempted dynamic environment-capture self.v0 = k0 ^ 0x736f6d6570736575; //~ ERROR attempted dynamic environment-capture
//~^ ERROR unresolved name: `k0`. //~^ ERROR unresolved name `k0`.
self.v1 = k1 ^ 0x646f72616e646f6d; //~ ERROR attempted dynamic environment-capture self.v1 = k1 ^ 0x646f72616e646f6d; //~ ERROR attempted dynamic environment-capture
//~^ ERROR unresolved name: `k1`. //~^ ERROR unresolved name `k1`.
} }
fn result(&self) -> u64 { return mk_result(self); } fn result(&self) -> u64 { return mk_result(self); }
} }

View file

@ -22,7 +22,7 @@ fn siphash(k0 : u64) -> SipHash {
impl SipHash for SipState { impl SipHash for SipState {
fn reset(&self) { fn reset(&self) {
self.v0 = k0 ^ 0x736f6d6570736575; //~ ERROR attempted dynamic environment-capture self.v0 = k0 ^ 0x736f6d6570736575; //~ ERROR attempted dynamic environment-capture
//~^ ERROR unresolved name: `k0`. //~^ ERROR unresolved name `k0`.
} }
} }
fail!(); fail!();

View file

@ -20,16 +20,16 @@ fn main()
let _z = match g(1, 2) { let _z = match g(1, 2) {
g(x, x) => { debug!(x + x); } g(x, x) => { debug!(x + x); }
//~^ ERROR Identifier x is bound more than once in the same pattern //~^ ERROR Identifier `x` is bound more than once in the same pattern
}; };
let _z = match i(l(1, 2), m(3, 4)) { let _z = match i(l(1, 2), m(3, 4)) {
i(l(x, _), m(_, x)) //~ ERROR Identifier x is bound more than once in the same pattern i(l(x, _), m(_, x)) //~ ERROR Identifier `x` is bound more than once in the same pattern
=> { error!(x + x); } => { error!(x + x); }
}; };
let _z = match (1, 2) { let _z = match (1, 2) {
(x, x) => { x } //~ ERROR Identifier x is bound more than once in the same pattern (x, x) => { x } //~ ERROR Identifier `x` is bound more than once in the same pattern
}; };
} }

View file

@ -10,6 +10,6 @@
enum a { b, c } enum a { b, c }
enum a { d, e } //~ ERROR duplicate definition of type a enum a { d, e } //~ ERROR duplicate definition of type `a`
fn main() {} fn main() {}

View file

@ -10,6 +10,6 @@
pub mod a {} pub mod a {}
pub mod a {} //~ ERROR duplicate definition of type a pub mod a {} //~ ERROR duplicate definition of type `a`
fn main() {} fn main() {}

View file

@ -12,7 +12,7 @@ fn a(x: ~str) -> ~str {
fmt!("First function with %s", x) fmt!("First function with %s", x)
} }
fn a(x: ~str, y: ~str) -> ~str { //~ ERROR duplicate definition of value a fn a(x: ~str, y: ~str) -> ~str { //~ ERROR duplicate definition of value `a`
fmt!("Second function with %s and %s", x, y) fmt!("Second function with %s and %s", x, y)
} }

View file

@ -17,7 +17,7 @@ impl Foo {
Foo { baz: 0 }.bar(); Foo { baz: 0 }.bar();
} }
fn bar() { //~ ERROR duplicate definition of value bar fn bar() { //~ ERROR duplicate definition of value `bar`
} }
} }

View file

@ -25,7 +25,7 @@ mod a {
} }
pub mod sub { pub mod sub {
use a::b::*; use a::b::*;
fn sub() -> bar { foo(); 1 } //~ ERROR: unresolved name: `foo` fn sub() -> bar { foo(); 1 } //~ ERROR: unresolved name `foo`
//~^ ERROR: use of undeclared type name `bar` //~^ ERROR: use of undeclared type name `bar`
} }
} }
@ -35,5 +35,5 @@ mod m1 {
} }
fn main() { fn main() {
foo(); //~ ERROR: unresolved name: `foo` foo(); //~ ERROR: unresolved name `foo`
} }

View file

@ -14,5 +14,5 @@
fn foo() {} fn foo() {}
fn main() { fn main() {
foo(); //~ ERROR unresolved name: `foo`. foo(); //~ ERROR unresolved name `foo`.
} }