Skip to content

Conversation

huonw
Copy link
Contributor

@huonw huonw commented Feb 1, 2014

No description provided.

huonw added 2 commits February 1, 2014 00:42
This is has been obsolete for quite a while now (including a release),
so removing the special handling seems fine. (The error message is quite
good still anyway.)

Fixes rust-lang#9580.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This test appears to be completely unrelated.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, I see you did intend to include it based on the comment from #9575. I just wasn't expecting it given the PR title.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry; the title was meant to be parsed as (add a test) & (remove an obsolete syntax error).

@bors bors closed this in 5c5d995 Feb 1, 2014
@huonw huonw deleted the triage branch February 1, 2014 08:21
flip1995 pushed a commit to flip1995/rust that referenced this pull request Dec 28, 2023
…Jarcho

Do not lint `assertions_on_constants` for `const _: () = assert!(expr)`

Fixes rust-lang#8159

```rust
pub fn f() {
    // warning
    assert!(true);
    assert!(usize::BITS >= 32);

    // ok
    const _: () = assert!(usize::BITS >= 32);
}
```

changelog: Fix `const _: () = assert!(expr)` false positive on `assertions_on_constants` lint
flip1995 pushed a commit to flip1995/rust that referenced this pull request Jul 11, 2024
- remove now dead code in ASSERTIONS_ON_CONSTANTS
  cc rust-lang#11966
- Partially revert "ignore `assertions-on-constants` in const contexts"
  This reverts commit c7074de420a2192fb40d3f2194a20dd0d1b65cc6.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants