1
Fork 0

Remove Path.global

This commit is contained in:
Noah Lev 2021-08-22 18:11:16 -07:00
parent 6dc08b909b
commit d91946b3f4
4 changed files with 3 additions and 12 deletions

View file

@ -148,7 +148,6 @@ pub(super) fn external_path(
let def_kind = cx.tcx.def_kind(did);
let name = cx.tcx.item_name(did);
Path {
global: false,
res: Res::Def(def_kind, did),
segments: vec![PathSegment {
name,
@ -199,7 +198,7 @@ crate fn strip_path(path: &Path) -> Path {
})
.collect();
Path { global: path.global, res: path.res, segments }
Path { res: path.res, segments }
}
crate fn qpath_to_string(p: &hir::QPath<'_>) -> String {