auto merge of #15454 : jakub-/rust/15453, r=huonw
I forget we now have byte string literals.
This commit is contained in:
commit
4c0cab7f2f
2 changed files with 8 additions and 0 deletions
|
|
@ -563,6 +563,7 @@ pub fn constructor_arity(cx: &MatchCheckCtxt, ctor: &Constructor, ty: ty::t) ->
|
|||
ty::ty_rptr(_, ty::mt { ty: ty, .. }) => match ty::get(ty).sty {
|
||||
ty::ty_vec(_, None) => match *ctor {
|
||||
Slice(length) => length,
|
||||
ConstantValue(_) => 0u,
|
||||
_ => unreachable!()
|
||||
},
|
||||
ty::ty_str => 0u,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue