Skip to content

Unstable book lang_items example is outdated #136290

Open
@cyrgani

Description

@cyrgani

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 at alloc::boxed::box_new and adding extern crate alloc to use it causes the real Box to conflict with the custom Box.

@rustbot label A-lang-item

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsA-lang-itemArea: Language itemsT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions