-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
Unstable book lang_items example is outdated #136290
Copy link
Copy link
Open
Labels
A-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsArea: Documentation for any part of the project, including the compiler, standard library, and toolsA-lang-itemArea: Language itemsArea: Language itemsT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Metadata
Metadata
Assignees
Labels
A-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsArea: Documentation for any part of the project, including the compiler, standard library, and toolsA-lang-itemArea: Language itemsArea: Language itemsT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Location
https://github.com/rust-lang/rust/blob/master/src/doc/unstable-book/src/language-features/lang-items.md
Summary
The example uses
#[rustc_box], which was removed in #135046. Unfortunately, the new intrinsic is atalloc::boxed::box_newand addingextern crate allocto use it causes the realBoxto conflict with the customBox.@rustbot label A-lang-item