about summary refs log tree commit diff
path: root/tests/rustdoc-js-std/parser-errors.js
diff options
context:
space:
mode:
authorJason Newcomb <jsnewcomb@pm.me>2025-09-07 15:08:53 +0000
committerGitHub <noreply@github.com>2025-09-07 15:08:53 +0000
commit847ca731dff5fb7ee00621a1b04c8efb203585bc (patch)
treecd7a8b3a80327cf7bc9f179e140b9b11f1d175cd /tests/rustdoc-js-std/parser-errors.js
parent2147bb93167e54407a8da6f6b4a0b2e652a11d20 (diff)
parent2459ad66a48d2d693f4f30a599c28bfc36603333 (diff)
downloadrust-847ca731dff5fb7ee00621a1b04c8efb203585bc.tar.gz
rust-847ca731dff5fb7ee00621a1b04c8efb203585bc.zip
`let_unit_with_type_underscore`: make early-pass (#15458)
This kind of supersedes
https://github.com/rust-lang/rust-clippy/pull/15386 -- by making the
lint early-pass, we get access to `TyKind::Paren`s that surround the
type ascription. And with that, we can return to the simpler calculation
of `span_to_remove`.

The biggest hurdle was `is_from_proc_macro` -- calling that function
required me to `impl WithSearchPat for rustc_ast::Ty`, i.e.
`ast_ty_search_pat`, which I based on `ty_search_pat`. Since that's a
larger change, I could extract it into a PR of its own.

changelog: none
Diffstat (limited to 'tests/rustdoc-js-std/parser-errors.js')
0 files changed, 0 insertions, 0 deletions