diff options
| author | bors <bors@rust-lang.org> | 2023-07-22 15:02:15 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-07-22 15:02:15 +0000 |
| commit | b17be2720a2752f210796809355461d71770401e (patch) | |
| tree | 7cc82f1e4042c7cd7da0ec25b99a5bdc506db6df /compiler/rustc_codegen_llvm/src/llvm/mod.rs | |
| parent | a317fa865cc24817a417b126b4f1c8a04e962302 (diff) | |
| parent | 65823b0c744be7e45005a3a98a488814ca53e622 (diff) | |
| download | rust-b17be2720a2752f210796809355461d71770401e.tar.gz rust-b17be2720a2752f210796809355461d71770401e.zip | |
Auto merge of #15277 - 1Kinoti:pub-assist, r=lowr
limit `change_visibility` assist to applicable items
this pr limits the `change_visibility` assist to applicable items. top level items in this context means items that are not nested within `fn`s or `trait`s.
now
```rs
fn foo {
// assists on this `struct` keyword won't include `change_visibility`
struct Bar {}
}
trait Foo {
// same with the `fn` here
fn bar();
}
```
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/llvm/mod.rs')
0 files changed, 0 insertions, 0 deletions
