about summary refs log tree commit diff
path: root/src/test/rustdoc-ui/coverage/json.rs
diff options
context:
space:
mode:
authorDavid Wood <david@davidtw.co>2020-08-04 14:34:24 +0100
committerDavid Wood <david@davidtw.co>2020-08-16 15:42:25 +0100
commit762137e2121ac8998b5bb916453eb24ec6523450 (patch)
treef4ab40e388ecea1038ef3c5bac0bf3b97809dc33 /src/test/rustdoc-ui/coverage/json.rs
parent7dee5f824dad65d9edffb4de22aad248bd83faf9 (diff)
downloadrust-762137e2121ac8998b5bb916453eb24ec6523450.tar.gz
rust-762137e2121ac8998b5bb916453eb24ec6523450.zip
hir: introduce `QPath::LangItem`
This commit introduces `QPath::LangItem` to the HIR and uses it in AST
lowering instead of constructing a `hir::Path` from a slice of symbols.

This might be better for performance, but is also much cleaner as the
previous approach is fragile. In addition, it resolves a bug (#61019)
where an extern crate imported as "std" would result in the paths
created during AST lowering being resolved incorrectly (or not at all).

Co-authored-by: Matthew Jasper <mjjasper1@gmail.com>
Signed-off-by: David Wood <david@davidtw.co>
Diffstat (limited to 'src/test/rustdoc-ui/coverage/json.rs')
0 files changed, 0 insertions, 0 deletions