about summary refs log tree commit diff
path: root/compiler/rustc_parse/src/lib.rs
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2025-04-29 11:57:27 +1000
committerNicholas Nethercote <n.nethercote@gmail.com>2025-04-30 07:10:56 +1000
commit298c56f4ba604d3c7025a44fe7bfe1134d6b56d6 (patch)
tree5cdaad2eeecb5498683c6e1c575bc73a168aecdc /compiler/rustc_parse/src/lib.rs
parent28236ab703d21483dc818108f157fbb2da5a2802 (diff)
downloadrust-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.rs1
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};