mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-28 17:53:56 +00:00
auto merge of #15074 : conradkleinespel/rust/master, r=pcwalton
Using something like: ```rust box "string" ``` yields ```shell "`~\"string\"` has been removed; use `\"string\".to_string()` instead" ``` Should the error message maybe say `box "string"` instead?
This commit is contained in:
commit
db9af1d505
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user