Skip to content

Commit e06520a

Browse files
committed
improve diagnostic for raw pointer field access with ->
1 parent 1d40294 commit e06520a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

compiler/rustc_parse/messages.ftl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,11 @@ parse_expected_trait_in_trait_impl_found_type = expected a trait, found type
248248

249249
parse_expr_rarrow_call = `->` used for field access or method call
250250
.suggestion = try using `.` instead
251+
<<<<<<< HEAD
251252
.help = the `.` operator will automatically dereference the value, except if the value is a raw pointer
253+
=======
254+
.help = the `.` operator will dereference the value if needed (if value is raw pointer you have to derefernce it by yourself)
255+
>>>>>>> d98bd39990a (improve diagnostic for raw pointer field access with `->`)
252256

253257
parse_extern_crate_name_with_dashes = crate name using dashes are not valid in `extern crate` statements
254258
.label = dash-separated idents are not valid

0 commit comments

Comments
 (0)