about summary refs log tree commit diff
path: root/compiler/rustc_privacy/messages.ftl
AgeCommit message (Collapse)AuthorLines
2025-01-18Emit a single privacy error for multiple fields on the same struct expressionEsteban Küber-2/+15
Collect all unreachable fields in a single struct literal struct and emit a single error, instead of one error per private field. ``` error[E0451]: fields `beta` and `gamma` of struct `Alpha` are private --> $DIR/visibility.rs:18:13 | LL | let _x = Alpha { | ----- in this type LL | beta: 0, | ^^^^^^^ private field LL | .. | ^^ field `gamma` is private ```
2025-01-18Add context on private fields that are not on the same line as the struct nameEsteban Küber-0/+1
``` error[E0451]: field `x` of struct `S` is private --> $DIR/visibility.rs:24:9 | LL | let a = baz::S { | ------ in this type LL | .. | ^^ field `x` is private ```
2023-08-02Replace old private-in-public diagnostic with type privacy lintsBryanskiy-5/+0
2023-06-29Fix type privacy lints error messageBryanskiy-1/+1
2023-06-12Private-in-public lints implementationBryanskiy-0/+7
2023-05-25Ensure Fluent messages are in alphabetical orderclubby789-9/+9
2023-03-11Simplify message pathsest31-0/+23
This makes it easier to open the messages file while developing on features. The commit was the result of automatted changes: for p in compiler/rustc_*; do mv $p/locales/en-US.ftl $p/messages.ftl; rmdir $p/locales; done for p in compiler/rustc_*; do sed -i "s#\.\./locales/en-US.ftl#../messages.ftl#" $p/src/lib.rs; done