Rejyr
ca7df9a2a9
migrate: for_loops_over_fallibles.rs
2023-01-09 17:07:25 -05:00
Rejyr
3c1a1f3643
migrate: expect.rs
2023-01-09 17:07:25 -05:00
Rejyr
6ffecd2059
migrate(wip): builtin.rs
2023-01-09 17:07:25 -05:00
Rejyr
0b19227524
migrate: internal.rs
2023-01-09 17:07:25 -05:00
Rejyr
5ffaae758e
migrate: ImproperCTypes
2023-01-09 17:07:25 -05:00
Rejyr
e610047940
migrate: let_underscore.rs
...
fix: NonBindingLetSub
2023-01-09 17:07:25 -05:00
Rejyr
80df25e160
migrate: levels.rs
2023-01-09 17:07:25 -05:00
Rejyr
ab66ea61cf
add: emit{,_spanned}_lint
for LintLevelsBuilder
...
add: `emit_spanned_lint` and `emit_lint` for `LintLevelsBuilder`
migrate: `DeprecatedLintName`
2023-01-09 17:07:25 -05:00
Rejyr
f9289c35fb
refactor: comment about lint location
2023-01-09 17:07:25 -05:00
Rejyr
a0614ec2c3
fix: merge conflict
2023-01-09 17:07:25 -05:00
Rejyr
dc00aa3114
update: lints.rs
for renamed traits
...
update: `lints.rs` for renamed `SessionSubdiagnostic` and `AddSubdiagnostic`
fix: NonSnakeCaseDiagSub
fix: OverflowingBinHexSign
2023-01-09 17:07:25 -05:00
Rejyr
e3bb2ebfbf
add: lints
for errors.rs
2023-01-09 17:07:25 -05:00
Rejyr
8b897bbce6
migrate: early.rs
and enum_intrinsics_non_enums.rs
2023-01-09 17:07:25 -05:00
Rejyr
c63ba52562
migrate: array_into_iter.rs
2023-01-09 17:07:25 -05:00
Rejyr
95d3e0cb78
migrate: methods.rs
2023-01-09 17:07:25 -05:00
Rejyr
3f69c1b523
migrate: non_ascii_idents.rs
2023-01-09 17:07:25 -05:00
Rejyr
384010b9f4
migrate: non_fmt_panic.rs
2023-01-09 17:07:25 -05:00
Rejyr
a9bbe31519
migrate: nonstandard_style.rs
2023-01-09 17:07:25 -05:00
Rejyr
56fc66d196
migrate: noop_method_call.rs
2023-01-09 17:07:25 -05:00
Rejyr
6fb3a38f9b
migrate: pass_by_value.rs
2023-01-09 17:07:25 -05:00
Rejyr
c3a6801f8e
migrate: redundant_semicolon.rs
2023-01-09 17:07:25 -05:00
Rejyr
a42afa0444
migrate: traits.rs
2023-01-09 17:07:25 -05:00
Rejyr
e5ae9d019c
migrate: unused.rs
2023-01-09 17:07:25 -05:00
Rejyr
d44ccaa56f
migrate: types.rs
2023-01-09 17:07:25 -05:00
Rejyr
5a90537b62
add: lints.rs
...
add: `lints.rs`
refactor: move `InvalidAtomicOrderingDiag` to `lints.rs`
2023-01-09 17:07:25 -05:00
Michael Goulet
05c1ac0215
Collect backtraces for delayed span-bugs too
2023-01-09 22:04:00 +00:00
bors
3254bef9a7
Auto merge of #105855 - arcnmx:rust-analyzer-2022-12, r=lnicola
...
⬆️ rust-analyzer
Updates rust-analyzer to 368e0bb32f
This is a continuation/replacement of #105834 , close that if this is chosen instead.
2023-01-09 21:14:32 +00:00
Robert Bastian
53c12e085a
hash xor peq
2023-01-09 21:29:42 +01:00
arcnmx
06e705f13d
⬆️ rust-analyzer
...
Merge commit '368e0bb32f1178cf162c2ce5f7e10b7ae211eb26'
2023-01-09 10:36:22 -08:00
Tyler Mandry
9c23629158
Add issue number to FIXMEs
2023-01-09 13:23:50 -05:00
bors
3020239de9
Auto merge of #106637 - fee1-dead-contrib:rollup-ticvmsd, r=fee1-dead
...
Rollup of 10 pull requests
Successful merges:
- #105292 (Change a commit_if_ok call to probe)
- #105655 (Remove invalid case for mutable borrow suggestion)
- #106047 (Fix ui constant tests for big-endian platforms)
- #106061 (Enable Shadow Call Stack for Fuchsia on AArch64)
- #106164 (Move `check_region_obligations_and_report_errors` to `TypeErrCtxt`)
- #106291 (Fix incorrect suggestion for extra `&` in pattern)
- #106389 (Simplify some canonical type alias names)
- #106468 (Use FxIndexSet when updating obligation causes in `adjust_fulfillment_errors_for_expr_obligation`)
- #106549 (Use fmt named parameters in rustc_borrowck)
- #106614 (error-code docs improvements (No. 2))
Failed merges:
r? `@ghost`
`@rustbot` modify labels: rollup
2023-01-09 18:20:00 +00:00
Michael Goulet
f769d34291
Assert defining anchor is set in take_opaque_types
2023-01-09 18:14:28 +00:00
Nilstrieb
a4b859e35f
Delete unused polymorphization code
2023-01-09 19:10:00 +01:00
Nilstrieb
2855794257
Use newtype for unused generic parameters
2023-01-09 19:10:00 +01:00
Michael Howell
1c766d03a7
rustdoc: merge common CSS for a
2023-01-09 11:09:19 -07:00
Michael Goulet
1d66a675bb
review comment
2023-01-09 18:07:34 +00:00
Michael Goulet
4f15034b55
hack: don't normalize xform_ret_ty for trait/object candidates unless needed
2023-01-09 17:48:22 +00:00
Michael Goulet
2600d6245b
Add lookup_probe_for_diagnostic
2023-01-09 17:48:22 +00:00
Michael Goulet
38491c6579
Consider method return type for various method suggestions
2023-01-09 17:48:22 +00:00
Michael Goulet
5132e13f13
No need to take opaques in check_type_bounds
2023-01-09 17:27:42 +00:00
Michael Goulet
7ee6cebd8a
Unconditionally normalize xform_ret_ty in probe
2023-01-09 17:26:00 +00:00
Michael Goulet
36ee66c6c5
Check impl's where clauses in consider_impl_candidate in experimental solver
2023-01-09 17:24:36 +00:00
David Koloski
42aa075310
Accept old spelling of Fuchsia target triples
...
Because the old spelling is widely used, some projects may need time to
migrate their uses to the new triple spelling. The old spelling may
eventually be removed altogether.
2023-01-09 12:18:12 -05:00
bors
368e0bb32f
Auto merge of #13848 - ian-h-chamberlain:feature/color-compiler-diagnostics, r=ian-h-chamberlain
...
Colorize `cargo check` diagnostics in VSCode via text decorations
Fixes #13648
![colored-rustc-diagnostics](https://user-images.githubusercontent.com/11131775/209479884-10eef8ca-37b4-4aae-88f7-3591ac01b25e.gif )
Use ANSI control characters to display text decorations matching the VScode terminal theme, and strip them out when providing text content for rustc diagnostics.
This adds the small [`anser`](https://www.npmjs.com/package/anser ) library (MIT license, no dependencies) to parse the control codes, and it also supports HTML output so it should be fairly easy to switch to a rendered HTML/webview implementation in the future
I also updated the default `cargo check` command to use the rendered ANSI diagnostics, although I'm not sure if it makes sense to put this kind of thing behind a feature flag, or whether it might have any issues on Windows (as I believe ANSI codes are not used for colorization there)?
2023-01-09 17:07:35 +00:00
Ian Chamberlain
283dfc45dd
Add docs for colorDiagnosticOutput
capability
2023-01-09 11:50:37 -05:00
Ian Chamberlain
65cf7abbe2
Use experimental capability to enable color codes
2023-01-09 11:50:35 -05:00
Ian Chamberlain
738ce83d85
Strip colors before matching preview diagnostics
2023-01-09 11:49:59 -05:00
Ian Chamberlain
c3e4bc3136
Update docs to include note about ANSI diagnostics
2023-01-09 11:49:58 -05:00
Ian Chamberlain
40207906f4
Default to use colored ANSI diagnostics
2023-01-09 11:46:29 -05:00
Ian Chamberlain
1b8141b54c
Parse + decorate rendered ANSI cargo output
...
Use ANSI control characters to display text decorations matching the
VScode terminal theme, and strip them out when providing text content
for rustc diagnostics.
This adds the small `anser` library to parse the control codes, and it
also supports HTML output so it should be fairly easy to switch to a
rendered HTML/webview implementation if desired.
2023-01-09 11:46:29 -05:00