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
Tweak value suggestions in borrowck and hir_analysis
Unify the output of `suggest_assign_value` and `ty_kind_suggestion`.
Ideally we'd make these a single function, but doing so would likely require modify the crate dependency tree.
= note: this error originates in the macro `$crate::format_args_nl` which comes from the expansion of the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info)
51
51
help: consider assigning a value
52
52
|
53
-
LL | let demo_no: DemoNoDef = todo!();
54
-
| +++++++++
53
+
LL | let demo_no: DemoNoDef = value;
54
+
| +++++++
55
55
56
56
error[E0381]: used binding `arr` isn't initialized
= note: this error originates in the macro `$crate::format_args_nl` which comes from the expansion of the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info)
65
65
help: consider assigning a value
66
66
|
67
-
LL | let arr: [i32; 5] = todo!();
68
-
| +++++++++
67
+
LL | let arr: [i32; 5] = value;
68
+
| +++++++
69
69
70
70
error[E0381]: used binding `foo` isn't initialized
= note: this error originates in the macro `$crate::format_args_nl` which comes from the expansion of the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info)
107
107
help: consider assigning a value
108
108
|
109
-
LL | let my_int: &i32 = todo!();
110
-
| +++++++++
109
+
LL | let my_int: &i32 = value;
110
+
| +++++++
111
111
112
112
error[E0381]: used binding `hello` isn't initialized
= note: this error originates in the macro `$crate::format_args_nl` which comes from the expansion of the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info)
121
121
help: consider assigning a value
122
122
|
123
-
LL | let hello: &str = todo!();
124
-
| +++++++++
123
+
LL | let hello: &str = value;
124
+
| +++++++
125
125
126
126
error[E0381]: used binding `never` isn't initialized
0 commit comments