Skip to content

static_assert silently passes all consts #23008

Closed
@kmcallister

Description

@kmcallister
Contributor

No unused attribute warning, either.

#[static_assert]
pub const BLEH: bool = false;

fn main() { }

Activity

kmcallister

kmcallister commented on Mar 3, 2015

@kmcallister
ContributorAuthor

A-codegen because this checking happens in trans.

nagisa

nagisa commented on Mar 3, 2015

@nagisa
Member

cc @huonw because you implemented #22960

EDIT: ugh, sorry, I misread “No unused attribute warning, either” as “No feature gate, either”.

added a commit that references this issue on Apr 28, 2015
c446e30
added a commit that references this issue on Jun 3, 2015
5235065
added a commit that references this issue on Jun 3, 2015

Auto merge of #24910 - steveklabnik:remove_static_assert, r=alexcrichton

b70f49b
added a commit that references this issue on Nov 29, 2018
f491587
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-codegenArea: Code generation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      Participants

      @kmcallister@nagisa

      Issue actions

        static_assert silently passes all consts · Issue #23008 · rust-lang/rust