Gate some recovery behind a flag
Mainly in `expr.rs`
This commit is contained in:
parent
5237c4d83d
commit
29e50e8d35
3 changed files with 32 additions and 6 deletions
|
@ -104,6 +104,7 @@ macro_rules! maybe_whole {
|
|||
macro_rules! maybe_recover_from_interpolated_ty_qpath {
|
||||
($self: expr, $allow_qpath_recovery: expr) => {
|
||||
if $allow_qpath_recovery
|
||||
&& $self.may_recover()
|
||||
&& $self.look_ahead(1, |t| t == &token::ModSep)
|
||||
&& let token::Interpolated(nt) = &$self.token.kind
|
||||
&& let token::NtTy(ty) = &**nt
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue