diff options
| author | modelflat <zhykreg@gmail.com> | 2024-03-27 12:58:26 +0100 |
|---|---|---|
| committer | modelflat <zhykreg@gmail.com> | 2024-04-09 09:47:54 +0200 |
| commit | 3705073a71648cff81bdb3eadeeacacc8d65123c (patch) | |
| tree | aaffe5e73f0def5f0eb9c4c7f6688f2c63a04fa8 /compiler/rustc_mir_transform/src/coverage/mod.rs | |
| parent | 3787a0ccb8e69a59ce7474cdff6ee3e39902f568 (diff) | |
| download | rust-3705073a71648cff81bdb3eadeeacacc8d65123c.tar.gz rust-3705073a71648cff81bdb3eadeeacacc8d65123c.zip | |
Recognize common prefixes when checking for items with module name suffix
Fixes #12544. - don't report an item name if it consists only of a prefix from `allowed-prefixes` list and a module name (e.g. `AsFoo` in module `foo`). - configured by `allowed-prefixes` config entry - prefixes allowed by default: [`to`, `from`, `into`, `as`, `try_into`, `try_from`] - update docs
Diffstat (limited to 'compiler/rustc_mir_transform/src/coverage/mod.rs')
0 files changed, 0 insertions, 0 deletions
