diff options
| author | bors <bors@rust-lang.org> | 2024-01-29 14:53:54 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-01-29 14:53:54 +0000 |
| commit | 3cd713a9f8aee9651f090806126d633967ffbf68 (patch) | |
| tree | 9d4b4f1f646d970935777273e3adf64a46c592a7 /compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp | |
| parent | e7a3cb7ab09a946e435fe067e2da50c9ddaeeb56 (diff) | |
| parent | b3d53774e7ffcde40b18e18be700f63204ec96bd (diff) | |
| download | rust-3cd713a9f8aee9651f090806126d633967ffbf68.tar.gz rust-3cd713a9f8aee9651f090806126d633967ffbf68.zip | |
Auto merge of #11370 - modelflat:suggest-relpath-in-redundant-closure-for-method-calls, r=blyxyas
[fix] [`redundant_closure_for_method_calls`] Suggest relative paths for local modules Fixes #10854. Currently, `redundant_closure_for_method_calls` suggest incorrect paths when a method defined on a struct within inline mod is referenced (see the description in the aforementioned issue for an example; also see [this playground link](https://play.rust-lang.org/?version=stable&mode=release&edition=2021&gist=f7d3c5b2663c9bd3ab7abdb0bd38ee43) for the current-version output for the test cases added in this PR). It will now try to construct a relative path path to the module and suggest it instead. changelog: [`redundant_closure_for_method_calls`] Fix incorrect path suggestions for types within local modules
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
