Skip to content
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

chore: update to nightly-2021-09-22, fix clippy #115

Merged
merged 1 commit into from
Sep 25, 2021
Merged

Conversation

hawkw
Copy link
Owner

@hawkw hawkw commented Sep 25, 2021

This just updates Rust to the latest nightly, and fixes a new Clippy
lint on that nightly.

This just updates Rust to the latest nightly, and fixes a new Clippy
lint on that nightly.
@hawkw hawkw merged commit bbf73a7 into main Sep 25, 2021
@hawkw hawkw deleted the eliza/bump-nightly branch September 25, 2021 19:23
hawkw added a commit that referenced this pull request Sep 25, 2021
This reverts commit bbf73a7.

It turns out some kind of change in linker behavior renders our cool
test stuff hilariously broken:

https://github.com/hawkw/mycelium/runs/3709572933?check_suite_focus=true

Perhaps @mystor knows about what's going on here. For now, though, I'm
just gonna revert the nightly bump so that we can like, build mycelium
again lol.
@mystor
Copy link
Collaborator

mystor commented Sep 25, 2021

As we discussed on Discord, this is likely due to some changes to how rustc handles the #[used] attribute since rust-lang/rust#87570, and has also had an impact on linkme, which uses the same linker section tricks. Changing the linker and linker flavour to ld works around the issue for now, due to being a less-clever linker, but it would be nice to fix for lld as well.

It may be necessary for rust to expose some way to use the old llvm.used attribute rather than llvm.compiler.used to make this work long-term.

hawkw added a commit that referenced this pull request Sep 26, 2021
This just updates Rust to the latest nightly, and fixes a new Clippy
lint on that nightly.
hawkw added a commit that referenced this pull request Sep 27, 2021
* chore: update to nightly-2021-09-22, fix clippy (#115)

This just updates Rust to the latest nightly, and fixes a new Clippy
lint on that nightly.

* chore(x86_64): add `-z nostart-stop-gc` to linker args

when linking with `rust-lld` on recent nightlies, `__start` and
`__stop` labels are now gc'd by default. this breaks the linker hax
we use for tests. this argument makes `lld` stop doing that.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants