Repository: servo/core-foundation-rs (language: rust)

Issue:
CFIndex not found in this scope error
It's possible something in the recent `core-foundation-sys` update broke. I'm getting this on a compile of an application with `core-foundation` at `0.9.3` and `core-foundation-sys` at `0.8.5`:

```
   Compiling core-foundation v0.9.3
error[E0412]: cannot find type `CFIndex` in this scope
  --> /Users/clark/.cargo/registry/src/index.crates.io-6f17d22bba15001f/core-foundation-0.9.3/src/mach_port.rs:17:16
   |
17 |         order: CFIndex,
   |                ^^^^^^^ not found in this scope
   |
help: consider importing this type alias
   |
1  + use base::CFIndex;
   |
```

I do not directly depend on either `core-foundation` or `core-foundation-sys`, they are pulled in by libraries I use.



Discussion / hints:
I just started getting the same error. 
core-foundation needs a new release. The latest release 0.9.3 is old and is missing an import for CFIndex. But this issue was already fixed on master, so a 0.9.4 release from latest master seems to be needed.


Here's the code with the issue: https://github.com/servo/core-foundation-rs/blob/6642b11b4c907406779e82382bf94e7ed6d6efd2/core-foundation/src/mach_port.rs#L1 
That import line is missing CFIndex, which is present on master
Same problem here, with versione 0.9.3
Needed to add  `use base::CFIndex;` in `core-foundation-0.9.3/src/mach_port.rs` to fix it.
We need a release of `code-foundation` to go with the `core-foundation-sys` release I think. This commit is the troublesome one. https://github.com/servo/core-foundation-rs/commit/6d00383bafd95f7457a288e1948fc4111a34ae9e
I've yanked core-foundation-sys 0.8.5

Fix patch:
diff --git a/core-foundation-sys/src/mach_port.rs b/core-foundation-sys/src/mach_port.rs
index a25a44c12..1474d311a 100644
--- a/core-foundation-sys/src/mach_port.rs
+++ b/core-foundation-sys/src/mach_port.rs
@@ -7,8 +7,9 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-use base::{CFAllocatorRef, CFIndex, CFTypeID, Boolean, mach_port_t};
 use string::CFStringRef;
+pub use base::{CFAllocatorRef, CFIndex, CFTypeID};
+use base::{Boolean, mach_port_t};
 use runloop::CFRunLoopSourceRef;
 use std::os::raw::c_void;
 
diff --git a/core-foundation/src/mach_port.rs b/core-foundation/src/mach_port.rs
index cd39c16a2..6112e3aae 100644
--- a/core-foundation/src/mach_port.rs
+++ b/core-foundation/src/mach_port.rs
@@ -1,4 +1,4 @@
-use base::{TCFType, CFIndex};
+use base::TCFType;
 use core_foundation_sys::base::kCFAllocatorDefault;
 use runloop::CFRunLoopSource;
 pub use core_foundation_sys::mach_port::*;


Test patch: