about summary refs log tree commit diff
path: root/compiler/rustc_trait_selection/messages.ftl
AgeCommit message (Collapse)AuthorLines
2023-12-04Restrict what symbols can be used in `#[diagnostic::on_unimplemented]` ↵Georg Semmler-0/+3
format strings This commit restricts what symbols can be used in a format string for any option of the `diagnostic::on_unimplemented` attribute. We previously allowed all the ad-hoc options supported by the internal `#[rustc_on_unimplemented]` attribute. For the stable attribute we only want to support generic parameter names and `{Self}` as parameters. For any other parameter an warning is emitted and the parameter is replaced by the literal parameter string, so for example `{integer}` turns into `{integer}`. This follows the general design of attributes in the `#[diagnostic]` attribute namespace, that any syntax "error" is treated as warning and subsequently ignored.
2023-11-17Add some additional warnings for duplicated diagnostic itemsGeorg Semmler-0/+4
This commit adds warnings if a user supplies several diagnostic options where we can only apply one of them. We explicitly warn about ignored options here. In addition a small test for these warnings is added.
2023-10-19Improve the warning messages for the `#[diagnostic::on_unimplemented]`Georg Semmler-0/+5
This commit improves warnings emitted for malformed on unimplemented attributes by: * Improving the span of the warnings * Adding a label message to them * Separating the messages for missing and unexpected options * Adding a help message that says which options are supported
2023-09-12`#[diagnostic::on_unimplemented]` without filtersGeorg Semmler-0/+2
This commit adds support for a `#[diagnostic::on_unimplemented]` attribute with the following options: * `message` to customize the primary error message * `note` to add a customized note message to an error message * `label` to customize the label part of the error message Co-authored-by: León Orell Valerian Liehr <me@fmease.dev> Co-authored-by: Michael Goulet <michael@errs.io>
2023-09-10Point out if a local trait has no implementationsMichael Goulet-0/+2
2023-08-30Permit recursive weak type aliasesOli Scherer-0/+1
2023-08-07Migrate a trait selection error to use diagnostic translationDeadbeef-0/+9
2023-06-28convert to fluent, make plurals workMichael Goulet-0/+10
2023-05-25Ensure Fluent messages are in alphabetical orderclubby789-7/+7
2023-05-04IAT: Introduce AliasKind::InherentLeón Orell Valerian Liehr-0/+2
2023-03-11Simplify message pathsest31-0/+22
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