Let qpath contain NtTy: <$:ty as $:ty>::rest
This commit is contained in:
parent
558ddee2ce
commit
0cbb00f898
1 changed files with 10 additions and 0 deletions
|
@ -155,6 +155,16 @@ impl<'a> Parser<'a> {
|
||||||
path
|
path
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if let token::Interpolated(nt) = &self.token.kind {
|
||||||
|
if let token::NtTy(ty) = &**nt {
|
||||||
|
if let ast::TyKind::Path(None, path) = &ty.kind {
|
||||||
|
let path = path.clone();
|
||||||
|
self.bump();
|
||||||
|
return Ok(path);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
let lo = self.token.span;
|
let lo = self.token.span;
|
||||||
let mut segments = Vec::new();
|
let mut segments = Vec::new();
|
||||||
let mod_sep_ctxt = self.token.span.ctxt();
|
let mod_sep_ctxt = self.token.span.ctxt();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue