diff options
| author | Erick Tryzelaar <erick.tryzelaar@gmail.com> | 2013-09-09 19:32:32 -0700 |
|---|---|---|
| committer | Erick Tryzelaar <erick.tryzelaar@gmail.com> | 2013-09-12 18:54:12 -0700 |
| commit | e6c11313c88574aa2500df2f76c5534fbc2e0512 (patch) | |
| tree | 11918e2476ef68448fe58d160e91f290d0a82aff /src/libsyntax/parse | |
| parent | f1374a7044d844fb1f89b651bf4c628ac32ed48a (diff) | |
| download | rust-e6c11313c88574aa2500df2f76c5534fbc2e0512.tar.gz rust-e6c11313c88574aa2500df2f76c5534fbc2e0512.zip | |
std: Add Option.{result_or_default,or_default} that uses Default
Diffstat (limited to 'src/libsyntax/parse')
| -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 8725a0426f7..6a15641430f 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -3461,7 +3461,7 @@ impl Parser { let ident = self.parse_ident(); let opt_bounds = self.parse_optional_ty_param_bounds(); // For typarams we don't care about the difference b/w "<T>" and "<T:>". - let bounds = opt_bounds.unwrap_or(opt_vec::Empty); + let bounds = opt_bounds.unwrap_or_default(); ast::TyParam { ident: ident, id: ast::DUMMY_NODE_ID, bounds: bounds } } |
