Skip to content

Commit 16b5ac1

Browse files
committed
Remove very outdated comment about token streams.
They're now just an `Arc<Vec<TokenTree>>`. No ropes, no views, nothing like that.
1 parent d829133 commit 16b5ac1

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

compiler/rustc_ast/src/tokenstream.rs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,6 @@
33
//! `TokenStream`s represent syntactic objects before they are converted into ASTs.
44
//! A `TokenStream` is, roughly speaking, a sequence of [`TokenTree`]s,
55
//! which are themselves a single [`Token`] or a `Delimited` subsequence of tokens.
6-
//!
7-
//! ## Ownership
8-
//!
9-
//! `TokenStream`s are persistent data structures constructed as ropes with reference
10-
//! counted-children. In general, this means that calling an operation on a `TokenStream`
11-
//! (such as `slice`) produces an entirely new `TokenStream` from the borrowed reference to
12-
//! the original. This essentially coerces `TokenStream`s into "views" of their subparts,
13-
//! and a borrowed `TokenStream` is sufficient to build an owned `TokenStream` without taking
14-
//! ownership of the original.
156
167
use std::borrow::Cow;
178
use std::ops::Range;

0 commit comments

Comments
 (0)