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
➜ rustc version.rs
versions.rs:7:29: 7:35 error: use of undeclared type name `c_char`
versions.rs:7 fn version_string () -> *c_char;
^~~~~~
versions.rs:8:39: 8:45 error: use of undeclared type name `c_uint`
versions.rs:8 fn version_interface_current () -> c_uint;
^~~~~~
versions.rs:9:40: 9:46 error: use of undeclared type name `c_uint`
versions.rs:9 fn version_interface_revision () -> c_uint;
^~~~~~
versions.rs:10:35: 10:41 error: use of undeclared type name `c_uint`
versions.rs:10 fn version_interface_age () -> c_uint;
^~~~~~
error: aborting due to 4 previous errors
…flip1995
Disallow bit-shifting in integer_arithmetic
Make the `integer_arithmetic` lint detect all the operations that are defined as being capable of overflow in the [Rust Reference](https://doc.rust-lang.org/reference/expressions/operator-expr.html#overflow), by also linting for bit-shifting operations (`<<`, `>>`).
changelog: Disallow bit-shifting in `integer_arithmetic`
oli-obk
pushed a commit
to oli-obk/rust
that referenced
this issue
May 2, 2020
Trying out some FFI
The text was updated successfully, but these errors were encountered: