-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Remove crate_type and crate_name attributes from compiler crates #41706
Conversation
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @brson (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. Due to 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. |
@brson Checking in, could you review this PR? |
📌 Commit f3cee21 has been approved by |
Travis failure is spurious. |
⌛ Testing commit f3cee21 with merge fbd491e... |
💔 Test failed - status-appveyor |
src/rtstartup/rsend.rs
Outdated
@@ -11,7 +11,6 @@ | |||
// See rsbegin.rs for details. | |||
|
|||
#![feature(no_core, lang_items, optin_builtin_traits)] | |||
#![crate_type="rlib"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs to be re-added, as there is no associated Cargo.toml
.
src/rtstartup/rsbegin.rs
Outdated
@@ -23,7 +23,6 @@ | |||
// of other runtime components (registered via yet another special image section). | |||
|
|||
#![feature(no_core, lang_items, optin_builtin_traits)] | |||
#![crate_type="rlib"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs to be re-added, as there is no associated Cargo.toml
.
@neosilky Found a few more problems, but I think those should be the last things. |
@Mark-Simulacrum Ah yes! I've re-added in the latest commit. |
@brson I think this is ready for another review. Could you take a look? |
Looks like there's a test failure?
|
☔ The latest upstream changes (presumably #41847) made this pull request unmergeable. Please resolve the merge conflicts. |
Nice PR, @neosilky! There are however some test failures. Do you need help fixing them? |
☔ The latest upstream changes (presumably #42130) made this pull request unmergeable. Please resolve the merge conflicts. |
compilation failure:
Are you working on this @neosilky? Need any help? |
Feel free to ask for help on IRC (on #rust-internals or #rustc) - you can ping me (arielb1/arielby) personally. |
Sorry @arielb1, I'm just prepping for an exam tomorrow... I will fix this up after then! |
Hi @neosilky, just want to make sure this hasn't dropped off your radar! Do you think you'll get time to look at it? |
Taking a fresh look at the test failure, which is:
It really looks like the problem is that https://github.com/rust-lang/rust/blob/master/src/test/run-make/alloc-extern-crates/Makefile#L5 is missing a -include ../tools.mk
all:
$(RUSTC) fakealloc.rs
$(RUSTC) ../../../liballoc/lib.rs --cfg feature=\"external_crate\" --extern external=$(TMPDIR)/$(shell $(RUSTC) --print file-names fakealloc.rs)
# ^ should be `--crate-type=rlib` |
After you fix the test, you can check it locally by running |
☔ The latest upstream changes (presumably #42648) made this pull request unmergeable. Please resolve the merge conflicts. |
🕸 Closing PR to keep the queue clean 🕸. This looks like a simple fix - feel free to reopen with it. |
Fixes #41701.