You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to write a interace to some C Code, the interface code was generated by bindgen-rust.
pubstaticMPS_KEY_ARGS_END:mps_key_t = &_mps_key_ARGS_END;//code I addedpubenumStruct_mps_key_s{}pubtypemps_key_t = *constStruct_mps_key_s;extern"C"{pubstatic _mps_key_ARGS_END:Struct_mps_key_s;}
System: Arch Linux x86
Rust version:
aur/rust-nightly-bin 0.13.0_2014.10.27-1 (16)
A safe, concurrent, practical language from Mozilla.
Compiling rust-mps-bindings v0.0.1 (file:///home/nick/alltech/clojit/rust-mps-bindings)
Running `rustc /home/nick/alltech/clojit/rust-mps-bindings/src/main.rs --crate-name rust-mps-bindings --crate-type bin -g --out-dir /home/nick/alltech/clojit/rust-mps-bindings/target --dep-info /home/nick/alltech/clojit/rust-mps-bindings/target/.fingerprint/rust-mps-bindings-03f1405e8d318ae0/dep-bin-rust-mps-bindings -L /home/nick/alltech/clojit/rust-mps-bindings/target -L /home/nick/alltech/clojit/rust-mps-bindings/target/deps --extern rust-mps-bindings=/home/nick/alltech/clojit/rust-mps-bindings/target/librust-mps-bindings-03f1405e8d318ae0.rlib`
error: internal compiler error: unexpected failure
note: the compiler hit an unexpected failure path. this is a bug.
note: we would appreciate a bug report: http://doc.rust-lang.org/complement-bugreport.html
note: run with `RUST_BACKTRACE=1` for a backtrace
task 'rustc' failed at 'expected item, found foreign item _mps_key_ARGS_END::_mps_key_ARGS_END (id=1107)', /home/rustbuild/src/rust-buildbot/slave/nightly-linux/build/src/libsyntax/ast_map/mod.rs:327
Could not compile `rust-mps-bindings`.
Caused by:
Process didn't exit successfully: `rustc /home/nick/alltech/clojit/rust-mps-bindings/src/main.rs --crate-name rust-mps-bindings --crate-type bin -g --out-dir /home/nick/alltech/clojit/rust-mps-bindings/target --dep-info /home/nick/alltech/clojit/rust-mps-bindings/target/.fingerprint/rust-mps-bindings-03f1405e8d318ae0/dep-bin-rust-mps-bindings -L /home/nick/alltech/clojit/rust-mps-bindings/target -L /home/nick/alltech/clojit/rust-mps-bindings/target/deps --extern rust-mps-bindings=/home/nick/alltech/clojit/rust-mps-bindings/target/librust-mps-bindings-03f1405e8d318ae0.rlib` (status=101)
The text was updated successfully, but these errors were encountered:
$ rustc main.rs
main.rs:5:16: 5:17 error: cannot refer to other statics by value, use the address-of operator or a constant instead
main.rs:5 static B: i8 = A;
^
error: aborting due to previous error
feat: better completions for extern blcoks
This PR refactors `add_keywords` (making it much clearer!) and enhances completion for `extern` blocks.
It is recommended to reviewing the changes in order of the commits:
- The first commit (f3c4dde0a4917a2bac98605cc045eecfb4d69872) doesn’t change any logic but refactors parts of the `add_keywords` function and adds detailed comments.
- The second commit (5dcc1ab649bf8a49cadf006d620871b12f093a2f) improves completion for `extern` kw and extern blocks.
I am trying to write a interace to some C Code, the interface code was generated by bindgen-rust.
System: Arch Linux x86
Rust version:
aur/rust-nightly-bin 0.13.0_2014.10.27-1 (16)
A safe, concurrent, practical language from Mozilla.
The text was updated successfully, but these errors were encountered: