bors e3e22c67e0 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();
    }
}
```
2024-05-23 08:30:10 +00:00
..
2024-05-22 21:57:44 +02:00
2024-04-01 17:55:56 +02:00
2024-04-06 13:12:07 +02:00
2024-05-19 11:20:26 +03:00
2024-05-15 18:55:27 +02:00
2024-05-15 18:55:27 +02:00
2024-04-01 17:55:56 +02:00
2024-04-18 11:00:22 +02:00
2024-05-14 11:21:04 +02:00