Skip to content

Commit

Permalink
alloc: Workaround hidden doctest line
Browse files Browse the repository at this point in the history
A small workaround for rust-lang#136899,
rustdoc's invalid_rust_codeblocks was not handling this well in 2024.
This may be needed when migrating to 2024 when building with stage0.
  • Loading branch information
ehuss committed Feb 13, 2025
1 parent af7e90a commit c32cab1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/alloc/src/boxed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
//! Creating a recursive data structure:
//!
//! ```
//! ##[allow(dead_code)]
//! # #[allow(dead_code)]
//! #[derive(Debug)]
//! enum List<T> {
//! Cons(T, Box<List<T>>),
Expand Down

0 comments on commit c32cab1

Please sign in to comment.