Skip to content

Commit 0e9969c

Browse files
committed
Fix tests and fallout
1 parent 7c076fc commit 0e9969c

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/libsyntax/parse/parser.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1752,7 +1752,7 @@ impl<'a> Parser<'a> {
17521752
-> PResult<'a, ast::Path>
17531753
{
17541754
maybe_whole!(self, NtPath, |path| {
1755-
if style == PathStyle::Mod &&
1755+
if mode == PathStyle::Mod &&
17561756
path.segments.iter().any(|segment| segment.parameters.is_some()) {
17571757
self.diagnostic().span_err(path.span, "unexpected generic arguments in path");
17581758
}

src/test/compile-fail/import-ty-params.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@ macro_rules! import {
2020
($p: path) => (use $p;);
2121
}
2222

23-
import! { a::b::c::S<u8> } //~ERROR type or lifetime parameters in import path
23+
import! { a::b::c::S<u8> } //~ERROR unexpected generic arguments in path
2424

2525
fn main() {}

src/test/compile-fail/privacy/restricted/ty-params.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ macro_rules! m {
1313
}
1414

1515
struct S<T>(T);
16-
m!{ S<u8> } //~ ERROR type or lifetime parameters in visibility path
16+
m!{ S<u8> } //~ ERROR unexpected generic arguments in path
1717
//~^ ERROR expected module, found struct `S`
1818

1919
fn main() {}

0 commit comments

Comments
 (0)