diff options
| author | bors <bors@rust-lang.org> | 2024-05-23 08:30:10 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-05-23 08:30:10 +0000 |
| commit | 68fe34a4c2a5a864ed212ac2b0151ff7a52bab09 (patch) | |
| tree | 76b36bb5843d3067a5d1136842d2e3b68c8bb371 /tests/codegen/src-hash-algorithm/src-hash-algorithm-sha256.rs | |
| parent | ac2708a347508e5b1315e342eb164b7356105ace (diff) | |
| parent | dd16cbcb4e633841e32694a822b498f7ea76fb87 (diff) | |
| download | rust-68fe34a4c2a5a864ed212ac2b0151ff7a52bab09.tar.gz rust-68fe34a4c2a5a864ed212ac2b0151ff7a52bab09.zip | |
Auto merge of #17140 - harrysarson:harry-unused-self, r=Veykril
handle {self} when removing unused imports
Fixes #17139
On master
```rs
mod inner {
pub struct X();
pub struct Y();
}
mod z {
use super::inner::{self, X}$0;
fn f() {
let y = inner::Y();
}
}
```
becomes
```rs
mod inner {
pub struct X();
pub struct Y();
}
mod z {
use super::inner:self;
fn f() {
let y = inner::Y();
}
}
```
with this fix it instead becomes
```
```rs
mod inner {
pub struct X();
pub struct Y();
}
mod z {
use super::inner;
fn f() {
let y = inner::Y();
}
}
```
Diffstat (limited to 'tests/codegen/src-hash-algorithm/src-hash-algorithm-sha256.rs')
0 files changed, 0 insertions, 0 deletions
