about summary refs log tree commit diff
path: root/tests/codegen/patchable-function-entry/patchable-function-entry-both-flags.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-02-18 13:56:07 +0000
committerbors <bors@rust-lang.org>2024-02-18 13:56:07 +0000
commit1c10aa4735f2edcc416cc104cc4b7ebff3f95ecc (patch)
tree80a2455b5180b1df1123365646a877decdaee0d9 /tests/codegen/patchable-function-entry/patchable-function-entry-both-flags.rs
parent6b17dba68cff05978c10eb2600c16d4450ad77f4 (diff)
parent5db049406a8315ca1a1db1b60d738082458d95d4 (diff)
downloadrust-1c10aa4735f2edcc416cc104cc4b7ebff3f95ecc.tar.gz
rust-1c10aa4735f2edcc416cc104cc4b7ebff3f95ecc.zip
Auto merge of #117772 - surechen:for_117448, r=petrochenkov
Tracking import use types for more accurate redundant import checking

fixes #117448

By tracking import use types to check whether it is scope uses or the other situations like module-relative uses,  we can do more accurate redundant import checking.

For example unnecessary imports in std::prelude that can be eliminated:

```rust
use std::option::Option::Some;//~ WARNING the item `Some` is imported redundantly
use std::option::Option::None; //~ WARNING the item `None` is imported redundantly
```
Diffstat (limited to 'tests/codegen/patchable-function-entry/patchable-function-entry-both-flags.rs')
0 files changed, 0 insertions, 0 deletions