]> git.lizzy.rs Git - rust.git/commit
Auto merge of #22838 - petrochenkov:bytelit, r=alexcrichton
authorbors <bors@rust-lang.org>
Wed, 18 Mar 2015 08:27:22 +0000 (08:27 +0000)
committerbors <bors@rust-lang.org>
Wed, 18 Mar 2015 08:27:22 +0000 (08:27 +0000)
commit46f649c479ce40f3b4590590dda6c2895e8d60f6
tree1c775c64a8d726183113d966c2b01ae6d60c6289
parentf9a7bc58f89b9b15eb1269f0c0d68baf5fc7e966
parentdccd17d23e6e67e410e41f97ba9feb7f71717627
Auto merge of #22838 - petrochenkov:bytelit, r=alexcrichton

This patch changes the type of byte string literals from `&[u8]` to `&[u8; N]`.
It also implements some necessary traits (`IntoBytes`, `Seek`, `Read`, `BufRead`) for fixed-size arrays (also related to #21725) and adds test for #17233, which seems to be resolved.

Fixes #18465
[breaking-change]
src/librustc_trans/trans/_match.rs
src/librustc_trans/trans/consts.rs
src/librustc_typeck/check/mod.rs