about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/llvm/mod.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-07-22 15:02:15 +0000
committerbors <bors@rust-lang.org>2023-07-22 15:02:15 +0000
commitb17be2720a2752f210796809355461d71770401e (patch)
tree7cc82f1e4042c7cd7da0ec25b99a5bdc506db6df /compiler/rustc_codegen_llvm/src/llvm/mod.rs
parenta317fa865cc24817a417b126b4f1c8a04e962302 (diff)
parent65823b0c744be7e45005a3a98a488814ca53e622 (diff)
downloadrust-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