Skip to content

Commit

Permalink
adjust to currently used style
Browse files Browse the repository at this point in the history
  • Loading branch information
kud1ing committed Feb 19, 2014
1 parent 1228fb0 commit 4ad5751
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/librustc/middle/mem_categorization.rs
Expand Up @@ -1152,7 +1152,7 @@ impl<TYPER:Typer> MemCategorizationContext<TYPER> {
format!("captured outer variable")
}
_ => {
format!("dereference of {} pointer", ptr_sigil(pk))
format!("dereference of `{}`-pointer", ptr_sigil(pk))
}
}
}
Expand Down
6 changes: 3 additions & 3 deletions src/test/compile-fail/borrowck-move-in-irrefut-pat.rs
Expand Up @@ -11,16 +11,16 @@
fn with(f: |&~str|) {}

fn arg_item(&_x: &~str) {}
//~^ ERROR cannot move out of dereference of & pointer
//~^ ERROR cannot move out of dereference of `&`-pointer

fn arg_closure() {
with(|&_x| ())
//~^ ERROR cannot move out of dereference of & pointer
//~^ ERROR cannot move out of dereference of `&`-pointer
}

fn let_pat() {
let &_x = &~"hi";
//~^ ERROR cannot move out of dereference of & pointer
//~^ ERROR cannot move out of dereference of `&`-pointer
}

pub fn main() {}
4 changes: 2 additions & 2 deletions src/test/compile-fail/borrowck-move-out-of-vec-tail.rs
Expand Up @@ -25,8 +25,8 @@ pub fn main() {
[_, ..tail] => {
match tail {
[Foo { string: a }, Foo { string: b }] => {
//~^ ERROR cannot move out of dereference of & pointer
//~^^ ERROR cannot move out of dereference of & pointer
//~^ ERROR cannot move out of dereference of `&`-pointer
//~^^ ERROR cannot move out of dereference of `&`-pointer
}
_ => {
unreachable!();
Expand Down
2 changes: 1 addition & 1 deletion src/test/compile-fail/issue-2590.rs
Expand Up @@ -18,7 +18,7 @@ trait parse {

impl parse for parser {
fn parse(&self) -> ~[int] {
self.tokens //~ ERROR cannot move out of dereference of & pointer
self.tokens //~ ERROR cannot move out of dereference of `&`-pointer
}
}

Expand Down

5 comments on commit 4ad5751

@bors
Copy link
Contributor

@bors bors commented on 4ad5751 Feb 20, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bors
Copy link
Contributor

@bors bors commented on 4ad5751 Feb 20, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merging kud1ing/rust/backticks = 4ad5751 into auto

@bors
Copy link
Contributor

@bors bors commented on 4ad5751 Feb 20, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

kud1ing/rust/backticks = 4ad5751 merged ok, testing candidate = 1366e04

@bors
Copy link
Contributor

@bors bors commented on 4ad5751 Feb 20, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bors
Copy link
Contributor

@bors bors commented on 4ad5751 Feb 20, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fast-forwarding master to auto = 1366e04

Please sign in to comment.