about summary refs log tree commit diff
path: root/compiler/rustc_resolve/messages.ftl
AgeCommit message (Collapse)AuthorLines
2023-12-06tip for define macro name after `macro_rules!`bohan-0/+2
2023-12-01Auto merge of #115993 - bvanjoi:fix-115966, r=petrochenkovbors-2/+0
vis note for no pub reexports glob import Fixes #115966 Only trigger the `unused_import` lint when it's not being used. r? `@petrochenkov`
2023-12-01vis note for no pub reexports glob importbohan-2/+0
2023-11-30generic_const_exprs: suggest to add the feature, not use itRalf Jung-1/+1
2023-09-20Cleanup unused messages in ftl filesyukang-12/+0
2023-09-11Rollup merge of #115744 - fmease:fix-e0401, r=compiler-errorsMatthias Krüger-16/+13
Improve diagnostic for generic params from outer items (E0401) Generalize the wording of E0401 to talk about *outer items* instead of *outer functions* since the current phrasing is outdated. The outer item can be a function, constant, trait, ADT or impl block (see the new UI test for the more exotic examples). Further, don't suggest introducing generic parameters to constant items unless the feature `generic_const_items` is enabled. Lastly, make E0401 translatable while we're at it. Fixes #115720.
2023-09-10Make E0401 translatableLeón Orell Valerian Liehr-16/+13
2023-09-04resolve: derive diag for undetermined macro resolutionbohan-0/+4
2023-06-25Add translatable diagnostic for import resolution stringsTom Martin-0/+38
Add translatable diagnostic for cannot be reexported error also added for subdiagnostics Add translatable diagnostics for resolve_glob_import errors Add translatable diag for unable to determine import resolution Add translatable diag for is not directly importable
2023-06-19Remove unreachable and untested suggestion for invalid span enum derive(Default)Tom Martin-3/+0
2023-06-18Fix tidyTom Martin-22/+21
2023-06-18Add translatable diagnostic for various strings in ↵Tom Martin-0/+13
resolve::unresolved_macro_suggestions
2023-06-18Add translatable diagnostic for cannot find in this scopeTom Martin-1/+4
2023-06-18Add translatable diagnostic for invalid importsTom Martin-0/+3
2023-06-18Add translatable diagnostic for changing import bindingTom Martin-0/+3
2023-05-25Ensure Fluent messages are in alphabetical orderclubby789-175/+175
2023-05-11Improve error for `self: Box<self>`clubby789-0/+4
2023-05-05improve diagnostics and bless testsBoxy-2/+27
2023-04-25Fix static string lintsclubby789-0/+7
2023-04-24Rollup merge of #110255 - clubby789:proc-macro-test-help, r=jackh726Matthias Krüger-0/+3
Suggest using integration tests for test crate using own proc-macro cc #110247
2023-04-17Suggest using integration tests for proc-macrosclubby789-0/+3
2023-04-12Rollup merge of #110153 - DaniPopes:compiler-typos, r=NilstriebMatthias Krüger-1/+1
Fix typos in compiler I ran [`typos -w compiler`](https://github.com/crate-ci/typos) to fix typos in the `compiler` directory. Refs #110150
2023-04-10Auto merge of #109638 - NotStirred:suggest/non-derive, r=davidtwcobors-0/+10
Add suggestion to remove `derive()` if invoked macro is non-derive Adds to the existing `expected derive macro, found {}` error message: ``` help: remove the surrounding "derive()": --> $DIR/macro-path-prelude-fail-4.rs:1:3 | LL | #[derive(inline)] | ^^^^^^^ ^ ``` This suggestion will either fix the issue, in the case that the macro was valid, or provide a better error message if not Not ready for merge yet, as the highlighted span is only valid for trivial formatting. Is there a nice way to get the parent span of the macro path within `smart_resolve_macro_path`? Closes #109589
2023-04-10Fix typos in compilerDaniPopes-1/+1
2023-04-07Rewrite added diagnostics as translatableTom Martin-0/+10
Start messages with lowercase
2023-04-04Deny `use`ing tool pathsclubby789-0/+4
2023-03-11Simplify message pathsest31-0/+211
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