Skip to content

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

New issue

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

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

Already on GitHub? # to your account

Closed
emilio opened this issue Apr 14, 2021 · 4 comments
Closed

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

emilio opened this issue Apr 14, 2021 · 4 comments
Labels
C-bug Category: This is a bug.

Comments

@emilio
Copy link
Contributor

emilio commented Apr 14, 2021

$ 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
@emilio emilio added the C-bug Category: This is a bug. label Apr 14, 2021
@emilio
Copy link
Contributor Author

emilio commented Apr 14, 2021

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
Copy link
Contributor Author

emilio commented Apr 14, 2021

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

@emilio
Copy link
Contributor Author

emilio commented Apr 14, 2021

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

@emilio
Copy link
Contributor Author

emilio commented Apr 14, 2021

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

@emilio emilio closed this as completed Apr 14, 2021
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
C-bug Category: This is a bug.
Projects
None yet
Development

No branches or pull requests

1 participant