Skip to content

Commit 2624772

Browse files
Improve E0512 error message
1 parent 1302187 commit 2624772

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/librustc_trans/trans/intrinsic.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ pub fn check_intrinsics(ccx: &CrateContext) {
135135

136136
if transmute_restriction.original_from != transmute_restriction.substituted_from {
137137
span_transmute_size_error(ccx.sess(), transmute_restriction.span,
138-
&format!("transmute called on types with potentially different sizes: \
138+
&format!("transmute called with differently sized types: \
139139
{} (could be {} bit{}) to {} (could be {} bit{})",
140140
transmute_restriction.original_from,
141141
from_type_size as usize,
@@ -145,7 +145,7 @@ pub fn check_intrinsics(ccx: &CrateContext) {
145145
if to_type_size == 1 {""} else {"s"}));
146146
} else {
147147
span_transmute_size_error(ccx.sess(), transmute_restriction.span,
148-
&format!("transmute called on types with different sizes: \
148+
&format!("transmute called with differently sized types: \
149149
{} ({} bit{}) to {} ({} bit{})",
150150
transmute_restriction.original_from,
151151
from_type_size as usize,

0 commit comments

Comments
 (0)