error[E0433]: failed to resolve: could not find `handle` in `sys` | |
--> library/std/src/sys/windows/ext/process.rs:13:27 | |
| | |
13 | let handle = sys::handle::Handle::new(handle as *mut _); | |
| ^^^^^^ could not find `handle` in `sys` | |
error[E0425]: cannot find function `symlink_inner` in module `sys::fs` | |
--> library/std/src/sys/windows/ext/fs.rs:544:14 | |
| | |
544 | sys::fs::symlink_inner(src.as_ref(), dst.as_ref(), false) | |
| ^^^^^^^^^^^^^ not found in `sys::fs` | |
error[E0425]: cannot find function `symlink_inner` in module `sys::fs` | |
--> library/std/src/sys/windows/ext/fs.rs:564:14 | |
| | |
564 | sys::fs::symlink_inner(src.as_ref(), dst.as_ref(), true) | |
| ^^^^^^^^^^^^^ not found in `sys::fs` | |
error[E0308]: mismatched types | |
--> library/std/src/sys/windows/ext/ffi.rs:101:44 | |
| | |
101 | FromInner::from_inner(Buf { inner: Wtf8Buf::from_wide(wide) }) | |
| ^^^^^^^^^^^^^^^^^^^^^^^^ expected struct `alloc_crate::vec::Vec`, found struct `sys_common::wtf8::Wtf8Buf` | |
| | |
= note: expected struct `alloc_crate::vec::Vec<u8>` | |
found struct `sys_common::wtf8::Wtf8Buf` | |
error[E0599]: no method named `encode_wide` found for slice `[u8]` in the current scope | |
--> library/std/src/sys/windows/ext/ffi.rs:140:31 | |
| | |
140 | self.as_inner().inner.encode_wide() | |
| ^^^^^^^^^^^ method not found in `[u8]` | |
| | |
= help: items from traits can only be used if the trait is implemented and in scope | |
note: `sys::windows_ext::ffi::OsStrExt` defines an item `encode_wide`, perhaps you need to implement it | |
--> library/std/src/sys/windows/ext/ffi.rs:109:1 | |
| | |
109 | pub trait OsStrExt { | |
| ^^^^^^^^^^^^^^^^^^ | |
error[E0599]: no method named `access_mode` found for mutable reference `&mut sys::unix::fs::OpenOptions` in the current scope | |
--> library/std/src/sys/windows/ext/fs.rs:268:29 | |
| | |
268 | self.as_inner_mut().access_mode(access); | |
| ^^^^^^^^^^^ method not found in `&mut sys::unix::fs::OpenOptions` | |
| | |
= help: items from traits can only be used if the trait is implemented and in scope | |
note: `sys::windows_ext::fs::OpenOptionsExt` defines an item `access_mode`, perhaps you need to implement it | |
--> library/std/src/sys/windows/ext/fs.rs:100:1 | |
| | |
100 | pub trait OpenOptionsExt { | |
| ^^^^^^^^^^^^^^^^^^^^^^^^ | |
error[E0599]: no method named `share_mode` found for mutable reference `&mut sys::unix::fs::OpenOptions` in the current scope | |
--> library/std/src/sys/windows/ext/fs.rs:273:29 | |
| | |
273 | self.as_inner_mut().share_mode(share); | |
| ^^^^^^^^^^ method not found in `&mut sys::unix::fs::OpenOptions` | |
| | |
= help: items from traits can only be used if the trait is implemented and in scope | |
note: `sys::windows_ext::fs::OpenOptionsExt` defines an item `share_mode`, perhaps you need to implement it | |
--> library/std/src/sys/windows/ext/fs.rs:100:1 | |
| | |
100 | pub trait OpenOptionsExt { | |
| ^^^^^^^^^^^^^^^^^^^^^^^^ | |
error[E0308]: mismatched types | |
--> library/std/src/sys/windows/ext/fs.rs:278:42 | |
| | |
278 | self.as_inner_mut().custom_flags(flags); | |
| ^^^^^ expected `i32`, found `u32` | |
| | |
help: you can convert an `u32` to `i32` and panic if the converted value wouldn't fit | |
| | |
278 | self.as_inner_mut().custom_flags(flags.try_into().unwrap()); | |
| ^^^^^^^^^^^^^^^^^^^^^^^^^ | |
error[E0599]: no method named `attributes` found for mutable reference `&mut sys::unix::fs::OpenOptions` in the current scope | |
--> library/std/src/sys/windows/ext/fs.rs:283:29 | |
| | |
283 | self.as_inner_mut().attributes(attributes); | |
| ^^^^^^^^^^ method not found in `&mut sys::unix::fs::OpenOptions` | |
| | |
= help: items from traits can only be used if the trait is implemented and in scope | |
note: `sys::windows_ext::fs::OpenOptionsExt` defines an item `attributes`, perhaps you need to implement it | |
--> library/std/src/sys/windows/ext/fs.rs:100:1 | |
| | |
100 | pub trait OpenOptionsExt { | |
| ^^^^^^^^^^^^^^^^^^^^^^^^ | |
error[E0599]: no method named `security_qos_flags` found for mutable reference `&mut sys::unix::fs::OpenOptions` in the current scope | |
--> library/std/src/sys/windows/ext/fs.rs:288:29 | |
| | |
288 | self.as_inner_mut().security_qos_flags(flags); | |
| ^^^^^^^^^^^^^^^^^^ method not found in `&mut sys::unix::fs::OpenOptions` | |
| | |
= help: items from traits can only be used if the trait is implemented and in scope | |
note: `sys::windows_ext::fs::OpenOptionsExt` defines an item `security_qos_flags`, perhaps you need to implement it | |
--> library/std/src/sys/windows/ext/fs.rs:100:1 | |
| | |
100 | pub trait OpenOptionsExt { | |
| ^^^^^^^^^^^^^^^^^^^^^^^^ | |
error[E0599]: no method named `attrs` found for reference `&sys::unix::fs::FileAttr` in the current scope | |
--> library/std/src/sys/windows/ext/fs.rs:477:25 | |
| | |
477 | self.as_inner().attrs() | |
| ^^^^^ method not found in `&sys::unix::fs::FileAttr` | |
error[E0599]: no method named `created_u64` found for reference `&sys::unix::fs::FileAttr` in the current scope | |
--> library/std/src/sys/windows/ext/fs.rs:480:25 | |
| | |
480 | self.as_inner().created_u64() | |
| ^^^^^^^^^^^ method not found in `&sys::unix::fs::FileAttr` | |
error[E0599]: no method named `accessed_u64` found for reference `&sys::unix::fs::FileAttr` in the current scope | |
--> library/std/src/sys/windows/ext/fs.rs:483:25 | |
| | |
483 | self.as_inner().accessed_u64() | |
| ^^^^^^^^^^^^ help: there is an associated function with a similar name: `accessed` | |
error[E0599]: no method named `modified_u64` found for reference `&sys::unix::fs::FileAttr` in the current scope | |
--> library/std/src/sys/windows/ext/fs.rs:486:25 | |
| | |
486 | self.as_inner().modified_u64() | |
| ^^^^^^^^^^^^ help: there is an associated function with a similar name: `modified` | |
error[E0599]: no method named `volume_serial_number` found for reference `&sys::unix::fs::FileAttr` in the current scope | |
--> library/std/src/sys/windows/ext/fs.rs:492:25 | |
| | |
492 | self.as_inner().volume_serial_number() | |
| ^^^^^^^^^^^^^^^^^^^^ method not found in `&sys::unix::fs::FileAttr` | |
| | |
= help: items from traits can only be used if the trait is implemented and in scope | |
note: `sys::windows_ext::fs::MetadataExt` defines an item `volume_serial_number`, perhaps you need to implement it | |
--> library/std/src/sys/windows/ext/fs.rs:302:1 | |
| | |
302 | pub trait MetadataExt { | |
| ^^^^^^^^^^^^^^^^^^^^^ | |
error[E0599]: no method named `number_of_links` found for reference `&sys::unix::fs::FileAttr` in the current scope | |
--> library/std/src/sys/windows/ext/fs.rs:495:25 | |
| | |
495 | self.as_inner().number_of_links() | |
| ^^^^^^^^^^^^^^^ method not found in `&sys::unix::fs::FileAttr` | |
| | |
= help: items from traits can only be used if the trait is implemented and in scope | |
note: `sys::windows_ext::fs::MetadataExt` defines an item `number_of_links`, perhaps you need to implement it | |
--> library/std/src/sys/windows/ext/fs.rs:302:1 | |
| | |
302 | pub trait MetadataExt { | |
| ^^^^^^^^^^^^^^^^^^^^^ | |
error[E0599]: no method named `file_index` found for reference `&sys::unix::fs::FileAttr` in the current scope | |
--> library/std/src/sys/windows/ext/fs.rs:498:25 | |
| | |
498 | self.as_inner().file_index() | |
| ^^^^^^^^^^ method not found in `&sys::unix::fs::FileAttr` | |
| | |
= help: items from traits can only be used if the trait is implemented and in scope | |
note: `sys::windows_ext::fs::MetadataExt` defines an item `file_index`, perhaps you need to implement it | |
--> library/std/src/sys/windows/ext/fs.rs:302:1 | |
| | |
302 | pub trait MetadataExt { | |
| ^^^^^^^^^^^^^^^^^^^^^ | |
error[E0599]: no method named `is_symlink_dir` found for reference `&sys::unix::fs::FileType` in the current scope | |
--> library/std/src/sys/windows/ext/fs.rs:520:25 | |
| | |
520 | self.as_inner().is_symlink_dir() | |
| ^^^^^^^^^^^^^^ help: there is an associated function with a similar name: `is_symlink` | |
| | |
= help: items from traits can only be used if the trait is implemented and in scope | |
note: `sys::windows_ext::fs::FileTypeExt` defines an item `is_symlink_dir`, perhaps you need to implement it | |
--> library/std/src/sys/windows/ext/fs.rs:508:1 | |
| | |
508 | pub trait FileTypeExt { | |
| ^^^^^^^^^^^^^^^^^^^^^ | |
error[E0599]: no method named `is_symlink_file` found for reference `&sys::unix::fs::FileType` in the current scope | |
--> library/std/src/sys/windows/ext/fs.rs:523:25 | |
| | |
523 | self.as_inner().is_symlink_file() | |
| ^^^^^^^^^^^^^^^ help: there is an associated function with a similar name: `is_symlink` | |
| | |
= help: items from traits can only be used if the trait is implemented and in scope | |
note: `sys::windows_ext::fs::FileTypeExt` defines an item `is_symlink_file`, perhaps you need to implement it | |
--> library/std/src/sys/windows/ext/fs.rs:508:1 | |
| | |
508 | pub trait FileTypeExt { | |
| ^^^^^^^^^^^^^^^^^^^^^ | |
error[E0599]: no method named `handle` found for reference `&sys::unix::fs::File` in the current scope | |
--> library/std/src/sys/windows/ext/io.rs:61:25 | |
| | |
61 | self.as_inner().handle().raw() as RawHandle | |
| ^^^^^^ method not found in `&sys::unix::fs::File` | |
error[E0308]: mismatched types | |
--> library/std/src/sys/windows/ext/io.rs:111:56 | |
| | |
111 | fs::File::from_inner(sys::fs::File::from_inner(handle)) | |
| ^^^^^^ expected `i32`, found *-ptr | |
| | |
= note: expected type `i32` | |
found raw pointer `*mut libc::c_void` | |
error[E0599]: no method named `into_handle` found for struct `sys::unix::fs::File` in the current scope | |
--> library/std/src/sys/windows/ext/io.rs:118:27 | |
| | |
118 | self.into_inner().into_handle().into_raw() as *mut _ | |
| ^^^^^^^^^^^ method not found in `sys::unix::fs::File` | |
| | |
::: library/std/src/sys/unix/fs.rs:53:1 | |
| | |
53 | pub struct File(FileDesc); | |
| -------------------------- method `into_handle` not found for this | |
error[E0308]: mismatched types | |
--> library/std/src/sys/windows/ext/io.rs:163:9 | |
| | |
162 | fn as_raw_socket(&self) -> RawSocket { | |
| --------- expected `u64` because of return type | |
163 | *self.as_inner().socket().as_inner() | |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `u64`, found `i32` | |
| | |
help: you can convert an `i32` to `u64` and panic if the converted value wouldn't fit | |
| | |
163 | (*self.as_inner().socket().as_inner()).try_into().unwrap() | |
| | |
error[E0308]: mismatched types | |
--> library/std/src/sys/windows/ext/io.rs:169:9 | |
| | |
168 | fn as_raw_socket(&self) -> RawSocket { | |
| --------- expected `u64` because of return type | |
169 | *self.as_inner().socket().as_inner() | |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `u64`, found `i32` | |
| | |
help: you can convert an `i32` to `u64` and panic if the converted value wouldn't fit | |
| | |
169 | (*self.as_inner().socket().as_inner()).try_into().unwrap() | |
| | |
error[E0308]: mismatched types | |
--> library/std/src/sys/windows/ext/io.rs:175:9 | |
| | |
174 | fn as_raw_socket(&self) -> RawSocket { | |
| --------- expected `u64` because of return type | |
175 | *self.as_inner().socket().as_inner() | |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `u64`, found `i32` | |
| | |
help: you can convert an `i32` to `u64` and panic if the converted value wouldn't fit | |
| | |
175 | (*self.as_inner().socket().as_inner()).try_into().unwrap() | |
| | |
error[E0308]: mismatched types | |
--> library/std/src/sys/windows/ext/io.rs:182:49 | |
| | |
182 | let sock = sys::net::Socket::from_inner(sock); | |
| ^^^^ expected `i32`, found `u64` | |
| | |
help: you can convert an `u64` to `i32` and panic if the converted value wouldn't fit | |
| | |
182 | let sock = sys::net::Socket::from_inner(sock.try_into().unwrap()); | |
| ^^^^^^^^^^^^^^^^^^^^^^^^ | |
error[E0308]: mismatched types | |
--> library/std/src/sys/windows/ext/io.rs:189:49 | |
| | |
189 | let sock = sys::net::Socket::from_inner(sock); | |
| ^^^^ expected `i32`, found `u64` | |
| | |
help: you can convert an `u64` to `i32` and panic if the converted value wouldn't fit | |
| | |
189 | let sock = sys::net::Socket::from_inner(sock.try_into().unwrap()); | |
| ^^^^^^^^^^^^^^^^^^^^^^^^ | |
error[E0308]: mismatched types | |
--> library/std/src/sys/windows/ext/io.rs:196:49 | |
| | |
196 | let sock = sys::net::Socket::from_inner(sock); | |
| ^^^^ expected `i32`, found `u64` | |
| | |
help: you can convert an `u64` to `i32` and panic if the converted value wouldn't fit | |
| | |
196 | let sock = sys::net::Socket::from_inner(sock.try_into().unwrap()); | |
| ^^^^^^^^^^^^^^^^^^^^^^^^ | |
error[E0308]: mismatched types | |
--> library/std/src/sys/windows/ext/io.rs:204:9 | |
| | |
203 | fn into_raw_socket(self) -> RawSocket { | |
| --------- expected `u64` because of return type | |
204 | self.into_inner().into_socket().into_inner() | |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `u64`, found `i32` | |
| | |
help: you can convert an `i32` to `u64` and panic if the converted value wouldn't fit | |
| | |
204 | self.into_inner().into_socket().into_inner().try_into().unwrap() | |
| | |
error[E0308]: mismatched types | |
--> library/std/src/sys/windows/ext/io.rs:211:9 | |
| | |
210 | fn into_raw_socket(self) -> RawSocket { | |
| --------- expected `u64` because of return type | |
211 | self.into_inner().into_socket().into_inner() | |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `u64`, found `i32` | |
| | |
help: you can convert an `i32` to `u64` and panic if the converted value wouldn't fit | |
| | |
211 | self.into_inner().into_socket().into_inner().try_into().unwrap() | |
| | |
error[E0308]: mismatched types | |
--> library/std/src/sys/windows/ext/io.rs:218:9 | |
| | |
217 | fn into_raw_socket(self) -> RawSocket { | |
| --------- expected `u64` because of return type | |
218 | self.into_inner().into_socket().into_inner() | |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `u64`, found `i32` | |
| | |
help: you can convert an `i32` to `u64` and panic if the converted value wouldn't fit | |
| | |
218 | self.into_inner().into_socket().into_inner().try_into().unwrap() | |
| | |
error[E0599]: no variant or associated item named `Handle` found for enum `sys::unix::process::process_common::Stdio` in the current scope | |
--> library/std/src/sys/windows/ext/process.rs:14:39 | |
| | |
14 | let io = sys::process::Stdio::Handle(handle); | |
| ^^^^^^ variant or associated item not found in `sys::unix::process::process_common::Stdio` | |
| | |
::: library/std/src/sys/unix/process/process_common.rs:124:1 | |
| | |
124 | pub enum Stdio { | |
| -------------- variant or associated item `Handle` not found here | |
error[E0599]: no method named `handle` found for reference `&sys::unix::process::process_inner::Process` in the current scope | |
--> library/std/src/sys/windows/ext/process.rs:22:25 | |
| | |
22 | self.as_inner().handle().raw() as *mut _ | |
| ^^^^^^ method not found in `&sys::unix::process::process_inner::Process` | |
error[E0599]: no method named `into_handle` found for struct `sys::unix::process::process_inner::Process` in the current scope | |
--> library/std/src/sys/windows/ext/process.rs:29:27 | |
| | |
29 | self.into_inner().into_handle().into_raw() as *mut _ | |
| ^^^^^^^^^^^ method not found in `sys::unix::process::process_inner::Process` | |
| | |
::: library/std/src/sys/unix/process/process_unix.rs:402:1 | |
| | |
402 | pub struct Process { | |
| ------------------ method `into_handle` not found for this | |
error[E0599]: no method named `handle` found for reference `&sys::unix::pipe::AnonPipe` in the current scope | |
--> library/std/src/sys/windows/ext/process.rs:36:25 | |
| | |
36 | self.as_inner().handle().raw() as *mut _ | |
| ^^^^^^ method not found in `&sys::unix::pipe::AnonPipe` | |
error[E0599]: no method named `handle` found for reference `&sys::unix::pipe::AnonPipe` in the current scope | |
--> library/std/src/sys/windows/ext/process.rs:43:25 | |
| | |
43 | self.as_inner().handle().raw() as *mut _ | |
| ^^^^^^ method not found in `&sys::unix::pipe::AnonPipe` | |
error[E0599]: no method named `handle` found for reference `&sys::unix::pipe::AnonPipe` in the current scope | |
--> library/std/src/sys/windows/ext/process.rs:50:25 | |
| | |
50 | self.as_inner().handle().raw() as *mut _ | |
| ^^^^^^ method not found in `&sys::unix::pipe::AnonPipe` | |
error[E0599]: no method named `into_handle` found for struct `sys::unix::pipe::AnonPipe` in the current scope | |
--> library/std/src/sys/windows/ext/process.rs:57:27 | |
| | |
57 | self.into_inner().into_handle().into_raw() as *mut _ | |
| ^^^^^^^^^^^ method not found in `sys::unix::pipe::AnonPipe` | |
| | |
::: library/std/src/sys/unix/pipe.rs:10:1 | |
| | |
10 | pub struct AnonPipe(FileDesc); | |
| ------------------------------ method `into_handle` not found for this | |
error[E0599]: no method named `into_handle` found for struct `sys::unix::pipe::AnonPipe` in the current scope | |
--> library/std/src/sys/windows/ext/process.rs:64:27 | |
| | |
64 | self.into_inner().into_handle().into_raw() as *mut _ | |
| ^^^^^^^^^^^ method not found in `sys::unix::pipe::AnonPipe` | |
| | |
::: library/std/src/sys/unix/pipe.rs:10:1 | |
| | |
10 | pub struct AnonPipe(FileDesc); | |
| ------------------------------ method `into_handle` not found for this | |
error[E0599]: no method named `into_handle` found for struct `sys::unix::pipe::AnonPipe` in the current scope | |
--> library/std/src/sys/windows/ext/process.rs:71:27 | |
| | |
71 | self.into_inner().into_handle().into_raw() as *mut _ | |
| ^^^^^^^^^^^ method not found in `sys::unix::pipe::AnonPipe` | |
| | |
::: library/std/src/sys/unix/pipe.rs:10:1 | |
| | |
10 | pub struct AnonPipe(FileDesc); | |
| ------------------------------ method `into_handle` not found for this | |
error[E0277]: the trait bound `sys::unix::process::process_inner::ExitStatus: core::convert::From<u32>` is not satisfied | |
--> library/std/src/sys/windows/ext/process.rs:89:41 | |
| | |
89 | process::ExitStatus::from_inner(From::from(raw)) | |
| ^^^^^^^^^^^^^^^ the trait `core::convert::From<u32>` is not implemented for `sys::unix::process::process_inner::ExitStatus` | |
| | |
= help: the following implementations were found: | |
<sys::unix::process::process_inner::ExitStatus as core::convert::From<i32>> | |
= note: required by `core::convert::From::from` | |
error[E0599]: no method named `creation_flags` found for mutable reference `&mut sys::unix::process::process_common::Command` in the current scope | |
--> library/std/src/sys/windows/ext/process.rs:110:29 | |
| | |
110 | self.as_inner_mut().creation_flags(flags); | |
| ^^^^^^^^^^^^^^ method not found in `&mut sys::unix::process::process_common::Command` | |
| | |
= help: items from traits can only be used if the trait is implemented and in scope | |
note: `sys::windows_ext::process::CommandExt` defines an item `creation_flags`, perhaps you need to implement it | |
--> library/std/src/sys/windows/ext/process.rs:97:1 | |
| | |
97 | pub trait CommandExt { | |
| ^^^^^^^^^^^^^^^^^^^^ | |
error[E0599]: no method named `handle` found for reference `&sys::unix::thread::Thread` in the current scope | |
--> library/std/src/sys/windows/ext/thread.rs:12:25 | |
| | |
12 | self.as_inner().handle().raw() as *mut _ | |
| ^^^^^^ method not found in `&sys::unix::thread::Thread` | |
error[E0599]: no method named `into_handle` found for struct `sys::unix::thread::Thread` in the current scope | |
--> library/std/src/sys/windows/ext/thread.rs:19:27 | |
| | |
19 | self.into_inner().into_handle().into_raw() as *mut _ | |
| ^^^^^^^^^^^ method not found in `sys::unix::thread::Thread` | |
| | |
::: library/std/src/sys/unix/thread.rs:14:1 | |
| | |
14 | pub struct Thread { | |
| ----------------- method `into_handle` not found for this | |
error: aborting due to 44 previous errors | |
Some errors have detailed explanations: E0277, E0308, E0425, E0433, E0599. | |
For more information about an error, try `rustc --explain E0277`. | |
error: could not compile `std`. | |
To learn more, run the command again with --verbose. | |
command did not execute successfully: "/home/joshua/src/rust/build/x86_64-unknown-linux-gnu/stage0/bin/cargo" "check" "--target" "x86_64-unknown-linux-gnu" "-Zbinary-dep-depinfo" "-j" "8" "--release" "--features" "panic-unwind backtrace compiler-builtins-c" "--manifest-path" "/home/joshua/src/rust/library/test/Cargo.toml" "--message-format" "json-render-diagnostics" | |
expected success, got: exit code: 101 | |
failed to run: /home/joshua/src/rust/build/bootstrap/debug/bootstrap check | |
Build completed unsuccessfully in 0:00:28 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment