Skip to content

Commit

Permalink
Fix tests and fallout
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcrichton committed Aug 23, 2017
1 parent 7c076fc commit 0e9969c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/libsyntax/parse/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1752,7 +1752,7 @@ impl<'a> Parser<'a> {
-> PResult<'a, ast::Path>
{
maybe_whole!(self, NtPath, |path| {
if style == PathStyle::Mod &&
if mode == PathStyle::Mod &&
path.segments.iter().any(|segment| segment.parameters.is_some()) {
self.diagnostic().span_err(path.span, "unexpected generic arguments in path");
}
Expand Down
2 changes: 1 addition & 1 deletion src/test/compile-fail/import-ty-params.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ macro_rules! import {
($p: path) => (use $p;);
}

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

fn main() {}
2 changes: 1 addition & 1 deletion src/test/compile-fail/privacy/restricted/ty-params.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ macro_rules! m {
}

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

fn main() {}

0 comments on commit 0e9969c

Please sign in to comment.