diff options
| author | Jason Newcomb <jsnewcomb@pm.me> | 2025-09-07 15:08:53 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-09-07 15:08:53 +0000 |
| commit | 847ca731dff5fb7ee00621a1b04c8efb203585bc (patch) | |
| tree | cd7a8b3a80327cf7bc9f179e140b9b11f1d175cd /compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp | |
| parent | 2147bb93167e54407a8da6f6b4a0b2e652a11d20 (diff) | |
| parent | 2459ad66a48d2d693f4f30a599c28bfc36603333 (diff) | |
| download | rust-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 'compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
