diff options
| author | bors <bors@rust-lang.org> | 2014-11-16 04:37:36 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2014-11-16 04:37:36 +0000 |
| commit | cb51567e1911452f3da4b924a91e5360f5efe67c (patch) | |
| tree | 6491b2030f478bcc9a7da9db59da40c9dae4b651 /src/libsyntax/parse/parser.rs | |
| parent | 7e43f419cb98c9035d30e5cf0e0be7944dbc0371 (diff) | |
| parent | 43fd6446add0bcf237f3fe15b7d715eceee2a08c (diff) | |
| download | rust-cb51567e1911452f3da4b924a91e5360f5efe67c.tar.gz rust-cb51567e1911452f3da4b924a91e5360f5efe67c.zip | |
auto merge of #18788 : ricky26/rust/master, r=aturon
This moves chars() and lines() out of Buffer and into separate traits (CharsBuffer and LinesBuffer respectively) - this matches the pattern used for bytes() on Reader (with BytesReader). (I came across this when I wanted a trait object of a Buffer, so that I could use read_line(); rustc errors about std::io::Buffer not being object-safe.) [breaking-change] Any uses of Buffer::lines() will need to use the new trait std::io::LinesBuffer. The same is true for Buffer::chars() with std::io::CharsBuffer.
Diffstat (limited to 'src/libsyntax/parse/parser.rs')
0 files changed, 0 insertions, 0 deletions
