auto merge of #14483 : ahmedcharles/rust/patbox, r=alexcrichton
This commit is contained in:
commit
729ee20338
14 changed files with 20 additions and 20 deletions
|
|
@ -1721,7 +1721,7 @@ fn name_from_pat(p: &ast::Pat) -> String {
|
|||
PatStruct(..) => fail!("tried to get argument name from pat_struct, \
|
||||
which is not allowed in function arguments"),
|
||||
PatTup(..) => "(tuple arg NYI)".to_string(),
|
||||
PatUniq(p) => name_from_pat(p),
|
||||
PatBox(p) => name_from_pat(p),
|
||||
PatRegion(p) => name_from_pat(p),
|
||||
PatLit(..) => {
|
||||
warn!("tried to get argument name from PatLit, \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue