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

compiler failure: 'expected bare rust fn or an intrinsic' (cross-crate pub use of empty struct) #13953

Closed
rainbow-alex opened this issue May 5, 2014 · 2 comments

Comments

@rainbow-alex
Copy link

I am getting a compiler failure on the latest rust under linux. The problem seems to be the combination of cross-crate, pub use and an empty struct.

task 'rustc' failed at 'expected bare rust fn or an intrinsic', /home/rustbuild/src/rust-buildbot/slave/nightly-linux/build/src/librustc/middle/trans/base.rs:1720

Output with backtrace and code to reproduce:
https://gist.github.com/rainbow-alex/4f50ce8f4be22dc93a21

@sruggier
Copy link

sruggier commented May 6, 2014

I also hit this on the weekend. It may be the same issue as #12660.

@rainbow-alex
Copy link
Author

@sruggier you're right, this is a duplicate of #12660. Sorry!

flip1995 pushed a commit to flip1995/rust that referenced this issue Feb 20, 2025
… not (rust-lang#13953)

Fixes rust-lang#13885.
Fixes rust-lang/rust-clippy#14007.

Problem was that I forgot to check whether or not the `span` was a
"real" one. Because if not, then it starts pointing to pretty much only
wrong content, hence the problems we saw with clippy linting on
`clippy.toml`.

changelog: Fix `literal_string_with_formatting_args` lint emitted when
it should not

r? @samueltardieu
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

No branches or pull requests

2 participants