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

'+' (read+write) asm outputs not supported #13392

Closed
kmcallister opened this issue Apr 7, 2014 · 1 comment
Closed

'+' (read+write) asm outputs not supported #13392

kmcallister opened this issue Apr 7, 2014 · 1 comment

Comments

@kmcallister
Copy link
Contributor

#[feature(asm)];

fn main() {
    unsafe {
        let x: uint = 0;
        asm!("" : "+r"(x));
    }
}
$ rustc -v
rustc 0.10-pre (68a4f7d 2014-02-24 12:42:02 -0800)
host: x86_64-unknown-linux-gnu

$ rustc foo.rs
foo.rs:6:19: 6:23 error: internal compiler error: unimplemented '+' (read+write) output operand constraint modifier
This message reflects a bug in the Rust compiler. 
We would appreciate a bug report: http://static.rust-lang.org/doc/master/complement-bugreport.html
foo.rs:6         asm!("" : "+r"(x));
@alexcrichton
Copy link
Member

Closed by #12798 (just an out of date rustc)

bors added a commit to rust-lang-ci/rust that referenced this issue Oct 18, 2022
Prefer similar tokens when expanding macros speculatively

Should improve completions in proc-macros in some cases
bors added a commit to rust-lang-ci/rust that referenced this issue Sep 24, 2024
…dswij

Clarify example for `type_complexity`

As mentioned rust-lang#13387 it's not clear how to fix issue with complexity so add example for this

changelog: none
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

No branches or pull requests

2 participants