Skip to content

Commit db9af1d

Browse files
committed
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?
2 parents f556c8c + 8bcfaba commit db9af1d

File tree

1 file changed

+1
-1
lines changed
  • src/librustc/middle/typeck/check

1 file changed

+1
-1
lines changed

src/librustc/middle/typeck/check/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2651,7 +2651,7 @@ fn check_expr_with_unifier(fcx: &FnCtxt,
26512651
let error = if vst == ast::ExprVstoreSlice {
26522652
"`&\"string\"` has been removed; use `\"string\"` instead"
26532653
} else {
2654-
"`~\"string\"` has been removed; use `\"string\".to_string()` instead"
2654+
"`box \"string\"` has been removed; use `\"string\".to_string()` instead"
26552655
};
26562656
tcx.sess.span_err(expr.span, error);
26572657
ty::mk_err()

0 commit comments

Comments
 (0)