diff options
| author | Tim Chevalier <chevalier@alum.wellesley.edu> | 2013-01-25 11:57:51 -0800 |
|---|---|---|
| committer | Tim Chevalier <chevalier@alum.wellesley.edu> | 2013-01-25 11:57:51 -0800 |
| commit | 85a34c2898b6a64f319f288e69b8cd433a660a17 (patch) | |
| tree | 901255df7138d69cda1affc99ed1a6da77ef1e1c /src/libsyntax/parse/parser.rs | |
| parent | 4a7e1ab3745f519536ef6e0377427fc41e47f7c6 (diff) | |
| parent | e4337a9defcad3f2a65da285ab78f8ede554f379 (diff) | |
| download | rust-85a34c2898b6a64f319f288e69b8cd433a660a17.tar.gz rust-85a34c2898b6a64f319f288e69b8cd433a660a17.zip | |
Merge pull request #4625 from thestinger/container
more little container improvements
Diffstat (limited to 'src/libsyntax/parse/parser.rs')
| -rw-r--r-- | src/libsyntax/parse/parser.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index 7183b623ef4..0bd08250617 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -2237,7 +2237,7 @@ impl Parser { fn check_expected_item(p: Parser, current_attrs: ~[attribute]) { // If we have attributes then we should have an item - if vec::is_not_empty(current_attrs) { + if !current_attrs.is_empty() { p.fatal(~"expected item after attrs"); } } |
