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

Does not pick up conditional libc definitions #515

Open
the8472 opened this issue Mar 7, 2016 · 0 comments
Open

Does not pick up conditional libc definitions #515

the8472 opened this issue Mar 7, 2016 · 0 comments

Comments

@the8472
Copy link

the8472 commented Mar 7, 2016

RustDT runs racer complete-with-snippet 14 18 /home/the8472/workspace/anodize/src/main.rs

I'm trying to complete libc:: at that line.

It doesn't seem to find the definitions in conditionally compiled modules, e.g. I would expect it to find libc::AF_INET

The output is

PREFIX 18,18,
MATCH core;core;1;0;/home/the8472/src/rustc-1.7.0/src/libstd/lib.rs;Module;/home/the8472/src/rustc-1.7.0/src/libstd/lib.rs
MATCH c_void;c_void;95;9;/home/the8472/.cargo/registry/src/github.com-88ac128001ac3a9a/libc-0.2.7/src/lib.rs;Enum;pub enum c_void {
MATCH int8_t;int8_t;103;9;/home/the8472/.cargo/registry/src/github.com-88ac128001ac3a9a/libc-0.2.7/src/lib.rs;Type;pub type int8_t = i8;
MATCH int16_t;int16_t;104;9;/home/the8472/.cargo/registry/src/github.com-88ac128001ac3a9a/libc-0.2.7/src/lib.rs;Type;pub type int16_t = i16;
MATCH int32_t;int32_t;105;9;/home/the8472/.cargo/registry/src/github.com-88ac128001ac3a9a/libc-0.2.7/src/lib.rs;Type;pub type int32_t = i32;
MATCH int64_t;int64_t;106;9;/home/the8472/.cargo/registry/src/github.com-88ac128001ac3a9a/libc-0.2.7/src/lib.rs;Type;pub type int64_t = i64;
MATCH uint8_t;uint8_t;107;9;/home/the8472/.cargo/registry/src/github.com-88ac128001ac3a9a/libc-0.2.7/src/lib.rs;Type;pub type uint8_t = u8;
MATCH uint16_t;uint16_t;108;9;/home/the8472/.cargo/registry/src/github.com-88ac128001ac3a9a/libc-0.2.7/src/lib.rs;Type;pub type uint16_t = u16;
MATCH uint32_t;uint32_t;109;9;/home/the8472/.cargo/registry/src/github.com-88ac128001ac3a9a/libc-0.2.7/src/lib.rs;Type;pub type uint32_t = u32;
MATCH uint64_t;uint64_t;110;9;/home/the8472/.cargo/registry/src/github.com-88ac128001ac3a9a/libc-0.2.7/src/lib.rs;Type;pub type uint64_t = u64;
MATCH c_schar;c_schar;112;9;/home/the8472/.cargo/registry/src/github.com-88ac128001ac3a9a/libc-0.2.7/src/lib.rs;Type;pub type c_schar = i8;
MATCH c_uchar;c_uchar;113;9;/home/the8472/.cargo/registry/src/github.com-88ac128001ac3a9a/libc-0.2.7/src/lib.rs;Type;pub type c_uchar = u8;
MATCH c_short;c_short;114;9;/home/the8472/.cargo/registry/src/github.com-88ac128001ac3a9a/libc-0.2.7/src/lib.rs;Type;pub type c_short = i16;
MATCH c_ushort;c_ushort;115;9;/home/the8472/.cargo/registry/src/github.com-88ac128001ac3a9a/libc-0.2.7/src/lib.rs;Type;pub type c_ushort = u16;
MATCH c_int;c_int;116;9;/home/the8472/.cargo/registry/src/github.com-88ac128001ac3a9a/libc-0.2.7/src/lib.rs;Type;pub type c_int = i32;
MATCH c_uint;c_uint;117;9;/home/the8472/.cargo/registry/src/github.com-88ac128001ac3a9a/libc-0.2.7/src/lib.rs;Type;pub type c_uint = u32;
MATCH c_float;c_float;118;9;/home/the8472/.cargo/registry/src/github.com-88ac128001ac3a9a/libc-0.2.7/src/lib.rs;Type;pub type c_float = f32;
MATCH c_double;c_double;119;9;/home/the8472/.cargo/registry/src/github.com-88ac128001ac3a9a/libc-0.2.7/src/lib.rs;Type;pub type c_double = f64;
MATCH c_longlong;c_longlong;120;9;/home/the8472/.cargo/registry/src/github.com-88ac128001ac3a9a/libc-0.2.7/src/lib.rs;Type;pub type c_longlong = i64;
MATCH c_ulonglong;c_ulonglong;121;9;/home/the8472/.cargo/registry/src/github.com-88ac128001ac3a9a/libc-0.2.7/src/lib.rs;Type;pub type c_ulonglong = u64;
MATCH intmax_t;intmax_t;122;9;/home/the8472/.cargo/registry/src/github.com-88ac128001ac3a9a/libc-0.2.7/src/lib.rs;Type;pub type intmax_t = i64;
MATCH uintmax_t;uintmax_t;123;9;/home/the8472/.cargo/registry/src/github.com-88ac128001ac3a9a/libc-0.2.7/src/lib.rs;Type;pub type uintmax_t = u64;
MATCH size_t;size_t;125;9;/home/the8472/.cargo/registry/src/github.com-88ac128001ac3a9a/libc-0.2.7/src/lib.rs;Type;pub type size_t = usize;
MATCH ptrdiff_t;ptrdiff_t;126;9;/home/the8472/.cargo/registry/src/github.com-88ac128001ac3a9a/libc-0.2.7/src/lib.rs;Type;pub type ptrdiff_t = isize;
MATCH intptr_t;intptr_t;127;9;/home/the8472/.cargo/registry/src/github.com-88ac128001ac3a9a/libc-0.2.7/src/lib.rs;Type;pub type intptr_t = isize;
MATCH uintptr_t;uintptr_t;128;9;/home/the8472/.cargo/registry/src/github.com-88ac128001ac3a9a/libc-0.2.7/src/lib.rs;Type;pub type uintptr_t = usize;
MATCH ssize_t;ssize_t;129;9;/home/the8472/.cargo/registry/src/github.com-88ac128001ac3a9a/libc-0.2.7/src/lib.rs;Type;pub type ssize_t = isize;
MATCH FILE;FILE;131;9;/home/the8472/.cargo/registry/src/github.com-88ac128001ac3a9a/libc-0.2.7/src/lib.rs;Enum;pub enum FILE {}
MATCH fpos_t;fpos_t;132;9;/home/the8472/.cargo/registry/src/github.com-88ac128001ac3a9a/libc-0.2.7/src/lib.rs;Enum;pub enum fpos_t {}
END
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

1 participant