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

.bc file not found when building with --rlib #11346

Closed
jhasse opened this issue Jan 6, 2014 · 0 comments · Fixed by #11347
Closed

.bc file not found when building with --rlib #11346

jhasse opened this issue Jan 6, 2014 · 0 comments · Fixed by #11347

Comments

@jhasse
Copy link
Contributor

jhasse commented Jan 6, 2014

~ echo '#[crate_type="rlib"];' > foo.rs
~ rustc --rlib foo.rs
error: ar rS libfoo-d4ab21d1-0.0.rlib foo.bc failed with: exit code: 1
note: stdout ---

note: stderr ---
ar: foo.bc: No such file or directory

error: aborting due to previous error
task 'rustc' failed at 'explicit failure', C:\Users\jhass_000\git\rust\src\libsyntax\diagnostic.rs:75
task '<main>' failed at 'explicit failure', C:\Users\jhass_000\git\rust\src\librustc\lib.rs:440
~ rustc foo.rs
~ ls
foo.rs  libfoo-d4ab21d1-0.0.rlib

When building with --rlib rustc can't find the bytecode file.

bors added a commit that referenced this issue Jan 7, 2014
This ends up causing weird errors like those seen in #11346

Closes #11346
flip1995 added a commit to flip1995/rust that referenced this issue Apr 3, 2025
…g#14403)

Closes rust-lang#11346.
Partially fix rust-lang#9905. The first case in this issue is a little tricky as
the coerce does not happen in the borrowing.

changelog: [`borrow_deref_ref`]: fix wrong suggestions when coerce to
mut
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 a pull request may close this issue.

1 participant