diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-12-30 15:09:42 +0100 |
|---|---|---|
| committer | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-12-31 04:33:34 +0100 |
| commit | b6fc87c5b9af5d626e2b85d008c7146a29733536 (patch) | |
| tree | 7362dedf9b529e3a04647734c3fd80b209aeb444 /src/librustc_parse/parser/path.rs | |
| parent | 2091062bf685ec2a64cafdffb72ae8479ff41890 (diff) | |
| download | rust-b6fc87c5b9af5d626e2b85d008c7146a29733536.tar.gz rust-b6fc87c5b9af5d626e2b85d008c7146a29733536.zip | |
de-fatalize some errors
Diffstat (limited to 'src/librustc_parse/parser/path.rs')
| -rw-r--r-- | src/librustc_parse/parser/path.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_parse/parser/path.rs b/src/librustc_parse/parser/path.rs index ef22628a5e0..6f24dfcd027 100644 --- a/src/librustc_parse/parser/path.rs +++ b/src/librustc_parse/parser/path.rs @@ -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 }); |
