about summary refs log tree commit diff
path: root/compiler/rustc_error_messages
AgeCommit message (Collapse)AuthorLines
2022-08-24Use `IntoDiagnosticArg` where it makes senseNikita Tomashevich-1/+6
2022-08-23Auto merge of #100675 - Xiretza:fluent-mandate-crate-prefix, r=davidtwcobors-1/+1
fluent: mandate slug names to be prefixed by crate name This is currently only convention, but not actively checked for. Additionally, improve error messages to highlight the path of the offending fluent file rather than the identifier preceding it. This will conflict with #100671, so I'll leave it as draft until that's merged.
2022-08-24save_analysis: Migrate diagnosticsWonchul Lee-0/+2
2022-08-23Rollup merge of #100768 - Facel3ss1:plugin-impl-translation, r=davidtwcoDylan DPC-0/+5
Migrate `rustc_plugin_impl` to `SessionDiagnostic` Migration of the `rustc_plugin_impl` crate. ~Draft PR because it is blocked on #100694 for `#[fatal(...)]` support~ (this has been merged, and I've changed over to `#[diag(...)]` now too), but I would also like to know if what I did with `LoadPluginError` is okay, because all it does is display the error message from `libloading` ([See conversation on zulip](https://rust-lang.zulipchat.com/#narrow/stream/147480-t-compiler.2Fwg-diagnostics/topic/.23100717.20diagnostic.20translation/near/294327843)). This crate is apparently for a deprecated feature which is used by servo, so I don't know how much this matters anyway.
2022-08-23Rename rustc_mir_dataflow diagnostic to mir_dataflow5225225-30/+30
2022-08-23Fix formating in infer.ftl to make tidy happyNikita Tomashevich-8/+7
2022-08-23Remove full stop in diagnostic message5225225-1/+1
2022-08-23Migrate note_region_origin functionNikita Tomashevich-0/+43
2022-08-23Migrate OpaqueHiddenType, E0282, E0283, E0284, E0698Nikita Tomashevich-0/+66
2022-08-23Migrate rustc_mir_dataflow to diagnostic structs5225225-0/+30
2022-08-22Reorder diagnostics in code order, then alphabetical orderHampus Lidin-57/+57
2022-08-22Refactor remaining diagnosticsHampus Lidin-1/+30
2022-08-22Refactor 'invalid issue' diagnostic to use labels within the same Fluent objectHampus Lidin-10/+5
2022-08-22Refactor additional diagnostics in `rustc_attr`Hampus Lidin-0/+26
2022-08-22Refactor more diagnostics in `rustc_attr`Hampus Lidin-0/+28
2022-08-22Refactor diagnostics in `handle_errors` functionHampus Lidin-0/+30
2022-08-22Changes made in response to feedbackJean CASPAR-2/+2
2022-08-22Migrate all span_err(...) in ast_lowering to SessionDiagnosticJean CASPAR-0/+9
2022-08-22Migrate ast_lowering::pat to SessionDiagnosticJean CASPAR-0/+17
2022-08-22Migrate ast_lowering::ast to SessionDiagnosticJean CASPAR-0/+54
2022-08-22Migrate ast_lowering::expr to SessionDiagnosticJean CASPAR-0/+33
2022-08-22Migrate ast_lowering::lib and ast_lowering::item to SessionDiagnosticJean CASPAR-0/+13
2022-08-22Migrate ast_lowering::path to SessionDiagnosticJean CASPAR-0/+6
2022-08-22Addressed trailing newlines, odd whitespace skipped by x.py fmtnidnogg-13/+13
2022-08-22Migrate rustc_plugin_impl to SessionDiagnosticPeter Medus-0/+5
2022-08-22Addressing last comment on PR reviewnidnogg-1/+1
2022-08-22Rollup merge of #100713 - Xiretza:parser-expr-session-diagnostics, r=estebankDylan DPC-0/+109
Convert diagnostics in parser/expr to SessionDiagnostic This migrates all the easy cases in `rustc_parse::parser::expr` to `SessionDiagnostic`s, I've left things such as `multipart_suggestion`s out for now in the hopes of a derive API being developed soon.
2022-08-22Prefix fluent resources with interface_Giacomo Stevanato-12/+12
2022-08-22migrate: `rustc_lint::context`Rejyr-0/+13
2022-08-22rename: `UnknownTool` to `UnknownToolInScopedLint`Rejyr-1/+1
2022-08-22migrate: `OverruledAttribute`Rejyr-0/+10
2022-08-22migrate: `bad_attr` to `SessionDiagnostic`Rejyr-0/+8
2022-08-22migrate: `UnknownTool` error to `SessionDiagnostic`Rejyr-0/+3
2022-08-22Move rustc_interface diagnostics to struct SessionDiagnostic derivesGiacomo Stevanato-0/+37
2022-08-22fluent: mandate slug names to be prefixed by crate nameXiretza-1/+1
2022-08-22Rollup merge of #100694 - finalchild:ast-passes-diag, r=TaKO8KiDylan DPC-0/+94
Migrate rustc_ast_passes diagnostics to `SessionDiagnostic` and translatable messages (first part) Doing a full migration of the `rustc_ast_passes` crate. Making a draft here since there's not yet a tracking issue for the migrations going on. `@rustbot` label +A-translation
2022-08-22Auto merge of #100671 - Xiretza:tidy-fluent-files, r=davidtwcobors-6/+6
tidy: check fluent files for style Inspired by https://github.com/rust-lang/rust/pull/100651#discussion_r947600576 There were a lot of line length violations, so I've excepted that lint - I'm not sure if fluent files can be formatted to avoid long lines at all.
2022-08-21Hotfix ftl err name, added check for err.code in create_feature_errnidnogg-1/+1
2022-08-21Fixed failing tests (missing labels), added automatic error code in ↵nidnogg-5/+3
create_feature_err() builder
2022-08-21Added several more migrations under ops.rs, failing some tests thoughnidnogg-1/+49
2022-08-21Migration on ops.rs for unstable const functionsnidnogg-1/+3
2022-08-21Migrated Unallowed function pointer calls in interpreter/opsnidnogg-0/+2
2022-08-21Finished const_eval module migration, moving onto sibling foldersnidnogg-0/+2
2022-08-22Migrate forbidden_default and *_without_bodyfinalchild-0/+33
2022-08-22Migrate fn_param_forbidden_self and rename others to have prefix fn_param_finalchild-5/+10
2022-08-22Rename c_var_args_without_named_arg to c_var_args_is_sole_paramfinalchild-1/+1
2022-08-22Migrate doc_comment_on_fn_param, forbidden_attr_on_fn_paramfinalchild-0/+7
2022-08-22Migrate forbidden_lifetime_bound, forbidden_non_lifetime_param, ↵finalchild-0/+15
too_many_params, c_var_args_without_named_arg, c_var_args_not_last
2022-08-22Migrate trait_fn_constfinalchild-0/+4
2022-08-22Migrate trait_fn_asyncfinalchild-0/+6