-
-
Notifications
You must be signed in to change notification settings - Fork 16.2k
Cannot use cfg_select! with EII #162378
Copy link
Copy link
Closed
Labels
A-attributesArea: Attributes (`#[…]`, `#![…]`)Area: Attributes (`#[…]`, `#![…]`)C-bugCategory: This is a bug.Category: This is a bug.F-extern_item_impls`#![feature(extern_item_impls)]``#![feature(extern_item_impls)]`T-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.
Description
Activity
Metadata
Metadata
Assignees
Labels
A-attributesArea: Attributes (`#[…]`, `#![…]`)Area: Attributes (`#[…]`, `#![…]`)C-bugCategory: This is a bug.Category: This is a bug.F-extern_item_impls`#![feature(extern_item_impls)]``#![feature(extern_item_impls)]`T-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.
I tried this code:
I expected to see this compile.
Instead, I got a compile error, complaining about unsupported attributes on externally implementable items, I assumed this should work since it selects a branch to compile based on the environment and the attributes aren't directly applied to the function itself.
Meta
rustc --version --verbose:Backtrace