diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2025-04-29 11:57:27 +1000 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2025-04-30 07:10:56 +1000 |
| commit | 298c56f4ba604d3c7025a44fe7bfe1134d6b56d6 (patch) | |
| tree | 5cdaad2eeecb5498683c6e1c575bc73a168aecdc /compiler/rustc_parse/src/lib.rs | |
| parent | 28236ab703d21483dc818108f157fbb2da5a2802 (diff) | |
| download | rust-298c56f4ba604d3c7025a44fe7bfe1134d6b56d6.tar.gz rust-298c56f4ba604d3c7025a44fe7bfe1134d6b56d6.zip | |
Simplify `LazyAttrTokenStream`.
This commit does the following. - Changes it from `Lrc<Box<dyn ToAttrTokenStream>>` to `Lrc<LazyAttrTokenStreamInner>`. - Reworks `LazyAttrTokenStreamImpl` as `LazyAttrTokenStreamInner`, which is a two-variant enum. - Removes the `ToAttrTokenStream` trait and the two impls of it. The recursion limit must be increased in some crates otherwise rustdoc aborts.
Diffstat (limited to 'compiler/rustc_parse/src/lib.rs')
| -rw-r--r-- | compiler/rustc_parse/src/lib.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_parse/src/lib.rs b/compiler/rustc_parse/src/lib.rs index 37204702bcb..d06922f1e04 100644 --- a/compiler/rustc_parse/src/lib.rs +++ b/compiler/rustc_parse/src/lib.rs @@ -11,6 +11,7 @@ #![feature(if_let_guard)] #![feature(iter_intersperse)] #![feature(string_from_utf8_lossy_owned)] +#![recursion_limit = "256"] // tidy-alphabetical-end use std::path::{Path, PathBuf}; |
