diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-06-27 10:49:12 +1000 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-07-02 10:46:44 +1000 |
| commit | 0cfd2473be4a5555018cfbca089a7ed1bfd16c53 (patch) | |
| tree | 0845d854c2dcb6904953e045c16de4d0401cece1 /compiler/rustc_ast/src | |
| parent | f852568fa601171f20f924a50478c33fd2661fba (diff) | |
| download | rust-0cfd2473be4a5555018cfbca089a7ed1bfd16c53.tar.gz rust-0cfd2473be4a5555018cfbca089a7ed1bfd16c53.zip | |
Rename `TokenStream::new` argument.
`tts` is a better name than `streams` for a `Vec<TokenTree>`.
Diffstat (limited to 'compiler/rustc_ast/src')
| -rw-r--r-- | compiler/rustc_ast/src/tokenstream.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_ast/src/tokenstream.rs b/compiler/rustc_ast/src/tokenstream.rs index 5b2d673316a..cabf18fd153 100644 --- a/compiler/rustc_ast/src/tokenstream.rs +++ b/compiler/rustc_ast/src/tokenstream.rs @@ -400,8 +400,8 @@ impl PartialEq<TokenStream> for TokenStream { } impl TokenStream { - pub fn new(streams: Vec<TokenTree>) -> TokenStream { - TokenStream(Lrc::new(streams)) + pub fn new(tts: Vec<TokenTree>) -> TokenStream { + TokenStream(Lrc::new(tts)) } pub fn is_empty(&self) -> bool { |
