about summary refs log tree commit diff
path: root/compiler/rustc_error_messages
AgeCommit message (Collapse)AuthorLines
2022-11-14Wrap bundlen static libraries into object filesDaniil Belov-0/+2
2022-11-13migrating rustc_resolve to SessionDiagnostic. work in progress. startRajput, Rajat-0/+212
implement binding_shadows migrate till self-in-generic-param-default use braces in fluent message as suggested by @compiler-errors. to fix lock file issue reported by CI migrate 'unreachable label' error run formatter name the variables correctly in fluent file SessionDiagnostic -> Diagnostic test "pattern/pat-tuple-field-count-cross.rs" passed test "resolve/bad-env-capture2.rs" passed test "enum/enum-in-scope.rs" and other depended on "resolve_binding_shadows_something_unacceptable" should be passed now. fix crash errors while running test-suite. there might be more. then_some(..) suits better here. all tests passed convert TraitImpl and InvalidAsm. TraitImpl is buggy yet. will fix after receiving help from Zulip migrate "Ralative-2018" migrate "ancestor only" migrate "expected found" migrate "Indeterminate" migrate "module only" revert to the older implementation for now. since this is failing at the moment. follow the convension for fluent variable order the diag attribute as suggested in review comment fix merge error. migrate trait-impl-duplicate make the changes compatible with "Flatten diagnostic slug modules #103345" fix merge remove commented code merge issues fix review comments fix tests
2022-11-13fix up a fluent messageLeón Orell Valerian Liehr-2/+2
2022-11-12Rollup merge of #103970 - oli-obk:unhide_unknown_spans, r=estebankDylan DPC-1/+4
Unhide unknown spans r? ```@estebank```
2022-11-11Auto merge of #104293 - Manishearth:rollup-xj92d0k, r=Manishearthbors-0/+53
Rollup of 8 pull requests Successful merges: - #95292 (Allow specialized const trait impls.) - #100386 (Make `Sized` coinductive, again) - #102215 (Implement the `+whole-archive` modifier for `wasm-ld`) - #103468 (Fix unused lint and parser caring about spaces to won't produce invalid code) - #103531 (Suggest calling the instance method of the same name when method not found) - #103960 (piece of diagnostic migrate) - #104051 (update Miri) - #104129 (rustdoc: use javascript to layout notable traits popups) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
2022-11-11Rollup merge of #103960 - AndyJado:var_path_only_diag, r=davidtwcoManish Goregaokar-0/+53
piece of diagnostic migrate r? `@davidtwco`
2022-11-11Rollup merge of #104217 - Nilstrieb:funny-dollar-syntax, r=TaKO8KiDylan DPC-1/+2
Display help message when fluent arg was referenced incorrectly The fluent argument syntax is a little special and easy to get wrong, so we emit a small help message when someone gets it wrong. Example: ``` parser_mismatched_closing_delimiter = mismatched closing delimiter: `${delimiter}` ``` panics with ``` thread 'rustc' panicked at 'Encountered errors while formatting message for `parser_mismatched_closing_delimiter` help: Argument `delimiter` exists but was not referenced correctly. Try using `{$delimiter}` instead attr: `None` args: `FluentArgs([("delimiter", String("}"))])` errors: `[ResolverError(Reference(Message { id: "delimiter", attribute: None }))]`', compiler/rustc_errors/src/translation.rs:123:21 ``` fixes #103539
2022-11-11Rollup merge of #104216 - Nilstrieb:dont-ice-invalid-operator-traits, r=estebankDylan DPC-0/+3
Don't ICE on operator trait methods with generic methods Emit a fatal error instead. fixes #104213
2022-11-11Print all labels, even if they have no span. Fall back to main item's span.Oli Scherer-1/+4
2022-11-11Recover from fn ptr tys with generic param listLeón Orell Valerian Liehr-0/+9
2022-11-10Auto merge of #103636 - chenyukang:yukang/fix-103587-sugg-if-let, ↵bors-0/+4
r=jackh276,davidtwco Recover from common if let syntax mistakes/typos Fixes #103587
2022-11-09Display help message when fluent arg was referenced incorrectlyNilstrieb-1/+2
The fluent argument syntax is a little special and easy to get wrong, so we emit a small help message when someone gets it wrong. Example: ``` parser_mismatched_closing_delimiter = mismatched closing delimiter: `${delimiter}` ``` panics with ``` thread 'rustc' panicked at 'Encountered errors while formatting message for `parser_mismatched_closing_delimiter` help: Argument `delimiter` exists but was not referenced correctly. Try using `{$delimiter}` instead attr: `None` args: `FluentArgs([("delimiter", String("}"))])` errors: `[ResolverError(Reference(Message { id: "delimiter", attribute: None }))]`', compiler/rustc_errors/src/translation.rs:123:21 ```
2022-11-09Don't ICE on operator trait methods with generic methodsNilstrieb-0/+3
Emit a fatal error instead.
2022-11-09Use `LayoutError`'s implementation of `IntoDiagnostic`SLASHLogin-3/+0
2022-11-09Simplify existing Diagnostic implementationsSLASHLogin-11/+6
2022-11-09Port diagnostics created by `Handler`SLASHLogin-0/+7
2022-11-09Correct tests to match errorsSLASHLogin-1/+1
2022-11-09Fix CISLASHLogin-1/+1
Add missing 'the' to the error en-US translation
2022-11-09Port `MissingFeatures` and `TargetFeatureDisableOrEnable`SLASHLogin-0/+6
2022-11-09Port `UnknownArchiveKind`SLASHLogin-0/+3
2022-11-09Port `DlltoolFailImportLibrary` and implement `IntoDiagnosticArg` for ↵SLASHLogin-0/+3
`Cow<'a, str>`
2022-11-09Port ErrorCallingDllToolSLASHLogin-0/+3
2022-11-09Import ErrorWritingDEFFileSLASHLogin-0/+3
2022-11-09Port ArchiveBuildFailureSLASHLogin-0/+3
2022-11-09Port SanitizerMemtagRequiresMteSLASHLogin-0/+3
2022-11-09Port LinkageConstOrMutType errorSLASHLogin-0/+3
2022-11-09Port InvalidMinimumAlignmentSLASHLogin-0/+3
2022-11-09Port layout size overflowSLASHLogin-0/+3
2022-11-09FormattingSLASHLogin-1/+1
2022-11-09Port branch protection on aarch64SLASHLogin-0/+3
2022-11-09Port `symbol_already_defined` errorSLASHLogin-0/+3
2022-11-09Port Instrument coverage requires llvm 12 to the new structSLASHLogin-0/+3
2022-11-09Import `error creating import library`SLASHLogin-0/+3
2022-11-09Trailing whitespacesSLASHLogin-3/+3
2022-11-09locales formattingSLASHLogin-1/+1
2022-11-09Port unknown feature diagnostic to the new frameworkSLASHLogin-0/+15
2022-11-09struct error E0505AndyJado-0/+14
2022-11-09var_subdiag refinementAndyJado-0/+15
trim old
2022-11-09remove old var_span_path_onlyAndyJado-0/+24
doc comment
2022-11-08Rollup merge of #103559 - AndyJado:var_span_label, r=davidtwcoManish Goregaokar-0/+12
first move on a nested span_label trying not to be smart this time.
2022-11-08use subdiagnostic for sugesting add letyukang-0/+1
2022-11-08fix #103587, Recover from common if let syntax mistakes/typosyukang-0/+3
2022-11-06Rollup merge of #103012 - chenyukang:fix-102806, r=davidtwco,compiler-errorsMatthias Krüger-0/+3
Suggest use .. to fill in the rest of the fields of Struct Fixes #102806
2022-11-05first move on a nested span_labelAndyJado-0/+12
Apply suggestions from code review Co-authored-by: David Wood <agile.lion3441@fuligin.ink>
2022-11-05Specify that `break` cannot be used outside of loop *or* labeled blockclubby789-2/+8
2022-11-04Rollup merge of #103792 - ↵Matthias Krüger-0/+63
JhonnyBillM:migrate-codegen-ssa-to-diagnostics-structs-pt2, r=davidtwco Migrate `codegen_ssa` to diagnostics structs - [Part 2] Completes migrating `link.rs` in `codegen_ssa` module. _Part 1 - https://github.com/rust-lang/rust/pull/102612_ r? `@davidtwco`
2022-11-04Rollup merge of #103397 - crlf0710:port_dead_code_lint, r=davidtwcoMatthias Krüger-0/+33
Port `dead_code` lints to be translatable. This adds an additional comma to lists with three or more items, to be consistent with list formatters like `icu4x`. r? `@davidtwco`
2022-11-04FIX - Migrate missing errors in link.rsJhonny Bill Mena-0/+4
2022-11-04ADD - ExtractBundledLibsError. Migrated extract_bundled_libs to translatable ↵Jhonny Bill Mena-0/+8
diagnostics
2022-11-04UPDATE - Complete link.rs migration to new diagnostics infraestructureJhonny Bill Mena-0/+51