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
- Add primary span labels.
- Point at const generic parameter used as pattern.
- Point at statics used as pattern.
- Point at let bindings used in const pattern.
mir_build_nan_pattern = cannot use NaN in patterns
252
+
.label = evaluates to `NaN`, which is not allowed in patterns
250
253
.note = NaNs compare inequal to everything, even themselves, so this pattern would never match
251
254
.help = try using the `is_nan` method instead
252
255
253
256
mir_build_non_const_path = runtime values cannot be referenced in patterns
257
+
.label = references a runtime value
254
258
255
259
mir_build_non_empty_never_pattern =
256
260
mismatched types
@@ -270,6 +274,7 @@ mir_build_non_exhaustive_patterns_type_not_empty = non-exhaustive patterns: type
270
274
271
275
mir_build_non_partial_eq_match =
272
276
to use a constant of type `{$non_peq_ty}` in a pattern, the type must implement `PartialEq`
277
+
.label = constant of non-structural type
273
278
274
279
mir_build_pattern_not_covered = refutable pattern in {$origin}
275
280
.pattern_ty = the matched value is of type `{$pattern_ty}`
@@ -288,6 +293,8 @@ mir_build_rustc_box_attribute_error = `#[rustc_box]` attribute used incorrectly
288
293
.missing_box = `#[rustc_box]` requires the `owned_box` lang item
289
294
290
295
mir_build_static_in_pattern = statics cannot be referenced in patterns
296
+
.label = can't be used in patterns
297
+
mir_build_static_in_pattern_def = `static` defined here
291
298
292
299
mir_build_suggest_attempted_int_lit = alternatively, you could prepend the pattern with an underscore to define a new named variable; identifiers cannot begin with digits
0 commit comments