Skip to content

Translate inline assembly errors back to source locations #17592

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

Merged
merged 2 commits into from
Sep 29, 2014

Conversation

kmcallister
Copy link
Contributor

Fixes #17552.

@rust-highfive
Copy link
Contributor

warning Warning warning

  • These commits modify unsafe code. Please review it carefully!

@@ -983,7 +983,8 @@ pub struct InlineAsm {
pub clobbers: InternedString,
pub volatile: bool,
pub alignstack: bool,
pub dialect: AsmDialect
pub dialect: AsmDialect,
pub expn_id: u32,
Copy link
Member

Choose a reason for hiding this comment

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

Could this store ExpnId and provide conversion functions? It seems unfortunate to make the inner u32 public.

@alexcrichton
Copy link
Member

This looks pretty slick, thanks @kmcallister!

@kmcallister
Copy link
Contributor Author

r? @alexcrichton (with new commit)

alexcrichton added a commit to alexcrichton/rust that referenced this pull request Sep 29, 2014
@bors bors merged commit 8826fdf into rust-lang:master Sep 29, 2014
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.

Translate inline assembly errors back to source locations
4 participants