Skip to content

view items should support attributes and conditional compilation #2357

Closed
@brson

Description

@brson
Contributor

I've jumped through hoops a few times trying to write use statements conditionalized by platform.

Activity

brson

brson commented on May 5, 2012

@brson
ContributorAuthor

I've changed my mind about this.

marijnh

marijnh commented on May 8, 2012

@marijnh
Contributor

Why? With this issue in mind, I just implemented attributes for view items (I was messing with the view item parsing code anyway to add support for pub imports). But supporting conditional compilation for view items seems like a no-brainer -- it's useful, and unproblematic.

reopened this on May 8, 2012
brson

brson commented on May 8, 2012

@brson
ContributorAuthor

I only changed my mind because I had a reasonable workaround and didn't want to bother with an RFC.

graydon

graydon commented on May 9, 2012

@graydon
Contributor

Yeah, it seems reasonable to me too.

jdm

jdm commented on Jul 9, 2012

@jdm
Contributor

Is this complete, or is conditional compilation still required?

brson

brson commented on Jul 9, 2012

@brson
ContributorAuthor

The configuration (conditional compilation) pass still ignores view item attributes.

brson

brson commented on Jul 9, 2012

@brson
ContributorAuthor

Fixed.

added a commit that references this issue on Dec 24, 2022

Auto merge of rust-lang#2357 - DebugSteven:epoll_create1-shim, r=oli-obk

added a commit that references this issue on Jan 6, 2023

Auto merge of rust-lang#2357 - DebugSteven:epoll_create1-shim, r=oli-obk

added a commit that references this issue on Jun 2, 2025
a34ef82
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-frontendArea: Compiler frontend (errors, parsing and HIR)A-grammarArea: The grammar of RustC-enhancementCategory: An issue proposing an enhancement or a PR with one.E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @graydon@jdm@marijnh@brson

        Issue actions

          view items should support attributes and conditional compilation · Issue #2357 · rust-lang/rust