rust/src/libsyntax/parse
Zack M. Davis 8531d58104 prefer if let to match with None => () arm in some places
Casual grepping revealed some places in the codebase (some of which
antedated `if let`'s December 2014 stabilization in c200ae5a) where we
were using a match with a `None => ()` arm where (in the present
author's opinion) an `if let` conditional would be more readable. (Other
places where matching to the unit value did seem to better express the
intent were left alone.)

It's likely that we don't care about making such trivial,
non-functional, sheerly æsthetic changes.

But if we do, this is a patch.
2016-06-15 08:13:10 -07:00
..
lexer Auto merge of #33128 - xen0n:more-confusing-unicode-chars, r=nagisa 2016-05-05 08:50:23 -07:00
attr.rs parser: show a helpful note on unexpected inner comment 2016-05-03 17:53:23 +02:00
classify.rs [breaking-change] don't pub export ast::Stmt_ variants 2016-02-11 12:34:48 +01:00
common.rs Use associated functions for libsyntax SepSeq constructors. 2016-02-22 23:24:42 -05:00
mod.rs replace fileline_{help,note} with {help,note} 2016-05-02 11:49:23 -04:00
obsolete.rs use structured errors 2015-12-30 14:27:59 +13:00
parser.rs prefer if let to match with None => () arm in some places 2016-06-15 08:13:10 -07:00
token.rs allow InternedString to be compared to &str directly 2016-04-26 16:27:10 +02:00