markstory / rust-statsd

Statsd client implemented in Rust
MIT License
58 stars 26 forks source link

Not compiling on rust 1.9 #3

Closed marcusbuffett closed 8 years ago

marcusbuffett commented 8 years ago
Compiling clock_ticks v0.0.6
/Users/marcusbuffett/.cargo/registry/src/github.com-88ac128001ac3a9a/clock_ticks-0.0.6/src/lib.rs:37:9: 37:75 error: a value named `mach_timebase_info` has already been imported in this module [E0255]
/Users/marcusbuffett/.cargo/registry/src/github.com-88ac128001ac3a9a/clock_ticks-0.0.6/src/lib.rs:37         pub fn mach_timebase_info(info: *mut mach_timebase_info) -> c_int;
                                                                                                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/marcusbuffett/.cargo/registry/src/github.com-88ac128001ac3a9a/clock_ticks-0.0.6/src/lib.rs:37:9: 37:75 help: run `rustc --explain E0255` to see a detailed explanation
/Users/marcusbuffett/.cargo/registry/src/github.com-88ac128001ac3a9a/clock_ticks-0.0.6/src/lib.rs:31:42: 31:60 note: previous import of `mach_timebase_info` here
/Users/marcusbuffett/.cargo/registry/src/github.com-88ac128001ac3a9a/clock_ticks-0.0.6/src/lib.rs:31     use libc::{timeval, timezone, c_int, mach_timebase_info};
                                                                                                                                              ^~~~~~~~~~~~~~~~~~
error: aborting due to previous error
error: Could not compile `clock_ticks`.

To learn more, run the command again with --verbose.
marcusbuffett commented 8 years ago

Actually, I just cloned it and specified that folder as a path dependency, might be user error... Unless master has been updated but the changes haven't been added to cargo?

markstory commented 8 years ago

@marcusbuffett I'll take a look, I don't think I've tested/built a package with rust 1.9 yet.

markstory commented 8 years ago

Have you tried running cargo update? clock_ticks should have been pinned to ^0.1

markstory commented 8 years ago

Closing as I've not been able to reproduce this in rust 1.9 or 1.10