1
Fork 0

de-fatalize some errors

This commit is contained in:
Mazdak Farrokhzad 2019-12-30 15:09:42 +01:00
parent 2091062bf6
commit b6fc87c5b9
7 changed files with 17 additions and 9 deletions

View file

@ -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
});