You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rollup merge of #71903 - euclio:reword-possible-better, r=petrochenkov
reword "possible candidate" import suggestion
This suggestion has always read a bit awkwardly to me, particularly the "possible better candidate" variant.
This commit rewords the suggestion to be more concise and mention the kind of the suggested item. There isn't a nice way to label individual suggestions, so I opted to use "items" in the case of multiple suggestions.
Copy file name to clipboardExpand all lines: src/test/ui/lint/use_suggestion_json.stderr
+2-2
Original file line number
Diff line number
Diff line change
@@ -94,7 +94,7 @@ mod foo {
94
94
],
95
95
"children": [
96
96
{
97
-
"message": "possible candidates are found in other modules, you can import them into scope",
97
+
"message": "consider importing one of these items",
98
98
"code": null,
99
99
"level": "help",
100
100
"spans": [
@@ -385,7 +385,7 @@ mod foo {
385
385
\u001b[0m\u001b[1m\u001b[38;5;12mLL\u001b[0m\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m| \u001b[0m\u001b[0m let x: Iter;\u001b[0m
386
386
\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m| \u001b[0m\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;9m^^^^\u001b[0m\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;9mnot found in this scope\u001b[0m
0 commit comments