Skip to content

clang-sys no longer builds on the latest nightly #84188

@emilio

Description

@emilio
Contributor
$ git clone https://github.com/KyleMayes/clang-sys && cd clang-sys
$ cargo build --features runtime
error[E0642]: patterns aren't allowed in methods without bodies
    --> src/lib.rs:1683:39
     |
1683 |     pub fn clang_CXCursorSet_contains(set: CXCursorSet, cursor: CXCursor) -> c_uint;
     |                                       ^^^
     |
help: give this argument a name or use an underscore to ignore it
     |
1683 |     pub fn clang_CXCursorSet_contains(_: CXCursorSet, cursor: CXCursor) -> c_uint;
     |                                       ^

error[E0642]: patterns aren't allowed in methods without bodies
    --> src/lib.rs:1683:57
     |
1683 |     pub fn clang_CXCursorSet_contains(set: CXCursorSet, cursor: CXCursor) -> c_uint;
     |                                                         ^^^^^^
     |
help: give this argument a name or use an underscore to ignore it
     |
1683 |     pub fn clang_CXCursorSet_contains(set: CXCursorSet, _: CXCursor) -> c_uint;
     |                                                         ^

(... and a long etcetera)

Meta

rustc --version --verbose:

rustc 1.53.0-nightly (132b4e5d1 2021-04-13)
binary: rustc
commit-hash: 132b4e5d167b7e622fcc11fa2b67b931105b4de1
commit-date: 2021-04-13
host: x86_64-unknown-linux-gnu
release: 1.53.0-nightly
LLVM version: 12.0.0

Activity

emilio

emilio commented on Apr 14, 2021

@emilio
ContributorAuthor

This version is good:

rustc 1.53.0-nightly (dae9d6ac3 2021-04-09)
binary: rustc
commit-hash: dae9d6ac3e9a8fb389cfe471b30f4d72c3122196
commit-date: 2021-04-09
host: x86_64-unknown-linux-gnu
release: 1.53.0-nightly
LLVM version: 12.0.0
emilio

emilio commented on Apr 14, 2021

@emilio
ContributorAuthor

Regression range from some bisection using rustup to install nightly toolchains is: a836d9b...a866124

emilio

emilio commented on Apr 14, 2021

@emilio
ContributorAuthor

From that regression range, I suspect #82608 is the culprit, cc @Aaron1011

emilio

emilio commented on Apr 14, 2021

@emilio
ContributorAuthor

And I guess this is a dupe of #84162 :)

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

    C-bugCategory: This is a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @emilio

        Issue actions

          clang-sys no longer builds on the latest nightly · Issue #84188 · rust-lang/rust