about summary refs log tree commit diff
path: root/tests/coverage/branch/lazy-boolean.coverage
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-05-23 08:30:10 +0000
committerbors <bors@rust-lang.org>2024-05-23 08:30:10 +0000
commit68fe34a4c2a5a864ed212ac2b0151ff7a52bab09 (patch)
tree76b36bb5843d3067a5d1136842d2e3b68c8bb371 /tests/coverage/branch/lazy-boolean.coverage
parentac2708a347508e5b1315e342eb164b7356105ace (diff)
parentdd16cbcb4e633841e32694a822b498f7ea76fb87 (diff)
downloadrust-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/coverage/branch/lazy-boolean.coverage')
0 files changed, 0 insertions, 0 deletions