Skip to content

Commit

Permalink
replace reference to ~"string" with box "string"
Browse files Browse the repository at this point in the history
  • Loading branch information
conradkleinespel committed Jun 21, 2014
1 parent 0ae4b97 commit 8bcfaba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustc/middle/typeck/check/mod.rs
Expand Up @@ -2651,7 +2651,7 @@ fn check_expr_with_unifier(fcx: &FnCtxt,
let error = if vst == ast::ExprVstoreSlice {
"`&\"string\"` has been removed; use `\"string\"` instead"
} else {
"`~\"string\"` has been removed; use `\"string\".to_string()` instead"
"`box \"string\"` has been removed; use `\"string\".to_string()` instead"
};
tcx.sess.span_err(expr.span, error);
ty::mk_err()
Expand Down

5 comments on commit 8bcfaba

@bors
Copy link
Contributor

@bors bors commented on 8bcfaba Jun 21, 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 8bcfaba Jun 21, 2014

Choose a reason for hiding this comment

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

merging conradkleinespel/rust/master = 8bcfaba into auto

@bors
Copy link
Contributor

@bors bors commented on 8bcfaba Jun 21, 2014

Choose a reason for hiding this comment

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

conradkleinespel/rust/master = 8bcfaba merged ok, testing candidate = db9af1d

@bors
Copy link
Contributor

@bors bors commented on 8bcfaba Jun 21, 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 = db9af1d

Please sign in to comment.