-
Notifications
You must be signed in to change notification settings - Fork 164
Issue when defining a panic function with #![no_std] #904
Comments
Looks like the compiler might end up using the equivalent of |
Yes, I am having the same issue.
That issue should not have been closed because this doesn't work for me (probably because I use rust-analyzer). It says
However, this does not only disable the error for I hope vscode-rust/rust-analyzer will properly fix this issue and support |
@r00ster91 In your case I think |
Unfortunately neither of these fixes works for me so I guess Ill just have to deal with it for now |
I am also having this same issue with no luck fixing it |
Guys please fix it! This really annoying ((( |
Hello,
I am currently trying to write an operating system in Rust. Obviously I can't link to the std lib and I need to write my own panic function. As of right now the plugin is giving me an error saying that it found a duplicate
panic_impl
item however it compiles fine. Is there a way you could check for#![no_std]
and prevent this error from showing up? Or is there any way I can configure the plugin to ignore this error?Error:
found duplicate lang item `panic_impl` the lang item is first defined in crate `std` (which `test` depends on) first definition in `std` loaded from /home/grvy/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-93cbfed54dd1bac8.rlib second definition in the local crate (`grvy_os`)rustc(E0152)
Code:
The text was updated successfully, but these errors were encountered: