about summary refs log tree commit diff
path: root/compiler/rustc_error_messages
AgeCommit message (Collapse)AuthorLines
2023-01-11Move autoderef to rustc_hir_analysisMichael Goulet-4/+4
2023-01-11Rollup merge of #106622 - estebank:issue-68972, r=davidtwcoMatthias Krüger-0/+4
Detect out of bounds range pattern value Fix #68972.
2023-01-11parser: recover from where clauses placed before tuple struct bodiesLeón Orell Valerian Liehr-0/+6
2023-01-11Detect struct literal needing parenthesesEsteban Küber-0/+4
Fix #82051.
2023-01-11Detect out of bounds range pattern valueEsteban Küber-0/+4
Fix #68972.
2023-01-09migrate: `deref_into_dyn_supertrait.rs`Rejyr-0/+3
2023-01-09migrate: rest of `builtin.rs` without `builtin_asm_labels`Rejyr-2/+10
2023-01-09refactor: refactor to derive for some lints.Rejyr-1/+3
2023-01-09migrate: `for_loops_over_fallibles.rs`Rejyr-0/+7
2023-01-09migrate(wip): `builtin.rs`Rejyr-0/+7
2023-01-09migrate: `internal.rs`Rejyr-0/+2
2023-01-09migrate: `let_underscore.rs`Rejyr-0/+12
fix: NonBindingLetSub
2023-01-09migrate: `levels.rs`Rejyr-0/+12
2023-01-09add: `emit{,_spanned}_lint` for `LintLevelsBuilder`Rejyr-0/+4
add: `emit_spanned_lint` and `emit_lint` for `LintLevelsBuilder` migrate: `DeprecatedLintName`
2023-01-09Remove backwards compat for LLVM 12 coverage formatArpad Borsos-3/+0
2023-01-08Mention signature rather than fn pointers when comparing impl/trait methodsMichael Goulet-2/+2
2023-01-07Rollup merge of #104543 - ↵Matthias Krüger-0/+99
JhonnyBillM:migrate-codegen-ssa-to-diagnostics-structs-pt3, r=davidtwco Migrate `codegen_ssa` to diagnostics structs - [Part 3] Completes migrating `codegen_ssa` module except 2 outstanding errors that depend on other crates: 1. [`rustc_middle::mir::interpret::InterpError`](https://github.com/rust-lang/rust/blob/b6097f2e1b2ca62e188ba53cf43bd66b06b36915/compiler/rustc_middle/src/mir/interpret/error.rs#L475): I saw `rustc_middle` is unassigned, I am open to take this work. 2. `codegen_llvm`'s use of `fn span_invalid_monomorphization_error`, which I started to replace in the [last commit](https://github.com/rust-lang/rust/commit/9a31b3cdda78a2c0891828254fe9886e0a1cfd16) of this PR, but would like to know the team's preference on how we should keep replacing the other macros: 2.1. Update macros to expect a `Diagnostic` 2.2. Remove macros and expand the code on each use. See [some examples of the different options in this experimental commit](https://github.com/JhonnyBillM/rust/commit/64aee83e80857dcfa450f0c6e31d5f29c6d577e6) _Part 2 - https://github.com/rust-lang/rust/pull/103792_ r? ``@davidtwco`` Cc ``@compiler-errors``
2023-01-07Rollup merge of #101936 - IntQuant:issue-100717-infer-4, r=compiler-errorsMatthias Krüger-0/+139
Migrating rustc_infer to session diagnostics (part 3) ``@rustbot`` label +A-translation r? rust-lang/diagnostics cc https://github.com/rust-lang/rust/issues/100717 Seems like a part of static_impl_trait.rs emits suggestions in a loop, and note.rs needs to have two instances of the same subdiagnostic, so these will need to wait until we have eager translation/list support. Other than that, there is only error_reporting/mod.rs left to migrate.
2023-01-04Auto merge of #106224 - bjorn3:staticlib_fixes, r=wesleywiserbors-2/+0
Small fixes for --crate-type staticlib The first commit doesn't have an effect until we start translating error messages. The second commit fixes potential linker errors when combining `--crate-type staticlib` with another crate type and I think `-Cprefer-dynamic`.
2023-01-04Rollup merge of #106361 - clubby789:int-literal-too-large, r=estebankMatthias Krüger-0/+1
Note maximum integer literal for `IntLiteralTooLarge` Closes #105908 `@rustbot` label +A-diagnostics
2023-01-03Auto merge of #105609 - bjorn3:shrink_rustc_dev, r=jyn514bors-0/+5
Only include metadata for non-dynamic libraries in rustc-dev The actual object code should be linked from librustc_driver.so, which is still included in rustc-dev. This saves on download time and disk usage. Fixes https://github.com/rust-lang/rust/issues/103538
2023-01-02Print correct base for too-large literalsclubby789-1/+1
Also update tests
2023-01-02Note maximum integer literal for `IntLiteralTooLarge`clubby789-0/+1
2022-12-31Add help for the error message when missing rustc_driverbjorn3-0/+5
2022-12-31refactor: merge `E0465` into `E0464`Ezra Shaw-5/+1
2022-12-28Don't translate --print native-static-libs outputbjorn3-2/+0
This breaks tools that depend on the prefix
2022-12-28Split infer_explicit_lifetime_required into several diagsNikita Tomashevich-8/+7
2022-12-28Rename subdiagnostic fields that do not need to be unique nowNikita Tomashevich-3/+3
2022-12-28Use eager translationNikita Tomashevich-1/+1
2022-12-28Split into several messagesNikita Tomashevich-16/+55
2022-12-28More descriptive names for ActualImplExplNotes variantsNikita Tomashevich-2/+2
2022-12-28Partial work on static_impl_trait.rsNikita Tomashevich-0/+52
2022-12-28Migrate trait_impl_difference.rsNikita Tomashevich-0/+10
2022-12-28Migrate placeholder_error.rsNikita Tomashevich-0/+28
2022-12-28Migrate named_anon_conflict.rsNikita Tomashevich-0/+11
2022-12-27DELETE - fn span_invalid_monomorphization_error and localize intrinsics macrosJhonny Bill Mena-0/+66
2022-12-27ADD - create and emit Bug support for DiagnosticsJhonny Bill Mena-0/+2
UPDATE - migrate constant span_bug to translatable diagnostic.
2022-12-27UPDATE - migrate fn simd_simple_float_intrinsic error messagesJhonny Bill Mena-0/+6
2022-12-27[WIP] UPDATE - migrate intrinsic.rs to new diagnostic infrastructureJhonny Bill Mena-0/+14
WIP - replacing span_invalid_monomorphization_error function. Still in progress due to its use in codegen_llvm inside macros
2022-12-27UPDATE - migrate constant.rs to new diagnostics infrastructureJhonny Bill Mena-0/+4
2022-12-27UPDATE - migrate base.rs to new diagnostics infrastructureJhonny Bill Mena-0/+7
2022-12-27Recover `fn` keyword as `Fn` trait in boundsMichael Goulet-0/+3
2022-12-24Rollup merge of #105975 - jeremystucki:rustc-remove-needless-lifetimes, r=eholkMatthias Krüger-3/+1
rustc: Remove needless lifetimes
2022-12-23Rollup merge of #106057 - jyn514:trimmed-def-paths-ice, r=compiler-errorsMatthias Krüger-1/+1
Give a more helpful error for "trimmed_def_paths constructed" cc https://rust-lang.zulipchat.com/#narrow/stream/122651-general/topic/ice.20debugging/near/315928294, https://github.com/rust-lang/rust/pull/106056 `@mejrs` do you think this would have helped you figure out the problem faster?
2022-12-22Give a more helpful error for "trimmed_def_paths construted"Joshua Nelson-1/+1
2022-12-21Improve code based on feedback.Bryan Garza-1/+1
This patch improves the readability of some of the code by using if-let-chains. Also, make use of the `add_feature_diagnostics` function.
2022-12-21update wording of lintBryan Garza-1/+1
2022-12-21Update code based on PR commentsBryan Garza-1/+2
This patch does the following: - Refactor some repeated lines into a single one - Split the `ungated_async_fn_caller` lint into multiple lines, and make one of those lines only print out on nightly - Use test revisions instead of copying an existing test
2022-12-21Switch `#[track_caller]` back to a no-op unless feature gate is enabledBryan Garza-0/+2
This patch fixes a regression, in which `#[track_caller]`, which was previously a no-op, was changed to actually turn on the behavior. This should instead only happen behind the `closure_track_caller` feature gate. Also, add a warning for the user to understand how their code will compile depending on the feature gate being turned on or not. Fixes #104588
2022-12-20rustc: Remove needless lifetimesJeremy Stucki-3/+1