Skip to content

Should core import the 2021 prelude? #122912

Closed
@dpaoliello

Description

@dpaoliello

The core crate currently imports the v1 prelude

#[prelude_import]
#[allow(unused)]
use prelude::v1::*;

This recently caused an issue when updating the portable-simd subtree since it was using a trait that was added to the 2021 prelude: #122905 (comment)

Given that core is currently being built as 2021, should it import the 2021 prelude?

cc @workingjubilee @calebzulawski

Metadata

Metadata

Assignees

Labels

C-discussionCategory: Discussion or questions that doesn't represent real issues.T-libsRelevant to the library 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