about summary refs log tree commit diff
path: root/src/libsyntax/parse/parser.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2014-11-16 04:37:36 +0000
committerbors <bors@rust-lang.org>2014-11-16 04:37:36 +0000
commitcb51567e1911452f3da4b924a91e5360f5efe67c (patch)
tree6491b2030f478bcc9a7da9db59da40c9dae4b651 /src/libsyntax/parse/parser.rs
parent7e43f419cb98c9035d30e5cf0e0be7944dbc0371 (diff)
parent43fd6446add0bcf237f3fe15b7d715eceee2a08c (diff)
downloadrust-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