de-fatalize some errors
This commit is contained in:
parent
2091062bf6
commit
b6fc87c5b9
7 changed files with 17 additions and 9 deletions
|
@ -93,7 +93,7 @@ impl<'a> Parser<'a> {
|
|||
maybe_whole!(self, NtPath, |path| {
|
||||
if style == PathStyle::Mod && path.segments.iter().any(|segment| segment.args.is_some())
|
||||
{
|
||||
self.diagnostic().span_err(path.span, "unexpected generic arguments in path");
|
||||
self.struct_span_err(path.span, "unexpected generic arguments in path").emit();
|
||||
}
|
||||
path
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue