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

Clang-sys does not build on rust 1.53 Nightly #84641

Closed
ubamrein opened this issue Apr 28, 2021 · 1 comment
Closed

Clang-sys does not build on rust 1.53 Nightly #84641

ubamrein opened this issue Apr 28, 2021 · 1 comment
Labels
C-bug Category: This is a bug.

Comments

@ubamrein
Copy link
Contributor

I was building some library, which depended on clang-sys but it fails on rustc 1.53.0-nightly (d0695c908 2021-04-12) with a lot of error messages. When looking for the error, old issues from 2017 come up, related to rustc-serialize.

A prototypical example of the hundreds of errors:

error[E0642]: patterns aren't allowed in methods without bodies
    --> /Users/test/.cargo/registry/src/github.com-1ecc6299db9ec823/clang-sys-1.2.0/src/lib.rs:1966:37
     |
1966 |     pub fn clang_findIncludesInFile(tu: CXTranslationUnit, file: CXFile, cursor: CXCursorAndRangeVisitor) -> CXResult;
     |                                     ^^
     |
help: give this argument a name or use an underscore to ignore it
     |
1966 |     pub fn clang_findIncludesInFile(_: CXTranslationUnit, file: CXFile, cursor: CXCursorAndRangeVisitor) -> CXResult;

Meta

This bug only happens on nightly.

rustc --version --verbose:

rustc 1.53.0-nightly (d0695c908 2021-04-12)
binary: rustc
commit-hash: d0695c9081b16077d0aed368bccaf437d77ff497
commit-date: 2021-04-12
host: x86_64-apple-darwin
release: 1.53.0-nightly
LLVM version: 12.0.0

I also created an issue here KyleMayes/clang-sys#130, since I'm not sure, where the error is coming from.

@ubamrein ubamrein added the C-bug Category: This is a bug. label Apr 28, 2021
@Urgau
Copy link
Member

Urgau commented Apr 28, 2021

cc #84162
Fixed by #84130

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: This is a bug.
Projects
None yet
Development

No branches or pull requests

2 participants