Skip to content

Add a feature flag for ASM #9991

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

Closed
wants to merge 1 commit into from

Conversation

LeoTestard
Copy link
Contributor

Fixes #9882
Note that the actual checking code is inside a if false in order to compile libstd properly.
libstd uses asm! in rt. If we put #[feature(asm)] in libstd, it fails to build at stage0 beacause the
asm feature is not known yet by the snapshot compiler.
We must wait that this PR arrives into the snapshot in order to actually activate the checking code.

}

else if path.segments.last().identifier == self.sess.ident_of("asm") {
// fixme: remove the false once the ASM feature has been
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you change this to // NOTE: remove if false after next snapshot (or something like that, the // NOTE part is the important bit), then make tidy will show it, so the person who makes the next snapshot will be alerted to remove it.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

bors added a commit that referenced this pull request Oct 21, 2013
Fixes #9882
Note that the actual checking code is inside a if false in order to compile libstd properly.
libstd uses asm! in rt. If we put ```#[feature(asm)]``` in libstd, it fails to build at stage0 beacause the
asm feature is not known yet by the snapshot compiler.
We must wait that this PR arrives into the snapshot in order to actually activate the checking code.
@bors bors closed this Oct 21, 2013
bors added a commit that referenced this pull request Oct 22, 2013
flip1995 pushed a commit to flip1995/rust that referenced this pull request Jan 27, 2023
…gs, r=xFrednet

Document lint configuration values in Clippy's book

changelog: document lint configuration values in Clippy's book

fixes rust-lang#9991

r? `@xFrednet`
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.

Put asm macro behind a feature flag
3 participants