-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Convert errors in libcore’s try! macro too. #28722
Conversation
It is still a separate definition from libstd’s so that `$crate` expands to `std::` in the latter, not `core::`. See discussion at rust-lang#27701 . There is an expectation that `core::foo` is the same as `std::foo`. We should not have two things with the same name but subtly different behavior.
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @aturon (or someone else) soon. If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. The way Github handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes. Please see the contribution instructions for more information. |
If the macro in libcore is defined identically to the macro in libstd, then why are there two definitions? It will be problematic to keep them in sync if they are separate. |
As mentioned, if the macro was only defined in |
@SimonSapin I think that Perhaps we could try that out? |
Uh. It sounds like I made incorrect assumptions, but now I’m confused as to how |
Ah you should just be able to move the |
☔ The latest upstream changes (presumably #30187) made this pull request unmergeable. Please resolve the merge conflicts. |
Ah I landed this in #30187 basically |
Thanks for taking care of it! |
It is still a separate definition from libstd’s so that
$crate
expands tostd::
in the latter, notcore::
.See discussion at #27701. There is an expectation that
core::foo
is the same asstd::foo
. We should not have two things with the same name but subtly different behavior.r? @aturon