-
Notifications
You must be signed in to change notification settings - Fork 13k
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
rust_fail is not exported when using "extern crate rustc" #16211
Comments
Can you elaborate on how you discovered this? It appears that breakpoints on |
Huh, okay looks like there's a specific trigger for this (namely,
|
This looks like it's working as intended. When you link to rustc you end up dynamically linking to libstd, so this really is a symbol which will become available on a future shared library load. If you say |
I cannot reopen this for some reason, but this is still a bug. I filed this in the first place because the breakpoint doesn't get hit; indeed, pressing 'y' and running the program yields a fail with no breakpoint hit and
As an aside I'm genuinely surprised that this is expected behavior. The fact that
|
The Choosing how you link to the standard library (dynamic vs static) is not currently a fine-grained choice you can make. The compiler maximizes the number of dynamic libraries linked against if any library linked is a dynamic library, and because the standard library is distributed as a dynamic library it is linked against dynamically. Can you also give some more information about your setup, the exact contents of files, etc? For example, this works for me:
|
The only file involved is
Rust is installed from @thestinger's repository on my machine. Could it be that your rustc was compiled with -g or something? (@msullivan weren't you able to reproduce this on your machine as well this weekend?) |
That file doesn't fail, so why would you expect |
Erm, sorry, I mispasted and was just amending the comment -- you can see from the gdb log that it does in fact fail. |
I'm not 100% sure 'codegen' is the right tag here, but it's close. |
This seems to work today, so presumably it may have been fixed in the meantime, so closing. |
Use Cargo's [workspace.lints.*] to config clippy This change begin to use [`[workspace.lints.*]`](https://doc.rust-lang.org/cargo/reference/workspaces.html#the-lints-table) that is stabilized since [Rust 1.74](https://blog.rust-lang.org/2023/11/16/Rust-1.74.0.html). By this change, we make the configure more readable and simplify `xargo lint` more.
No description provided.
The text was updated successfully, but these errors were encountered: