Skip to content

Commit b2aaefa

Browse files
committed
Add mir lower for struct pattern
1 parent cb16516 commit b2aaefa

9 files changed

Lines changed: 596 additions & 338 deletions

File tree

crates/analyzer/src/traversal/functions.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,7 @@ fn struct_pattern(
483483
let err = scope.fancy_error(
484484
&format!("field `{}` is not public field", f_name),
485485
vec![
486-
Label::primary(span, "missing field"),
486+
Label::primary(span, format!("`{}` is not public", f_name)),
487487
Label::secondary(field.span(scope.db()), "field is defined here"),
488488
],
489489
vec![],

0 commit comments

Comments
 (0)