From 298c56f4ba604d3c7025a44fe7bfe1134d6b56d6 Mon Sep 17 00:00:00 2001 From: Nicholas Nethercote Date: Tue, 29 Apr 2025 11:57:27 +1000 Subject: Simplify `LazyAttrTokenStream`. This commit does the following. - Changes it from `Lrc>` to `Lrc`. - 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. --- compiler/rustc_attr_parsing/src/lib.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'compiler/rustc_attr_parsing/src/lib.rs') diff --git a/compiler/rustc_attr_parsing/src/lib.rs b/compiler/rustc_attr_parsing/src/lib.rs index b9692c01e2c..874fccf7ff6 100644 --- a/compiler/rustc_attr_parsing/src/lib.rs +++ b/compiler/rustc_attr_parsing/src/lib.rs @@ -80,6 +80,7 @@ #![cfg_attr(bootstrap, feature(let_chains))] #![doc(rust_logo)] #![feature(rustdoc_internals)] +#![recursion_limit = "256"] // tidy-alphabetical-end #[macro_use] -- cgit 1.4.1-3-g733a5