Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test & remove an obsolete syntax error #11966

Closed
wants to merge 2 commits into from
Closed

Conversation

huonw
Copy link
Member

@huonw huonw commented Feb 1, 2014

No description provided.

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.
fn start(argc: int, argv: **u8, crate_map: *u8) -> int {
//~^ ERROR start function expects type: `fn(int, **u8) -> int`
0
}
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
Member 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