about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/attributes.rs
diff options
context:
space:
mode:
authorJoshua Nelson <jyn514@gmail.com>2020-11-14 01:51:05 -0500
committerJoshua Nelson <jyn514@gmail.com>2020-11-17 15:13:25 -0500
commit6c28ffbef344598092141c93c25a950502999018 (patch)
tree6f857e54c78b9fd9d703213fbff0bb1b502a042c /compiler/rustc_codegen_llvm/src/attributes.rs
parentc919f490bbcd2b29b74016101f7ec71aaa24bdbb (diff)
downloadrust-6c28ffbef344598092141c93c25a950502999018.tar.gz
rust-6c28ffbef344598092141c93c25a950502999018.zip
Use DefPath for clean::Visibility, not clean::Path
Visibility needs much less information than a full path, since modules
can never have generics. This allows constructing a Visibility from only
a DefId.

Note that this means that paths are now normalized to their DefPath.
In other words, `pub(self)` or `pub(super)` now always shows `pub(in
path)` instead of preserving the original text.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/attributes.rs')
0 files changed, 0 insertions, 0 deletions