mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 13:25:09 +00:00
move tt-iter into tt crate
This commit is contained in:
parent
db056b4a69
commit
dc39e87b79
10 changed files with 336 additions and 323 deletions
|
@ -4,6 +4,9 @@
|
|||
|
||||
#![warn(rust_2018_idioms, unused_lifetimes)]
|
||||
|
||||
pub mod buffer;
|
||||
pub mod iter;
|
||||
|
||||
use std::fmt;
|
||||
|
||||
use stdx::impl_from;
|
||||
|
@ -365,8 +368,6 @@ impl<S> Subtree<S> {
|
|||
}
|
||||
}
|
||||
|
||||
pub mod buffer;
|
||||
|
||||
pub fn pretty<S>(tkns: &[TokenTree<S>]) -> String {
|
||||
fn tokentree_to_text<S>(tkn: &TokenTree<S>) -> String {
|
||||
match tkn {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue