Mark Rousskov
cc907f80b9
Re-format let-else per rustfmt update
2023-07-12 21:49:27 -04:00
Michael Goulet
af54d584b2
More robust as_ref/as_deref suggestions
2023-06-08 16:30:05 +00:00
Josh Soref
e09d0d2a29
Spelling - compiler
...
* account
* achieved
* advising
* always
* ambiguous
* analysis
* annotations
* appropriate
* build
* candidates
* cascading
* category
* character
* clarification
* compound
* conceptually
* constituent
* consts
* convenience
* corresponds
* debruijn
* debug
* debugable
* debuggable
* deterministic
* discriminant
* display
* documentation
* doesn't
* ellipsis
* erroneous
* evaluability
* evaluate
* evaluation
* explicitly
* fallible
* fulfill
* getting
* has
* highlighting
* illustrative
* imported
* incompatible
* infringing
* initialized
* into
* intrinsic
* introduced
* javascript
* liveness
* metadata
* monomorphization
* nonexistent
* nontrivial
* obligation
* obligations
* offset
* opaque
* opportunities
* opt-in
* outlive
* overlapping
* paragraph
* parentheses
* poisson
* precisely
* predecessors
* predicates
* preexisting
* propagated
* really
* reentrant
* referent
* responsibility
* rustonomicon
* shortcircuit
* simplifiable
* simplifications
* specify
* stabilized
* structurally
* suggestibility
* translatable
* transmuting
* two
* unclosed
* uninhabited
* visibility
* volatile
* workaround
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2023-04-17 16:09:18 -04:00
bors
4087deaccd
Auto merge of #110249 - matthiaskrgr:rollup-7iig04q, r=matthiaskrgr
...
Rollup of 8 pull requests
Successful merges:
- #110153 (Fix typos in compiler)
- #110165 (rustdoc: use CSS `overscroll-behavior` instead of JavaScript)
- #110175 (Symbol cleanups)
- #110203 (Remove `..` from return type notation)
- #110205 (rustdoc: make settings radio and checks thicker, less contrast)
- #110222 (Improve the error message when forwarding a matched fragment to another macro)
- #110237 (Split out a separate feature gate for impl trait in associated types)
- #110241 (tidy: Issue an error when UI test limits are too high)
Failed merges:
- #110218 (Remove `ToRegionVid`)
r? `@ghost`
`@rustbot` modify labels: rollup
2023-04-12 20:01:36 +00:00
Matthias Krüger
331e7c3659
Rollup merge of #110153 - DaniPopes:compiler-typos, r=Nilstrieb
...
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-12 20:56:21 +02:00
Nicholas Nethercote
877777f5bc
Inline and remove DescriptionCtx::from_early_bound_and_free_regions
.
...
It has a single call site, and the code is clearer with all region kinds
handled in one function, instead of splitting the handling across two
functions.
The commit also changes `DescriptionCtx::new` to use a more declarative
style, instead of creating a default `DescriptionCtx` and modifying it,
which I find easier to read.
2023-04-12 08:02:38 +10:00
Nicholas Nethercote
c9b0635679
Inline and remove DescriptionCtx::add_to
.
...
It has a single callsite.
2023-04-12 08:02:32 +10:00
Nicholas Nethercote
955ba37aa5
Remove the unused anon_num_here
error.
2023-04-11 17:25:47 +10:00
DaniPopes
677357d32b
Fix typos in compiler
2023-04-10 22:02:52 +02:00
bors
88fb1b922b
Auto merge of #108698 - IntQuant:issue-100717-infer-6, r=davidtwco
...
Migrating rustc_infer to session diagnostics (part 5)
`@rustbot` label +A-translation
cc https://github.com/rust-lang/rust/issues/100717
2023-04-10 19:38:48 +00:00
Jack Huey
f0edcc8a6f
Remove index from BrAnon
2023-04-06 23:01:40 -04:00
Jack Huey
e4edf00f12
Don't use BrAnon index in diagnostics
2023-04-06 23:01:38 -04:00
IQuant
6a05cd85ad
A more general implementation of IntoDiagnosticArg
for Binder
(Also removes DiagArg
, as it's no longer necessary)
2023-04-04 18:50:07 +03:00
IQuant
fd18d9a584
Renamed TypeErrorAdditionalDiags (was Error0308Subdiags) and ObligationCauseFailureCode (was FailureCodeDiagnostics)
2023-04-04 18:50:07 +03:00
IQuant
1f09bc77c1
Migrate (most of) report_and_explain_type_error
2023-04-04 18:50:02 +03:00
IQuant
b610ce72ce
Migrate TupleTrailingCommaSuggestion
2023-04-04 18:34:50 +03:00
IQuant
d18adb7d56
Migrate SuggestTuplePattern
2023-04-04 18:34:50 +03:00
IQuant
23b8567a78
Migrate SuggestBoxingForReturnImplTrait, Fix typo in infer_fn_consider_casting
2023-04-04 18:34:50 +03:00
IQuant
d56b304bc8
Migrate SuggestAccessingField
2023-04-04 18:34:50 +03:00
IQuant
b36abea285
Migrate SuggestAsRefWhereAppropriate
2023-04-04 18:34:50 +03:00
IQuant
37f55691f4
Ported FunctionPointerSuggestion
2023-04-04 18:34:50 +03:00
Michael Goulet
bdacc8bdd9
Migrate diagnostic
2023-03-03 05:02:34 +00:00
David Wood
d1fcf61117
errors: generate typed identifiers in each crate
...
Instead of loading the Fluent resources for every crate in
`rustc_error_messages`, each crate generates typed identifiers for its
own diagnostics and creates a static which are pulled together in the
`rustc_driver` crate and provided to the diagnostic emitter.
Signed-off-by: David Wood <david.wood@huawei.com>
2023-02-22 09:15:53 +00:00
IQuant
58939b9520
Specify correct spans in suggest_await_on_expect_found
2023-02-14 23:16:29 +03:00
IQuant
5c7afde6f2
Port PlaceholderRelationLfNotSatisfied diagnostic
2023-02-14 18:56:22 +03:00
IQuant
fdbec623c4
Port ConsiderAddingAwait
2023-02-14 18:55:54 +03:00
IQuant
9f06c3d87f
Port SuggestRemoveSemiOrReturnBinding
2023-02-14 18:31:45 +03:00
Nikita Tomashevich
6fa4c7d89c
Make sure tests pass
2023-02-14 18:31:45 +03:00
Nikita Tomashevich
b8feb63345
Port WhereClauseSuggestions
2023-02-14 18:31:45 +03:00
Nikita Tomashevich
8d590dc303
Resolve rebase
2023-02-14 18:31:45 +03:00
Nikita Tomashevich
35dbec338a
Port another diagnostic
2023-02-14 18:31:45 +03:00
Nikita Tomashevich
cb8ea01096
Port RefLongerThanData
2023-02-14 18:31:45 +03:00
Nikita Tomashevich
58e901b6fd
Port "BorrowedTooLong" diagnostic
2023-02-14 18:31:45 +03:00
Nikita Tomashevich
8fc5ba65e1
Port OutlivesContent, OutlivesBound, FUllfillReqLifetime, LfBoundNotSatisfied diagnostics
2023-02-14 18:31:45 +03:00
Esteban Küber
861f451235
Change to ReError(ErrorGuaranteed)
2023-02-09 10:26:49 +00:00
Esteban Küber
30cf7a3f51
Introduce ReError
...
CC #69314
2023-02-09 10:26:49 +00:00
yukang
0368adb262
Fix #107090 , fix missing arguments for fluent
2023-01-18 22:53:24 +08:00
Matthias Krüger
405e48f1ac
Rollup merge of #101936 - IntQuant:issue-100717-infer-4, r=compiler-errors
...
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-07 20:43:18 +01:00
Nilstrieb
9067e4417e
Rename Rptr
to Ref
in AST and HIR
...
The name makes a lot more sense, and `ty::TyKind` calls it `Ref` already
as well.
2022-12-28 18:52:36 +01:00
Nikita Tomashevich
0c50e1f146
eager is the default now
2022-12-28 15:24:18 +03:00
Nikita Tomashevich
62f9962eaf
Made ty_or_sig and trait_path use their actual types instead of String
2022-12-28 14:53:48 +03:00
Nikita Tomashevich
7ecd064bbe
Split infer_explicit_lifetime_required into several diags
2022-12-28 14:53:48 +03:00
Nikita Tomashevich
19b8579803
Address changes of pr 103345
2022-12-28 14:53:48 +03:00
Nikita Tomashevich
40b221814e
Rename subdiagnostic fields that do not need to be unique now
2022-12-28 14:53:48 +03:00
Nikita Tomashevich
eb7ce1703b
Use eager translation
2022-12-28 14:53:47 +03:00
Nikita Tomashevich
71d24da665
Split into several messages
2022-12-28 14:53:47 +03:00
Nikita Tomashevich
6c19c08140
More descriptive names for ActualImplExplNotes variants
2022-12-28 14:53:47 +03:00
Nikita Tomashevich
57fdd196ae
Rebase and fix
2022-12-28 14:53:47 +03:00
Nikita Tomashevich
0634b0119c
Partial work on static_impl_trait.rs
2022-12-28 14:53:47 +03:00
Nikita Tomashevich
3935a81d47
Migrate trait_impl_difference.rs
2022-12-28 14:53:47 +03:00