about summary refs log tree commit diff
path: root/compiler/rustc_infer/src/errors
AgeCommit message (Collapse)AuthorLines
2022-10-26Convert all #[suggestion_*] attributes to #[suggestion(style = "...")]Xiretza-5/+10
Using the following command: find compiler/ -type f -name '*.rs' -exec perl -i -gpe \ 's/(#\[\w*suggestion)_(short|verbose|hidden)\(\s*(\S+,)?/\1(\3style = "\2",/g' \ '{}' +
2022-10-23Migrate all diagnosticsNilstrieb-36/+36
2022-10-17infer: use derive moreDavid Wood-42/+29
Signed-off-by: David Wood <david.wood@huawei.com>
2022-10-10errors: `AddToDiagnostic::add_to_diagnostic_with`David Wood-9/+33
`AddToDiagnostic::add_to_diagnostic_with` is similar to the previous `AddToDiagnostic::add_to_diagnostic` but takes a function that can be used by the caller to modify diagnostic messages originating from the subdiagnostic (such as performing translation eagerly). `add_to_diagnostic` now just calls `add_to_diagnostic_with` with an empty closure. Signed-off-by: David Wood <david.wood@huawei.com>
2022-09-21FIX - adopt new Diagnostic naming in newly migrated modulesJhonny Bill Mena-20/+20
FIX - ambiguous Diagnostic link in docs UPDATE - rename diagnostic_items to IntoDiagnostic and AddToDiagnostic [Gardening] FIX - formatting via `x fmt` FIX - rebase conflicts. NOTE: Confirm wheather or not we want to handle TargetDataLayoutErrorsWrapper this way DELETE - unneeded allow attributes in Handler method FIX - broken test FIX - Rebase conflict UPDATE - rename residual _SessionDiagnostic and fix LintDiag link
2022-09-08Remove ReEmptyJack Huey-7/+0
2022-09-06Whoops forgot a spaceNikita Tomashevich-1/+1
2022-09-06Replace manual impl with a derive macro as multipart suggestions are now ↵Nikita Tomashevich-39/+50
supported by them
2022-09-06Slightly more concise commentIQuant-4/+1
Co-authored-by: David Wood <agile.lion3441@fuligin.ink>
2022-09-06Use untranslated messages for nowNikita Tomashevich-11/+24
2022-09-06Remove a comment and use IntoDiagnosticArg instead of add_to() where feasibleNikita Tomashevich-14/+17
2022-09-06Address some commentsNikita Tomashevich-63/+52
2022-09-06Mugrate mismatched_static_lifetime.rsNikita Tomashevich-0/+665