In a recent PR #69942 I made a change to unify the wording of multiple privacy errors, but accidentally regressed the following case:
error[E0451]: field `secret_uid` of struct `foo::S` is private
--> $DIR/functional-struct-update-respects-privacy.rs:28:49
|
LL | let s_2 = foo::S { b: format!("ess two"), ..s_1 }; // FRU ...
| ^^^ private field
used to be
error[E0451]: field `secret_uid` of struct `foo::S` is private
--> $DIR/functional-struct-update-respects-privacy.rs:28:49
|
LL | let s_2 = foo::S { b: format!("ess two"), ..s_1 }; // FRU ...
| ^^^ field `secret_uid` is private
This one change needs to be reversed while keeping the rest.
In a recent PR #69942 I made a change to unify the wording of multiple privacy errors, but accidentally regressed the following case:
used to be
This one change needs to be reversed while keeping the rest.