about summary refs log tree commit diff
path: root/compiler/rustc_infer/messages.ftl
diff options
context:
space:
mode:
authorIQuant <quant3234@gmail.com>2023-03-03 15:41:22 +0300
committerIQuant <quant3234@gmail.com>2023-04-04 18:34:50 +0300
commitb36abea285e7615f12c079c40d3a68c9eee15c8d (patch)
tree052f57a4d967e0c3ee2d9d0021272679000bb20d /compiler/rustc_infer/messages.ftl
parent37f55691f46741d783ba482d42f1cf5ef60593a9 (diff)
downloadrust-b36abea285e7615f12c079c40d3a68c9eee15c8d.tar.gz
rust-b36abea285e7615f12c079c40d3a68c9eee15c8d.zip
Migrate SuggestAsRefWhereAppropriate
Diffstat (limited to 'compiler/rustc_infer/messages.ftl')
-rw-r--r--compiler/rustc_infer/messages.ftl7
1 files changed, 7 insertions, 0 deletions
diff --git a/compiler/rustc_infer/messages.ftl b/compiler/rustc_infer/messages.ftl
index 9d5933d5ab5..2cdc513d73c 100644
--- a/compiler/rustc_infer/messages.ftl
+++ b/compiler/rustc_infer/messages.ftl
@@ -353,3 +353,10 @@ infer_fps_use_ref = consider using a reference
 infer_fps_remove_ref = consider removing the reference
 infer_fps_cast = consider casting to a fn pointer
 infer_fps_items_are_distinct = fn items are distinct from fn pointers
+infer_fps_cast_both = consider casting both fn items to fn pointers using `as {$expected_sig}`
+
+infer_fn_uniq_types = different fn items have unique types, even if their signatures are the same
+infer_fn_consider_casting = consider casting the fn item to a fn pointer: `{$casting}`
+
+infer_sarwa_option = you can convert from `&Option<T>` to `Option<&T>` using `.as_ref()`
+infer_sarwa_result = you can convert from `&Result<T, E>` to `Result<&T, &E>` using `.as_ref()`