-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Improve usage of compiler-builtins
#49851
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
I can confirm that swapping them (checked with a hand written cc @oli-obk |
Also I just noticed that in the expanded version, |
I wonder how that order swapping happens... should be easy enough to fix. The macro use comes from reusing the core import code. I guess we'll have to duplicate some now, but it's not too much |
Ah.. inserting at position 0 will do that: This should be an easy to fix issue. Also needs a ui test |
Furthermore, since |
I have a diff for this but I'm having a hard time reproducing the error message in the
|
@rcoh That looks like a typo in the target name; it should be |
Yep, that was it. Much appreciated. |
Uh oh!
There was an error while loading. Please reload this page.
This is regarding the changes made in #49380. This change works, however when the user makes some kind of mistake, especially forgetting to install the new targets (like
thumbv7em-none-eabihf
), the error messages are not currently helpful.The current error message when forgetting to install the target looks like this:
compared to the following when you try to compile for a not-installed target:
The following
#[no_std]
code shows (the first part of) a typical embedded project:using
cargo expand
, this code expands to:The Embedded WG talked about this, and we think the error messages would be improved if the order of
extern crate compiler_builtins;
andextern crate core;
were swapped.The text was updated successfully, but these errors were encountered: