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
{{ message }}
Repository navigation
Add 64-bit rust9x target for XP and Vista x86_64 #3
The regular target would mostly work as the stdlib impl is shared, however it might be useful to be able to do conditional compilation based on cfg(target_vendor = "rust9x").
Hi! I would like to ask a question about cross-compiling with --target=x86_64-rust9x-windows-msvc.
After adding the precompiled rust9x as rust9x-1.76.0-beta-v2 in my toolchain list, I run cargo +rust9x-1.76.0-beta-v2 build --target=x86_64-rust9x-windows-msvc .... compilation command on my project.
I got errors like error[E0463]: can't find crate for std``, error: cannot find macro println` in this scope` or something else related to std library.
Do I miss anything else for compiling on x86_64-rust9x-windows-msvc? Thanks in advance!
EDIT: I'm adding additional log from errors:
Details
Compiling unicode-ident v1.0.12
Compiling autocfg v1.1.0
Compiling windows_x86_64_msvc v0.48.5
Compiling cfg-if v1.0.0
Compiling serde v1.0.193
Compiling windows_x86_64_msvc v0.52.0
Compiling version_check v0.9.4
Compiling syn v1.0.109
Compiling once_cell v1.19.0
Compiling log v0.4.20
Compiling parking_lot_core v0.9.9
error[E0463]: can't find crate for `std`
error[E0463]: can't find crate for `std`
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\proc-macro2-1.0.71\build.rs:37:5
|
37 | use std::env;
| ^^^ can't find crate
error[E0463]: can't find crate for `std`
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\proc-macro2-1.0.71\build.rs:38:5
|
38 | use std::process::Command;
| ^^^ can't find crate
error[E0463]: can't find crate for `std`
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\proc-macro2-1.0.71\build.rs:39:5
|
39 | use std::str;
| ^^^ can't find crate
error[E0463]: can't find crate for `std`
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\proc-macro2-1.0.71\build.rs:40:5
|
40 | use std::u32;
| ^^^ can't find crate
error: cannot find macro `println` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\proc-macro2-1.0.71\build.rs:82:9
|
82 | println!("cargo:rustc-cfg=super_unstable");
| ^^^^^^^
error: cannot find macro `println` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\proc-macro2-1.0.71\build.rs:78:9
|
78 | println!("cargo:rustc-cfg=proc_macro_span");
| ^^^^^^^
error: cannot find macro `println` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\proc-macro2-1.0.71\build.rs:74:9
|
74 | println!("cargo:rustc-cfg=wrap_proc_macro");
| ^^^^^^^
error: cannot find macro `cfg` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\proc-macro2-1.0.71\build.rs:69:9
|
69 | if !cfg!(feature = "proc-macro") {
| ^^^
|
= note: `cfg` is in scope, but it is an attribute: `#[cfg]`
error: cannot find macro `println` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\proc-macro2-1.0.71\build.rs:66:9
|
66 | println!("cargo:rustc-cfg=no_source_text");
| ^^^^^^^
error: cannot find macro `println` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\proc-macro2-1.0.71\build.rs:62:9
|
62 | println!("cargo:rustc-cfg=no_is_available");
| ^^^^^^^
error: cannot find macro `println` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\proc-macro2-1.0.71\build.rs:58:9
|
58 | println!("cargo:rustc-cfg=span_locations");
| ^^^^^^^
error: cannot find macro `cfg` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\proc-macro2-1.0.71\build.rs:57:25
|
57 | if semver_exempt || cfg!(feature = "span-locations") {
| ^^^
|
= note: `cfg` is in scope, but it is an attribute: `#[cfg]`
error: cannot find macro `println` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\proc-macro2-1.0.71\build.rs:54:9
|
54 | println!("cargo:rustc-cfg=procmacro2_semver_exempt");
| ^^^^^^^
error: cannot find macro `cfg` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\proc-macro2-1.0.71\build.rs:51:25
|
51 | let semver_exempt = cfg!(procmacro2_semver_exempt) || docs_rs;
| ^^^
|
= note: `cfg` is in scope, but it is an attribute: `#[cfg]`
error: cannot find macro `println` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\proc-macro2-1.0.71\build.rs:43:5
|
43 | println!("cargo:rerun-if-changed=build.rs");
| ^^^^^^^
error[E0412]: cannot find type `Option` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\proc-macro2-1.0.71\build.rs:91:23
|
91 | fn rustc_version() -> Option<RustcVersion> {
| ^^^^^^ not found in this scope
error[E0425]: cannot find value `None` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\proc-macro2-1.0.71\build.rs:98:16
|
98 | return None;
| ^^^^ not found in this scope
error[E0531]: cannot find tuple struct or tuple variant `Some` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\proc-macro2-1.0.71\build.rs:113:24
|
113 | let flags = if let Some(encoded_rustflags) = env::var_os("CARGO_ENCODED_RUSTFLAGS") {
| ^^^^ not found in this scope
error: requires `sized` lang_item
error[E0425]: cannot find function, tuple struct or tuple variant `Some` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\proc-macro2-1.0.71\build.rs:97:25
|
97 | if pieces.next() != Some("rustc 1") {
| ^^^^ not found in this scope
error[E0425]: cannot find function, tuple struct or tuple variant `Some` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\proc-macro2-1.0.71\build.rs:101:5
|
101 | Some(RustcVersion { minor, nightly })
| ^^^^ not found in this scope
Some errors have detailed explanations: E0412, E0425, E0463, E0531.
For more information about an error, try `rustc --explain E0412`.
error: could not compile `proc-macro2` (build script) due to 22 previous errors
warning: build failed, waiting for other jobs to finish...
error[E0463]: can't find crate for `core`
error[E0463]: can't find crate for `compiler_builtins`
For more information about this error, try `rustc --explain E0463`.
error: could not compile `unicode-ident` (lib) due to 3 previous errors
error: cannot find attribute `derive` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\error.rs:8:3
|
8 | #[derive(Debug)]
| ^^^^^^
error: cannot find attribute `derive` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\error.rs:39:3
|
39 | #[derive(Debug)]
| ^^^^^^
error: cannot find attribute `derive` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\version.rs:8:3
|
8 | #[derive(Clone, Debug, PartialEq, Eq, PartialOrd, Ord)]
| ^^^^^^
error: cannot find attribute `derive` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:82:3
|
82 | #[derive(Clone, Debug)]
| ^^^^^^
error: cannot find macro `println` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:98:5
|
98 | println!("cargo:rustc-cfg={}", cfg);
| ^^^^^^^
error: cannot find macro `println` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:108:5
|
108 | println!("cargo:rerun-if-changed={}", path);
| ^^^^^^^
error: cannot find macro `println` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:119:5
|
119 | println!("cargo:rerun-if-env-changed={}", var);
| ^^^^^^^
error: cannot find macro `format` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:201:19
|
201 | emit(&format!("rustc_{}_{}", major, minor));
| ^^^^^^
error: cannot find macro `format` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:213:18
|
213 | .arg(format!("probe{}", id))
| ^^^^^^
error: cannot find macro `format` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:247:20
|
247 | self.probe(format!("extern crate {} as probe;", name)) // `as _` wasn't stabilized until Rust 1.33
| ^^^^^^
error: cannot find macro `format` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:254:19
|
254 | emit(&format!("has_{}", mangle(name)));
| ^^^^^^
error: cannot find macro `format` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:266:20
|
266 | self.probe(format!("pub use {};", path)).unwrap_or(false)
| ^^^^^^
error: cannot find macro `format` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:275:19
|
275 | emit(&format!("has_{}", mangle(path)));
| ^^^^^^
error: cannot find macro `format` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:294:20
|
294 | self.probe(format!("pub trait Probe: {} + Sized {{}}", name))
| ^^^^^^
error: cannot find macro `format` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:304:19
|
304 | emit(&format!("has_{}", mangle(name)));
| ^^^^^^
error: cannot find macro `format` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:323:20
|
323 | self.probe(format!("pub type Probe = {};", name))
| ^^^^^^
error: cannot find macro `format` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:333:19
|
333 | emit(&format!("has_{}", mangle(name)));
| ^^^^^^
error: cannot find macro `format` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:352:20
|
352 | self.probe(format!("pub fn probe() {{ let _ = {}; }}", expr))
| ^^^^^^
error: cannot find macro `format` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:371:20
|
371 | self.probe(format!("pub const PROBE: () = ((), {}).0;", expr))
| ^^^^^^
error[E0412]: cannot find type `Option` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\error.rs:18:24
|
18 | fn cause(&self) -> Option<&error::Error> {
| ^^^^^^ not found in this scope
error[E0425]: cannot find value `None` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\error.rs:23:36
|
23 | ErrorKind::Other(_) => None,
| ^^^^ not found in this scope
error[E0412]: cannot find type `Result` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\error.rs:29:46
|
29 | fn fmt(&self, f: &mut fmt::Formatter) -> Result<(), fmt::Error> {
| ^^^^^^ not found in this scope
error[E0412]: cannot find type `Result` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\version.rs:25:40
|
25 | pub fn from_rustc(rustc: &Path) -> Result<Self, Error> {
| ^^^^^^ not found in this scope
error[E0531]: cannot find tuple struct or tuple variant `Ok` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:56:13
|
56 | Ok(value) => value,
| ^^ not found in this scope
|
::: C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\version.rs:27:22
|
27 | let output = try!(Command::new(rustc)
| ______________________-
28 | | .args(&["--version", "--verbose"])
29 | | .output()
30 | | .map_err(error::from_io));
| |_____________________________________- in this macro invocation
|
= note: this error originates in the macro `try` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0531]: cannot find tuple struct or tuple variant `Err` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:57:13
|
57 | Err(error) => return Err(error),
| ^^^ not found in this scope
|
::: C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\version.rs:27:22
|
27 | let output = try!(Command::new(rustc)
| ______________________-
28 | | .args(&["--version", "--verbose"])
29 | | .output()
30 | | .map_err(error::from_io));
| |_____________________________________- in this macro invocation
|
= note: this error originates in the macro `try` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0531]: cannot find tuple struct or tuple variant `Ok` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:56:13
|
56 | Ok(value) => value,
| ^^ not found in this scope
|
::: C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\version.rs:34:22
|
34 | let output = try!(str::from_utf8(&output.stdout).map_err(error::from_utf8));
| -------------------------------------------------------------- in this macro invocation
|
= note: this error originates in the macro `try` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0531]: cannot find tuple struct or tuple variant `Err` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:57:13
|
57 | Err(error) => return Err(error),
| ^^^ not found in this scope
|
::: C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\version.rs:34:22
|
34 | let output = try!(str::from_utf8(&output.stdout).map_err(error::from_utf8));
| -------------------------------------------------------------- in this macro invocation
|
= note: this error originates in the macro `try` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0531]: cannot find tuple struct or tuple variant `Some` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\version.rs:38:13
|
38 | Some(line) => &line["release: ".len()..],
| ^^^^ not found in this scope
error[E0531]: cannot find tuple struct or tuple variant `Some` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\version.rs:44:13
|
44 | Some(i) => &release[..i],
| ^^^^ not found in this scope
error[E0531]: cannot find tuple struct or tuple variant `Ok` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:56:13
|
56 | Ok(value) => value,
| ^^ not found in this scope
|
::: C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\version.rs:50:21
|
50 | let major = try!(iter.next().ok_or(error::from_str("missing major version")));
| ----------------------------------------------------------------- in this macro invocation
|
= note: this error originates in the macro `try` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0531]: cannot find tuple struct or tuple variant `Err` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:57:13
|
57 | Err(error) => return Err(error),
| ^^^ not found in this scope
|
::: C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\version.rs:50:21
|
50 | let major = try!(iter.next().ok_or(error::from_str("missing major version")));
| ----------------------------------------------------------------- in this macro invocation
|
= note: this error originates in the macro `try` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0531]: cannot find tuple struct or tuple variant `Ok` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:56:13
|
56 | Ok(value) => value,
| ^^ not found in this scope
|
::: C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\version.rs:51:21
|
51 | let minor = try!(iter.next().ok_or(error::from_str("missing minor version")));
| ----------------------------------------------------------------- in this macro invocation
|
= note: this error originates in the macro `try` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0531]: cannot find tuple struct or tuple variant `Err` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:57:13
|
57 | Err(error) => return Err(error),
| ^^^ not found in this scope
|
::: C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\version.rs:51:21
|
51 | let minor = try!(iter.next().ok_or(error::from_str("missing minor version")));
| ----------------------------------------------------------------- in this macro invocation
|
= note: this error originates in the macro `try` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0531]: cannot find tuple struct or tuple variant `Ok` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:56:13
|
56 | Ok(value) => value,
| ^^ not found in this scope
|
::: C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\version.rs:52:21
|
52 | let patch = try!(iter.next().ok_or(error::from_str("missing patch version")));
| ----------------------------------------------------------------- in this macro invocation
|
= note: this error originates in the macro `try` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0531]: cannot find tuple struct or tuple variant `Err` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:57:13
|
57 | Err(error) => return Err(error),
| ^^^ not found in this scope
|
::: C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\version.rs:52:21
|
52 | let patch = try!(iter.next().ok_or(error::from_str("missing patch version")));
| ----------------------------------------------------------------- in this macro invocation
|
= note: this error originates in the macro `try` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0531]: cannot find tuple struct or tuple variant `Ok` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:56:13
|
56 | Ok(value) => value,
| ^^ not found in this scope
|
::: C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\version.rs:55:13
|
55 | try!(major.parse().map_err(error::from_num)),
| -------------------------------------------- in this macro invocation
|
= note: this error originates in the macro `try` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0531]: cannot find tuple struct or tuple variant `Err` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:57:13
|
57 | Err(error) => return Err(error),
| ^^^ not found in this scope
|
::: C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\version.rs:55:13
|
55 | try!(major.parse().map_err(error::from_num)),
| -------------------------------------------- in this macro invocation
|
= note: this error originates in the macro `try` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0531]: cannot find tuple struct or tuple variant `Ok` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:56:13
|
56 | Ok(value) => value,
| ^^ not found in this scope
|
::: C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\version.rs:56:13
|
56 | try!(minor.parse().map_err(error::from_num)),
| -------------------------------------------- in this macro invocation
|
= note: this error originates in the macro `try` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0531]: cannot find tuple struct or tuple variant `Err` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:57:13
|
57 | Err(error) => return Err(error),
| ^^^ not found in this scope
|
::: C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\version.rs:56:13
|
56 | try!(minor.parse().map_err(error::from_num)),
| -------------------------------------------- in this macro invocation
|
= note: this error originates in the macro `try` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0531]: cannot find tuple struct or tuple variant `Ok` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:56:13
|
56 | Ok(value) => value,
| ^^ not found in this scope
|
::: C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\version.rs:57:13
|
57 | try!(patch.parse().map_err(error::from_num)),
| -------------------------------------------- in this macro invocation
|
= note: this error originates in the macro `try` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0531]: cannot find tuple struct or tuple variant `Err` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:57:13
|
57 | Err(error) => return Err(error),
| ^^^ not found in this scope
|
::: C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\version.rs:57:13
|
57 | try!(patch.parse().map_err(error::from_num)),
| -------------------------------------------- in this macro invocation
|
= note: this error originates in the macro `try` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0412]: cannot find type `Option` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:87:13
|
87 | target: Option<OsString>,
| ^^^^^^ not found in this scope
error[E0412]: cannot find type `Vec` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:89:16
|
89 | rustflags: Vec<String>,
| ^^^ not found in this scope
error[E0412]: cannot find type `String` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:89:20
|
89 | rustflags: Vec<String>,
| ^^^^^^ not found in this scope
|
help: you might be missing a type parameter
|
83 | pub struct AutoCfg<String> {
| ++++++++
error[E0412]: cannot find type `Result` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:140:21
|
140 | pub fn new() -> Result<Self, Error> {
| ^^^^^^ not found in this scope
error[E0531]: cannot find tuple struct or tuple variant `Some` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:142:13
|
142 | Some(d) => Self::with_dir(d),
| ^^^^ not found in this scope
error[E0405]: cannot find trait `Into` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:155:24
|
155 | pub fn with_dir<T: Into<PathBuf>>(dir: T) -> Result<Self, Error> {
| ^^^^ not found in this scope
error[E0412]: cannot find type `Result` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:155:50
|
155 | pub fn with_dir<T: Into<PathBuf>>(dir: T) -> Result<Self, Error> {
| ^^^^^^ not found in this scope
error[E0531]: cannot find tuple struct or tuple variant `Ok` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:56:13
|
56 | Ok(value) => value,
| ^^ not found in this scope
...
158 | let rustc_version = try!(Version::from_rustc(&rustc));
| --------------------------------- in this macro invocation
|
= note: this error originates in the macro `try` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0531]: cannot find tuple struct or tuple variant `Err` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:57:13
|
57 | Err(error) => return Err(error),
| ^^^ not found in this scope
...
158 | let rustc_version = try!(Version::from_rustc(&rustc));
| --------------------------------- in this macro invocation
|
= note: this error originates in the macro `try` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0531]: cannot find tuple struct or tuple variant `Ok` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:56:13
|
56 | Ok(value) => value,
| ^^ not found in this scope
...
164 | let meta = try!(fs::metadata(&dir).map_err(error::from_io));
| ------------------------------------------------ in this macro invocation
|
= note: this error originates in the macro `try` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0531]: cannot find tuple struct or tuple variant `Err` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:57:13
|
57 | Err(error) => return Err(error),
| ^^^ not found in this scope
...
164 | let meta = try!(fs::metadata(&dir).map_err(error::from_io));
| ------------------------------------------------ in this macro invocation
|
= note: this error originates in the macro `try` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0405]: cannot find trait `AsRef` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:205:17
|
205 | fn probe<T: AsRef<[u8]>>(&self, code: T) -> Result<bool, Error> {
| ^^^^^ not found in this scope
error[E0412]: cannot find type `Result` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:205:49
|
205 | fn probe<T: AsRef<[u8]>>(&self, code: T) -> Result<bool, Error> {
| ^^^^^^ not found in this scope
error[E0531]: cannot find tuple struct or tuple variant `Some` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:219:16
|
219 | if let Some(target) = self.target.as_ref() {
| ^^^^ not found in this scope
error[E0531]: cannot find tuple struct or tuple variant `Ok` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:56:13
|
56 | Ok(value) => value,
| ^^ not found in this scope
...
226 | let mut child = try!(command.spawn().map_err(error::from_io));
| --------------------------------------------- in this macro invocation
|
= note: this error originates in the macro `try` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0531]: cannot find tuple struct or tuple variant `Err` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:57:13
|
57 | Err(error) => return Err(error),
| ^^^ not found in this scope
...
226 | let mut child = try!(command.spawn().map_err(error::from_io));
| --------------------------------------------- in this macro invocation
|
= note: this error originates in the macro `try` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0531]: cannot find tuple struct or tuple variant `Ok` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:56:13
|
56 | Ok(value) => value,
| ^^ not found in this scope
...
230 | try!(stdin.write_all(b"#![no_std]\n").map_err(error::from_io));
| -------------------------------------------------------------- in this macro invocation
|
= note: this error originates in the macro `try` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0531]: cannot find tuple struct or tuple variant `Err` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:57:13
|
57 | Err(error) => return Err(error),
| ^^^ not found in this scope
...
230 | try!(stdin.write_all(b"#![no_std]\n").map_err(error::from_io));
| -------------------------------------------------------------- in this macro invocation
|
= note: this error originates in the macro `try` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0531]: cannot find tuple struct or tuple variant `Ok` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:56:13
|
56 | Ok(value) => value,
| ^^ not found in this scope
...
232 | try!(stdin.write_all(code.as_ref()).map_err(error::from_io));
| ------------------------------------------------------------ in this macro invocation
|
= note: this error originates in the macro `try` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0531]: cannot find tuple struct or tuple variant `Err` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:57:13
|
57 | Err(error) => return Err(error),
| ^^^ not found in this scope
...
232 | try!(stdin.write_all(code.as_ref()).map_err(error::from_io));
| ------------------------------------------------------------ in this macro invocation
|
= note: this error originates in the macro `try` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0531]: cannot find tuple struct or tuple variant `Ok` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:56:13
|
56 | Ok(value) => value,
| ^^ not found in this scope
...
235 | let status = try!(child.wait().map_err(error::from_io));
| ------------------------------------------ in this macro invocation
|
= note: this error originates in the macro `try` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0531]: cannot find tuple struct or tuple variant `Err` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:57:13
|
57 | Err(error) => return Err(error),
| ^^^ not found in this scope
...
235 | let status = try!(child.wait().map_err(error::from_io));
| ------------------------------------------ in this macro invocation
|
= note: this error originates in the macro `try` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0412]: cannot find type `String` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:383:23
|
383 | fn mangle(s: &str) -> String {
| ^^^^^^ not found in this scope
error[E0412]: cannot find type `Option` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:393:14
|
393 | target: &Option<OsString>,
| ^^^^^^ not found in this scope
error[E0412]: cannot find type `Option` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:395:23
|
395 | cargo_target_dir: Option<OsString>,
| ^^^^^^ not found in this scope
error[E0412]: cannot find type `Option` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:414:23
|
414 | fn rustflags(target: &Option<OsString>, dir: &Path) -> Vec<String> {
| ^^^^^^ not found in this scope
error[E0412]: cannot find type `Vec` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:414:56
|
414 | fn rustflags(target: &Option<OsString>, dir: &Path) -> Vec<String> {
| ^^^ not found in this scope
error[E0412]: cannot find type `String` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:414:60
|
414 | fn rustflags(target: &Option<OsString>, dir: &Path) -> Vec<String> {
| ^^^^^^ not found in this scope
|
help: you might be missing a type parameter
|
414 | fn rustflags<String>(target: &Option<OsString>, dir: &Path) -> Vec<String> {
| ++++++++
error[E0531]: cannot find tuple struct or tuple variant `Ok` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:420:12
|
420 | if let Ok(a) = env::var("CARGO_ENCODED_RUSTFLAGS") {
| ^^ not found in this scope
error[E0531]: cannot find tuple struct or tuple variant `Ok` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:440:16
|
440 | if let Ok(rustflags) = env::var("RUSTFLAGS") {
| ^^ not found in this scope
error[E0433]: failed to resolve: use of undeclared type `Vec`
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:422:13
|
422 | Vec::new()
| ^^^ use of undeclared type `Vec`
error[E0433]: failed to resolve: use of undeclared type `Vec`
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:452:5
|
452 | Vec::new()
| ^^^ use of undeclared type `Vec`
error[E0425]: cannot find function, tuple struct or tuple variant `Some` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\error.rs:20:37
|
20 | ErrorKind::Io(ref e) => Some(e),
| ^^^^ not found in this scope
error[E0425]: cannot find function, tuple struct or tuple variant `Some` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\error.rs:21:38
|
21 | ErrorKind::Num(ref e) => Some(e),
| ^^^^ not found in this scope
error[E0425]: cannot find function, tuple struct or tuple variant `Some` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\error.rs:22:39
|
22 | ErrorKind::Utf8(ref e) => Some(e),
| ^^^^ not found in this scope
error[E0425]: cannot find function, tuple struct or tuple variant `Err` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:57:34
|
57 | Err(error) => return Err(error),
| ^^^ not found in this scope
|
::: C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\version.rs:27:22
|
27 | let output = try!(Command::new(rustc)
| ______________________-
28 | | .args(&["--version", "--verbose"])
29 | | .output()
30 | | .map_err(error::from_io));
| |_____________________________________- in this macro invocation
|
= note: this error originates in the macro `try` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0425]: cannot find function, tuple struct or tuple variant `Err` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\version.rs:32:20
|
32 | return Err(error::from_str("could not execute rustc"));
| ^^^ not found in this scope
error[E0425]: cannot find function, tuple struct or tuple variant `Err` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:57:34
|
57 | Err(error) => return Err(error),
| ^^^ not found in this scope
|
::: C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\version.rs:34:22
|
34 | let output = try!(str::from_utf8(&output.stdout).map_err(error::from_utf8));
| -------------------------------------------------------------- in this macro invocation
|
= note: this error originates in the macro `try` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0425]: cannot find function, tuple struct or tuple variant `Err` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\version.rs:39:28
|
39 | None => return Err(error::from_str("could not find rustc release")),
| ^^^ not found in this scope
error[E0425]: cannot find function, tuple struct or tuple variant `Err` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:57:34
|
57 | Err(error) => return Err(error),
| ^^^ not found in this scope
|
::: C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\version.rs:50:21
|
50 | let major = try!(iter.next().ok_or(error::from_str("missing major version")));
| ----------------------------------------------------------------- in this macro invocation
|
= note: this error originates in the macro `try` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0425]: cannot find function, tuple struct or tuple variant `Err` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:57:34
|
57 | Err(error) => return Err(error),
| ^^^ not found in this scope
|
::: C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\version.rs:51:21
|
51 | let minor = try!(iter.next().ok_or(error::from_str("missing minor version")));
| ----------------------------------------------------------------- in this macro invocation
|
= note: this error originates in the macro `try` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0425]: cannot find function, tuple struct or tuple variant `Err` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:57:34
|
57 | Err(error) => return Err(error),
| ^^^ not found in this scope
|
::: C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\version.rs:52:21
|
52 | let patch = try!(iter.next().ok_or(error::from_str("missing patch version")));
| ----------------------------------------------------------------- in this macro invocation
|
= note: this error originates in the macro `try` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0425]: cannot find function, tuple struct or tuple variant `Ok` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\version.rs:54:9
|
54 | Ok(Version::new(
| ^^ not found in this scope
error[E0425]: cannot find function, tuple struct or tuple variant `Err` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:57:34
|
57 | Err(error) => return Err(error),
| ^^^ not found in this scope
|
::: C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\version.rs:55:13
|
55 | try!(major.parse().map_err(error::from_num)),
| -------------------------------------------- in this macro invocation
|
= note: this error originates in the macro `try` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0425]: cannot find function, tuple struct or tuple variant `Err` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:57:34
|
57 | Err(error) => return Err(error),
| ^^^ not found in this scope
|
::: C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\version.rs:56:13
|
56 | try!(minor.parse().map_err(error::from_num)),
| -------------------------------------------- in this macro invocation
|
= note: this error originates in the macro `try` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0425]: cannot find function, tuple struct or tuple variant `Err` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:57:34
|
57 | Err(error) => return Err(error),
| ^^^ not found in this scope
|
::: C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\version.rs:57:13
|
57 | try!(patch.parse().map_err(error::from_num)),
| -------------------------------------------- in this macro invocation
|
= note: this error originates in the macro `try` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0425]: cannot find function, tuple struct or tuple variant `Err` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:143:21
|
143 | None => Err(error::from_str("no OUT_DIR specified!")),
| ^^^ not found in this scope
error[E0425]: cannot find function, tuple struct or tuple variant `Err` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:57:34
|
57 | Err(error) => return Err(error),
| ^^^ not found in this scope
...
158 | let rustc_version = try!(Version::from_rustc(&rustc));
| --------------------------------- in this macro invocation
|
= note: this error originates in the macro `try` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0425]: cannot find function, tuple struct or tuple variant `Err` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:57:34
|
57 | Err(error) => return Err(error),
| ^^^ not found in this scope
...
164 | let meta = try!(fs::metadata(&dir).map_err(error::from_io));
| ------------------------------------------------ in this macro invocation
|
= note: this error originates in the macro `try` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0425]: cannot find function, tuple struct or tuple variant `Err` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:166:20
|
166 | return Err(error::from_str("output path is not a writable directory"));
| ^^^ not found in this scope
error[E0425]: cannot find function, tuple struct or tuple variant `Ok` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:188:9
|
188 | Ok(ac)
| ^^ not found in this scope
error[E0425]: cannot find function, tuple struct or tuple variant `Err` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:57:34
|
57 | Err(error) => return Err(error),
| ^^^ not found in this scope
...
226 | let mut child = try!(command.spawn().map_err(error::from_io));
| --------------------------------------------- in this macro invocation
|
= note: this error originates in the macro `try` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0425]: cannot find function, tuple struct or tuple variant `Err` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:57:34
|
57 | Err(error) => return Err(error),
| ^^^ not found in this scope
...
230 | try!(stdin.write_all(b"#![no_std]\n").map_err(error::from_io));
| -------------------------------------------------------------- in this macro invocation
|
= note: this error originates in the macro `try` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0425]: cannot find function, tuple struct or tuple variant `Err` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:57:34
|
57 | Err(error) => return Err(error),
| ^^^ not found in this scope
...
232 | try!(stdin.write_all(code.as_ref()).map_err(error::from_io));
| ------------------------------------------------------------ in this macro invocation
|
= note: this error originates in the macro `try` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0425]: cannot find function `drop` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:233:9
|
233 | drop(stdin);
| ^^^^ not found in this scope
error[E0425]: cannot find function, tuple struct or tuple variant `Err` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:57:34
|
57 | Err(error) => return Err(error),
| ^^^ not found in this scope
...
235 | let status = try!(child.wait().map_err(error::from_io));
| ------------------------------------------ in this macro invocation
|
= note: this error originates in the macro `try` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0425]: cannot find function, tuple struct or tuple variant `Ok` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:236:9
|
236 | Ok(status.success())
| ^^ not found in this scope
Some errors have detailed explanations: E0405, E0412, E0425, E0433, E0463, E0531.
For more information about an error, try `rustc --explain E0405`.
error: could not compile `autocfg` (lib) due to 99 previous errors
error[E0463]: can't find crate for `std`
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.193\build.rs:1:5
|
1 | use std::env;
| ^^^ can't find crate
error[E0463]: can't find crate for `std`
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.193\build.rs:2:5
|
2 | use std::process::Command;
| ^^^ can't find crate
error[E0463]: can't find crate for `std`
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.193\build.rs:3:5
|
3 | use std::str::{self, FromStr};
| ^^^ can't find crate
error: cannot find macro `println` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.193\build.rs:65:9
|
65 | println!("cargo:rustc-cfg=no_core_cstr");
| ^^^^^^^
error: cannot find macro `println` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.193\build.rs:58:13
|
58 | println!("cargo:rustc-cfg=no_std_atomic");
| ^^^^^^^
error: cannot find macro `println` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.193\build.rs:55:13
|
55 | println!("cargo:rustc-cfg=no_std_atomic64");
| ^^^^^^^
error: cannot find macro `println` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.193\build.rs:43:9
|
43 | println!("cargo:rustc-cfg=no_target_has_atomic");
| ^^^^^^^
error: cannot find macro `println` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.193\build.rs:38:9
|
38 | println!("cargo:rustc-cfg=no_serde_derive");
| ^^^^^^^
error: cannot find macro `println` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.193\build.rs:33:9
|
33 | println!("cargo:rustc-cfg=no_float_copysign");
| ^^^^^^^
error: cannot find macro `println` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.193\build.rs:27:9
|
27 | println!("cargo:rustc-cfg=no_relaxed_trait_bounds");
| ^^^^^^^
error: cannot find macro `println` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.193\build.rs:26:9
|
26 | println!("cargo:rustc-cfg=no_systemtime_checked_add");
| ^^^^^^^
error: cannot find macro `println` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.193\build.rs:25:9
|
25 | println!("cargo:rustc-cfg=no_num_nonzero_signed");
| ^^^^^^^
error: cannot find macro `println` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.193\build.rs:24:9
|
24 | println!("cargo:rustc-cfg=no_core_try_from");
| ^^^^^^^
error: cannot find macro `println` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.193\build.rs:9:5
|
9 | println!("cargo:rerun-if-changed=build.rs");
| ^^^^^^^
error[E0531]: cannot find tuple struct or tuple variant `Some` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.193\build.rs:12:9
|
12 | Some(minor) => minor,
| ^^^^ not found in this scope
error[E0412]: cannot find type `Option` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.193\build.rs:69:29
|
69 | fn rustc_minor_version() -> Option<u32> {
| ^^^^^^ not found in this scope
error[E0531]: cannot find tuple struct or tuple variant `Some` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.193\build.rs:71:9
|
71 | Some(rustc) => rustc,
| ^^^^ not found in this scope
error[E0531]: cannot find tuple struct or tuple variant `Ok` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.193\build.rs:76:9
|
76 | Ok(output) => output,
| ^^ not found in this scope
error[E0531]: cannot find tuple struct or tuple variant `Err` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.193\build.rs:77:9
|
77 | Err(_) => return None,
| ^^^ not found in this scope
error[E0425]: cannot find value `None` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.193\build.rs:77:26
|
77 | Err(_) => return None,
| ^^^^ not found in this scope
error[E0531]: cannot find tuple struct or tuple variant `Ok` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.193\build.rs:81:9
|
81 | Ok(version) => version,
| ^^ not found in this scope
error[E0531]: cannot find tuple struct or tuple variant `Err` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.193\build.rs:82:9
|
82 | Err(_) => return None,
| ^^^ not found in this scope
error[E0425]: cannot find value `None` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.193\build.rs:82:26
|
82 | Err(_) => return None,
| ^^^^ not found in this scope
error[E0425]: cannot find value `None` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.193\build.rs:87:16
|
87 | return None;
| ^^^^ not found in this scope
error[E0531]: cannot find tuple struct or tuple variant `Some` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.193\build.rs:91:9
|
91 | Some(next) => next,
| ^^^^ not found in this scope
error[E0425]: cannot find function, tuple struct or tuple variant `Some` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.193\build.rs:86:25
|
86 | if pieces.next() != Some("rustc 1") {
| ^^^^ not found in this scope
error: could not compile `serde` (build script) due to 28 previous errors
error: cannot find macro `println` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\windows_x86_64_msvc-0.48.5\build.rs:9:5
|
9 | println!("cargo:rustc-link-search=native={}", std::path::Path::new(&dir).join("lib").display());
| ^^^^^^^
error[E0463]: can't find crate for `std`
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\windows_x86_64_msvc-0.48.5\build.rs:2:18
|
2 | let target = std::env::var("TARGET").unwrap();
| ^^^ can't find crate
error[E0463]: can't find crate for `std`
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\windows_x86_64_msvc-0.48.5\build.rs:7:15
|
7 | let dir = std::env::var("CARGO_MANIFEST_DIR").unwrap();
| ^^^ can't find crate
error: could not compile `windows_x86_64_msvc` (build script) due to 5 previous errors
error: cannot find macro `write` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\date.rs:180:9
|
180 | write!(f, "{}-{:02}-{:02}", y, m, d)
| ^^^^^
error: cannot find attribute `derive` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\date.rs:5:3
|
5 | #[derive(Debug, PartialEq, Eq, Copy, Clone, PartialOrd, Ord)]
| ^^^^^^
error: cannot find macro `write` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\channel.rs:191:9
|
191 | write!(f, "{}", self.as_str())
| ^^^^^
error: cannot find attribute `derive` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\channel.rs:12:3
|
12 | #[derive(Debug, PartialEq, Eq, Copy, Clone)]
| ^^^^^^
error: cannot find attribute `derive` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\channel.rs:3:3
|
3 | #[derive(Debug, PartialEq, Eq, Copy, Clone)]
| ^^^^^^
error: cannot find macro `write` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\version.rs:201:9
|
201 | write!(f, "Version({:?}, {:?})", self.0, self.to_mmp())
| ^^^^^
error: cannot find macro `write` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\version.rs:194:9
|
194 | write!(f, "{}.{}.{}", major, minor, patch)
| ^^^^^
error: cannot find attribute `derive` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\version.rs:4:3
|
4 | #[derive(PartialEq, Eq, Copy, Clone, PartialOrd, Ord)]
| ^^^^^^
error[E0412]: cannot find type `Option` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\version.rs:21:22
|
21 | pub fn read() -> Option<Version> {
| ^^^^^^ not found in this scope
error[E0412]: cannot find type `Option` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\version.rs:57:36
|
57 | pub fn parse(version: &str) -> Option<Version> {
| ^^^^^^ not found in this scope
error[E0531]: cannot find tuple struct or tuple variant `Err` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\version.rs:67:30
|
67 | (3, _) | (_, Err(_)) => return None,
| ^^^ not found in this scope
error[E0425]: cannot find value `None` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\version.rs:67:48
|
67 | (3, _) | (_, Err(_)) => return None,
| ^^^^ not found in this scope
error[E0531]: cannot find tuple struct or tuple variant `Ok` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\version.rs:68:21
|
68 | (_, Ok(v)) => v,
| ^^ not found in this scope
error[E0412]: cannot find type `Option` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\channel.rs:29:22
|
29 | pub fn read() -> Option<Channel> {
| ^^^^^^ not found in this scope
error[E0412]: cannot find type `Option` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\channel.rs:56:36
|
56 | pub fn parse(version: &str) -> Option<Channel> {
| ^^^^^^ not found in this scope
error[E0425]: cannot find value `None` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\channel.rs:67:13
|
67 | None
| ^^^^ not found in this scope
error[E0412]: cannot find type `Option` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\date.rs:22:22
|
22 | pub fn read() -> Option<Date> {
| ^^^^^^ not found in this scope
error[E0412]: cannot find type `Option` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\date.rs:51:33
|
51 | pub fn parse(date: &str) -> Option<Date> {
| ^^^^^^ not found in this scope
error[E0531]: cannot find tuple struct or tuple variant `Err` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\date.rs:55:30
|
55 | (3, _) | (_, Err(_)) => return None,
| ^^^ not found in this scope
error[E0425]: cannot find value `None` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\date.rs:55:48
|
55 | (3, _) | (_, Err(_)) => return None,
| ^^^^ not found in this scope
error[E0531]: cannot find tuple struct or tuple variant `Ok` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\date.rs:56:21
|
56 | (_, Ok(v)) => v,
| ^^ not found in this scope
error[E0425]: cannot find value `None` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\date.rs:62:20
|
62 | return None;
| ^^^^ not found in this scope
error[E0412]: cannot find type `Option` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\lib.rs:97:53
|
97 | fn version_and_date_from_rustc_version(s: &str) -> (Option<String>, Option<String>) {
| ^^^^^^ not found in this scope
error[E0412]: cannot find type `String` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\lib.rs:97:60
|
97 | fn version_and_date_from_rustc_version(s: &str) -> (Option<String>, Option<String>) {
| ^^^^^^ not found in this scope
|
help: you might be missing a type parameter
|
97 | fn version_and_date_from_rustc_version<String>(s: &str) -> (Option<String>, Option<String>) {
| ++++++++
error[E0412]: cannot find type `Option` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\lib.rs:97:69
|
97 | fn version_and_date_from_rustc_version(s: &str) -> (Option<String>, Option<String>) {
| ^^^^^^ not found in this scope
error[E0412]: cannot find type `String` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\lib.rs:97:76
|
97 | fn version_and_date_from_rustc_version(s: &str) -> (Option<String>, Option<String>) {
| ^^^^^^ not found in this scope
|
help: you might be missing a type parameter
|
97 | fn version_and_date_from_rustc_version<String>(s: &str) -> (Option<String>, Option<String>) {
| ++++++++
error[E0412]: cannot find type `Option` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\lib.rs:107:61
|
107 | fn version_and_date_from_rustc_verbose_version(s: &str) -> (Option<String>, Option<String>) {
| ^^^^^^ not found in this scope
error[E0412]: cannot find type `String` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\lib.rs:107:68
|
107 | fn version_and_date_from_rustc_verbose_version(s: &str) -> (Option<String>, Option<String>) {
| ^^^^^^ not found in this scope
|
help: you might be missing a type parameter
|
107 | fn version_and_date_from_rustc_verbose_version<String>(s: &str) -> (Option<String>, Option<String>) {
| ++++++++
error[E0412]: cannot find type `Option` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\lib.rs:107:77
|
107 | fn version_and_date_from_rustc_verbose_version(s: &str) -> (Option<String>, Option<String>) {
| ^^^^^^ not found in this scope
error[E0412]: cannot find type `String` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\lib.rs:107:84
|
107 | fn version_and_date_from_rustc_verbose_version(s: &str) -> (Option<String>, Option<String>) {
| ^^^^^^ not found in this scope
|
help: you might be missing a type parameter
|
107 | fn version_and_date_from_rustc_verbose_version<String>(s: &str) -> (Option<String>, Option<String>) {
| ++++++++
error[E0425]: cannot find value `None` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\lib.rs:108:36
|
108 | let (mut version, mut date) = (None, None);
| ^^^^ not found in this scope
error[E0425]: cannot find value `None` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\lib.rs:108:42
|
108 | let (mut version, mut date) = (None, None);
| ^^^^ not found in this scope
error[E0531]: cannot find tuple struct or tuple variant `Some` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\lib.rs:112:13
|
112 | Some("rustc") => {
| ^^^^ not found in this scope
error[E0531]: cannot find tuple struct or tuple variant `Some` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\lib.rs:117:13
|
117 | Some("release:") => version = split(line),
| ^^^^ not found in this scope
error[E0531]: cannot find tuple struct or tuple variant `Some` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\lib.rs:118:13
|
118 | Some("commit-date:") if line.ends_with("unknown") => date = None,
| ^^^^ not found in this scope
error[E0425]: cannot find value `None` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\lib.rs:118:73
|
118 | Some("commit-date:") if line.ends_with("unknown") => date = None,
| ^^^^ not found in this scope
error[E0531]: cannot find tuple struct or tuple variant `Some` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\lib.rs:119:13
|
119 | Some("commit-date:") => date = split(line),
| ^^^^ not found in this scope
error[E0412]: cannot find type `Option` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\lib.rs:128:30
|
128 | fn get_version_and_date() -> Option<(Option<String>, Option<String>)> {
| ^^^^^^ not found in this scope
error[E0412]: cannot find type `Option` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\lib.rs:128:38
|
128 | fn get_version_and_date() -> Option<(Option<String>, Option<String>)> {
| ^^^^^^ not found in this scope
error[E0412]: cannot find type `String` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\lib.rs:128:45
|
128 | fn get_version_and_date() -> Option<(Option<String>, Option<String>)> {
| ^^^^^^ not found in this scope
|
help: you might be missing a type parameter
|
128 | fn get_version_and_date<String>() -> Option<(Option<String>, Option<String>)> {
| ++++++++
error[E0412]: cannot find type `Option` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\lib.rs:128:54
|
128 | fn get_version_and_date() -> Option<(Option<String>, Option<String>)> {
| ^^^^^^ not found in this scope
error[E0412]: cannot find type `String` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\lib.rs:128:61
|
128 | fn get_version_and_date() -> Option<(Option<String>, Option<String>)> {
| ^^^^^^ not found in this scope
|
help: you might be missing a type parameter
|
128 | fn get_version_and_date<String>() -> Option<(Option<String>, Option<String>)> {
| ++++++++
error[E0412]: cannot find type `Option` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\lib.rs:143:20
|
143 | pub fn triple() -> Option<(Version, Channel, Date)> {
| ^^^^^^ not found in this scope
error[E0531]: cannot find tuple struct or tuple variant `Some` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\lib.rs:145:9
|
145 | Some((Some(version), Some(date))) => (version, date),
| ^^^^ not found in this scope
error[E0531]: cannot find tuple struct or tuple variant `Some` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\lib.rs:145:15
|
145 | Some((Some(version), Some(date))) => (version, date),
| ^^^^ not found in this scope
error[E0531]: cannot find tuple struct or tuple variant `Some` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\lib.rs:145:30
|
145 | Some((Some(version), Some(date))) => (version, date),
| ^^^^ not found in this scope
error[E0425]: cannot find value `None` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\lib.rs:146:21
|
146 | _ => return None
| ^^^^ not found in this scope
error[E0531]: cannot find tuple struct or tuple variant `Some` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\lib.rs:151:9
|
151 | Some(version) => match Channel::parse(&version_str) {
| ^^^^ not found in this scope
error[E0531]: cannot find tuple struct or tuple variant `Some` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\lib.rs:152:13
|
152 | Some(channel) => match Date::parse(&date_str) {
| ^^^^ not found in this scope
error[E0531]: cannot find tuple struct or tuple variant `Some` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\lib.rs:153:17
|
153 | Some(date) => Some((version, channel, date)),
| ^^^^ not found in this scope
error[E0425]: cannot find value `None` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\lib.rs:154:22
|
154 | _ => None,
| ^^^^ not found in this scope
error[E0425]: cannot find value `None` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\lib.rs:156:18
|
156 | _ => None,
| ^^^^ not found in this scope
error[E0425]: cannot find value `None` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\lib.rs:158:14
|
158 | _ => None
| ^^^^ not found in this scope
error[E0412]: cannot find type `Option` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\lib.rs:171:39
|
171 | pub fn is_min_date(min_date: &str) -> Option<bool> {
| ^^^^^^ not found in this scope
error[E0531]: cannot find tuple struct or tuple variant `Some` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\lib.rs:173:10
|
173 | (Some(rustc_date), Some(min_date)) => Some(rustc_date >= min_date),
| ^^^^ not found in this scope
error[E0531]: cannot find tuple struct or tuple variant `Some` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\lib.rs:173:28
|
173 | (Some(rustc_date), Some(min_date)) => Some(rustc_date >= min_date),
| ^^^^ not found in this scope
error[E0425]: cannot find value `None` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\lib.rs:174:14
|
174 | _ => None
| ^^^^ not found in this scope
error[E0412]: cannot find type `Option` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\lib.rs:187:39
|
187 | pub fn is_max_date(max_date: &str) -> Option<bool> {
| ^^^^^^ not found in this scope
error[E0531]: cannot find tuple struct or tuple variant `Some` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\lib.rs:189:10
|
189 | (Some(rustc_date), Some(max_date)) => Some(rustc_date <= max_date),
| ^^^^ not found in this scope
error[E0531]: cannot find tuple struct or tuple variant `Some` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\lib.rs:189:28
|
189 | (Some(rustc_date), Some(max_date)) => Some(rustc_date <= max_date),
| ^^^^ not found in this scope
error[E0425]: cannot find value `None` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\lib.rs:190:14
|
190 | _ => None
| ^^^^ not found in this scope
error[E0412]: cannot find type `Option` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\lib.rs:203:37
|
203 | pub fn is_exact_date(date: &str) -> Option<bool> {
| ^^^^^^ not found in this scope
error[E0531]: cannot find tuple struct or tuple variant `Some` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\lib.rs:205:10
|
205 | (Some(rustc_date), Some(date)) => Some(rustc_date == date),
| ^^^^ not found in this scope
error[E0531]: cannot find tuple struct or tuple variant `Some` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\lib.rs:205:28
|
205 | (Some(rustc_date), Some(date)) => Some(rustc_date == date),
| ^^^^ not found in this scope
error[E0425]: cannot find value `None` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\lib.rs:206:14
|
206 | _ => None
| ^^^^ not found in this scope
error[E0412]: cannot find type `Option` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\lib.rs:219:45
|
219 | pub fn is_min_version(min_version: &str) -> Option<bool> {
| ^^^^^^ not found in this scope
error[E0531]: cannot find tuple struct or tuple variant `Some` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\lib.rs:221:10
|
221 | (Some(rustc_ver), Some(min_ver)) => Some(rustc_ver >= min_ver),
| ^^^^ not found in this scope
error[E0531]: cannot find tuple struct or tuple variant `Some` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\lib.rs:221:27
|
221 | (Some(rustc_ver), Some(min_ver)) => Some(rustc_ver >= min_ver),
| ^^^^ not found in this scope
error[E0425]: cannot find value `None` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\lib.rs:222:14
|
222 | _ => None
| ^^^^ not found in this scope
error[E0412]: cannot find type `Option` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\lib.rs:235:45
|
235 | pub fn is_max_version(max_version: &str) -> Option<bool> {
| ^^^^^^ not found in this scope
error[E0531]: cannot find tuple struct or tuple variant `Some` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\lib.rs:237:10
|
237 | (Some(rustc_ver), Some(max_ver)) => Some(rustc_ver <= max_ver),
| ^^^^ not found in this scope
error[E0531]: cannot find tuple struct or tuple variant `Some` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\lib.rs:237:27
|
237 | (Some(rustc_ver), Some(max_ver)) => Some(rustc_ver <= max_ver),
| ^^^^ not found in this scope
error[E0425]: cannot find value `None` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\lib.rs:238:14
|
238 | _ => None
| ^^^^ not found in this scope
error[E0412]: cannot find type `Option` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\lib.rs:250:43
|
250 | pub fn is_exact_version(version: &str) -> Option<bool> {
| ^^^^^^ not found in this scope
error[E0531]: cannot find tuple struct or tuple variant `Some` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\lib.rs:252:10
|
252 | (Some(rustc_ver), Some(version)) => Some(rustc_ver == version),
| ^^^^ not found in this scope
error[E0531]: cannot find tuple struct or tuple variant `Some` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\lib.rs:252:27
|
252 | (Some(rustc_ver), Some(version)) => Some(rustc_ver == version),
| ^^^^ not found in this scope
error[E0425]: cannot find value `None` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\lib.rs:253:14
|
253 | _ => None
| ^^^^ not found in this scope
error[E0412]: cannot find type `Option` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\lib.rs:269:34
|
269 | pub fn is_feature_flaggable() -> Option<bool> {
| ^^^^^^ not found in this scope
error[E0412]: cannot find type `Option` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\lib.rs:289:43
|
289 | pub fn supports_feature(feature: &str) -> Option<bool> {
| ^^^^^^ not found in this scope
error[E0531]: cannot find tuple struct or tuple variant `Some` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\lib.rs:291:9
|
291 | Some(true) => { /* continue */ }
| ^^^^ not found in this scope
error[E0531]: cannot find tuple struct or tuple variant `Some` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\lib.rs:292:9
|
292 | Some(false) => return Some(false),
| ^^^^ not found in this scope
error[E0531]: cannot find tuple struct or tuple variant `Some` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\lib.rs:300:12
|
300 | if let Some((flags, delim)) = env_flags {
| ^^^^ not found in this scope
error[E0531]: cannot find tuple struct or tuple variant `Some` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\lib.rs:309:16
|
309 | if let Some(allow_features) = allow_features.last() {
| ^^^^ not found in this scope
error[E0433]: failed to resolve: use of undeclared type `String`
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\lib.rs:131:28
|
131 | .and_then(|output| String::from_utf8(output.stdout).ok())
| ^^^^^^ use of undeclared type `String`
error[E0425]: cannot find function, tuple struct or tuple variant `Some` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\version.rs:73:9
|
73 | Some(Version::from_mmp(maj, min, patch))
| ^^^^ not found in this scope
error[E0425]: cannot find function, tuple struct or tuple variant `Some` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\channel.rs:59:13
|
59 | Some(Channel(Kind::Dev))
| ^^^^ not found in this scope
error[E0425]: cannot find function, tuple struct or tuple variant `Some` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\channel.rs:61:13
|
61 | Some(Channel(Kind::Nightly))
| ^^^^ not found in this scope
error[E0425]: cannot find function, tuple struct or tuple variant `Some` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\channel.rs:63:13
|
63 | Some(Channel(Kind::Beta))
| ^^^^ not found in this scope
error[E0425]: cannot find function, tuple struct or tuple variant `Some` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\channel.rs:65:13
|
65 | Some(Channel(Kind::Stable))
| ^^^^ not found in this scope
error[E0425]: cannot find function, tuple struct or tuple variant `Some` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\date.rs:65:9
|
65 | Some(Date::from_ymd(year, month as u8, day as u8))
| ^^^^ not found in this scope
error[E0425]: cannot find function, tuple struct or tuple variant `Some` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\lib.rs:153:31
|
153 | Some(date) => Some((version, channel, date)),
| ^^^^ not found in this scope
error[E0425]: cannot find function, tuple struct or tuple variant `Some` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\lib.rs:173:47
|
173 | (Some(rustc_date), Some(min_date)) => Some(rustc_date >= min_date),
| ^^^^ not found in this scope
error[E0425]: cannot find function, tuple struct or tuple variant `Some` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\lib.rs:189:47
|
189 | (Some(rustc_date), Some(max_date)) => Some(rustc_date <= max_date),
| ^^^^ not found in this scope
error[E0425]: cannot find function, tuple struct or tuple variant `Some` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\lib.rs:205:43
|
205 | (Some(rustc_date), Some(date)) => Some(rustc_date == date),
| ^^^^ not found in this scope
error[E0425]: cannot find function, tuple struct or tuple variant `Some` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\lib.rs:221:45
|
221 | (Some(rustc_ver), Some(min_ver)) => Some(rustc_ver >= min_ver),
| ^^^^ not found in this scope
error[E0425]: cannot find function, tuple struct or tuple variant `Some` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\lib.rs:237:45
|
237 | (Some(rustc_ver), Some(max_ver)) => Some(rustc_ver <= max_ver),
| ^^^^ not found in this scope
error[E0425]: cannot find function, tuple struct or tuple variant `Some` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\lib.rs:252:45
|
252 | (Some(rustc_ver), Some(version)) => Some(rustc_ver == version),
| ^^^^ not found in this scope
error[E0425]: cannot find function, tuple struct or tuple variant `Some` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\lib.rs:292:31
|
292 | Some(false) => return Some(false),
| ^^^^ not found in this scope
error[E0425]: cannot find function, tuple struct or tuple variant `Some` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\lib.rs:310:20
|
310 | return Some(allow_features.split(',').any(|f| f.trim() == feature));
| ^^^^ not found in this scope
error[E0425]: cannot find function, tuple struct or tuple variant `Some` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\lib.rs:316:5
|
316 | Some(true)
| ^^^^ not found in this scope
Some errors have detailed explanations: E0412, E0425, E0433, E0463, E0531.
error: cannot find macro `println` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\windows_x86_64_msvc-0.52.0\build.rs:9:5
|
9 | println!("cargo:rustc-link-search=native={}", std::path::Path::new(&dir).join("lib").display());
| ^^^^^^^
error: could not compile `version_check` (lib) due to 101 previous errors
error[E0463]: can't find crate for `std`
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\windows_x86_64_msvc-0.52.0\build.rs:2:18
|
2 | let target = std::env::var("TARGET").unwrap();
| ^^^ can't find crate
error[E0463]: can't find crate for `std`
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\windows_x86_64_msvc-0.52.0\build.rs:7:15
|
7 | let dir = std::env::var("CARGO_MANIFEST_DIR").unwrap();
| ^^^ can't find crate
error: could not compile `windows_x86_64_msvc` (build script) due to 5 previous errors
error[E0463]: can't find crate for `std`
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\syn-1.0.109\build.rs:1:5
|
1 | use std::env;
| ^^^ can't find crate
error[E0463]: can't find crate for `std`
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\syn-1.0.109\build.rs:2:5
|
2 | use std::process::Command;
| ^^^ can't find crate
error[E0463]: can't find crate for `std`
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\syn-1.0.109\build.rs:3:5
|
3 | use std::str;
| ^^^ can't find crate
error: cannot find macro `println` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\syn-1.0.109\build.rs:31:9
|
31 | println!("cargo:rustc-cfg=syn_disable_nightly_tests");
| ^^^^^^^
error: cannot find macro `println` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\syn-1.0.109\build.rs:27:9
|
27 | println!("cargo:rustc-cfg=syn_no_negative_literal_parse");
| ^^^^^^^
error: cannot find macro `println` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\syn-1.0.109\build.rs:23:9
|
23 | println!("cargo:rustc-cfg=syn_no_non_exhaustive");
| ^^^^^^^
error: cannot find macro `println` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\syn-1.0.109\build.rs:19:9
|
19 | println!("cargo:rustc-cfg=syn_no_const_vec_new");
| ^^^^^^^
error: cannot find macro `println` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\syn-1.0.109\build.rs:15:9
|
15 | println!("cargo:rustc-cfg=syn_omit_await_from_token_macro");
| ^^^^^^^
error[E0531]: cannot find tuple struct or tuple variant `Some` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\syn-1.0.109\build.rs:10:9
|
10 | Some(compiler) => compiler,
| ^^^^ not found in this scope
error[E0412]: cannot find type `Option` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\syn-1.0.109\build.rs:40:23
|
40 | fn rustc_version() -> Option<Compiler> {
| ^^^^^^ not found in this scope
error[E0425]: cannot find value `None` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\syn-1.0.109\build.rs:46:16
|
46 | return None;
| ^^^^ not found in this scope
error[E0425]: cannot find function, tuple struct or tuple variant `Some` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\syn-1.0.109\build.rs:45:25
|
45 | if pieces.next() != Some("rustc 1") {
| ^^^^ not found in this scope
error[E0425]: cannot find function, tuple struct or tuple variant `Some` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\syn-1.0.109\build.rs:50:5
|
50 | Some(Compiler { minor, nightly })
| ^^^^ not found in this scope
error: could not compile `syn` (build script) due to 15 previous errors
error: cannot find macro `println` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\parking_lot_core-0.9.9\build.rs:8:9
|
8 | println!("cargo:rustc-cfg=tsan_enabled");
| ^^^^^^^
error: cannot find macro `println` in this scope
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\parking_lot_core-0.9.9\build.rs:5:5
|
5 | println!("cargo:rerun-if-changed=build.rs");
| ^^^^^^^
error[E0463]: can't find crate for `std`
--> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\parking_lot_core-0.9.9\build.rs:6:25
|
6 | let santizer_list = std::env::var("CARGO_CFG_SANITIZE").unwrap_or_default();
| ^^^ can't find crate
error: could not compile `parking_lot_core` (build script) due to 5 previous errors```
</details>
@LordRibblesdale Thank you, I just fixed it in v3, I forgot to add x86_64-pc-windows-msvc (regular target) to the list of the supported targets. Without it, build scripts and such don't compile (since they miss std).
Hello!
Yes, v3 is working well for compilation! Thank you :)
I've got only this error while linking: note: LINK : fatal error LNK1181: cannot open input file 'windows.0.48.5.lib'
Thanks for the comments!
I've tried both attempts but, when editing build.rs files (I have in the project windows_x86_64_msvc 0.42.2, 0.48.5 and 0.52.0, I've tried first the 0.48.5, then all of them), I have the following error: = note: LINK : fatal error LNK1181: cannot open input file 'windows.lib'
I've also tried to apply a patch like the following:
and I've got a different error (for version matching):
stdout : Updating git repository `https://github.com/rust9x/windows-rs`
error: failed to get `windows_x86_64_msvc` as a dependency of package `windows-targets v0.48.5`
... which satisfies dependency `windows-targets = "^0.48"` (locked to 0.48.5) of package `chrono v0.4.31`
... which satisfies dependency `chrono = "^0.4.31"` (locked to 0.4.31) of package `project v2.2.2 (D:\Project)`
Caused by:
no matching package for override `https://github.com/rust-lang/crates.io-index#[email protected]` found
location searched: https://github.com/rust9x/windows-rs?branch=rust9x-windows-0.52.0-nt
version required: =0.48.5
Right now it didn't work either. I'll just wait for an update of the dependencies and test again. Meanwhile I'll try in the near future to test other combinations in order to force the latest version
@LordRibblesdale a new official build would effectively run into the same problems I think. I've just tested it as well on my project at it seems to work fine. Maybe your dependencies have more/other versions of windows-rs in there? check cargo tree to find out.
Another way to brute-force it into making it work is to use -Zlink-native-libraries=no. This prevents rust from adding any libs to the linker command line. You'll have to manually link libcmt.lib (for statically linked runtime) and all other libraries you or the rust stdlib needs, but it'll prevent adding that stray windows.lib (probably from an old windows-rs version).
Activity
seritools commentedon Dec 29, 2023
Added with the update to 1.76-beta.
ElGreenoProgramador commentedon Jan 3, 2024
Hi! I would like to ask a question about cross-compiling with
--target=x86_64-rust9x-windows-msvc.After adding the precompiled rust9x as
rust9x-1.76.0-beta-v2in my toolchain list, I runcargo +rust9x-1.76.0-beta-v2 build --target=x86_64-rust9x-windows-msvc ....compilation command on my project.I got errors like
error[E0463]: can't find crate forstd``,error: cannot find macroprintln` in this scope` or something else related to std library.Do I miss anything else for compiling on x86_64-rust9x-windows-msvc? Thanks in advance!
EDIT: I'm adding additional log from errors:
Details
seritools commentedon Jan 4, 2024
@LordRibblesdale Thank you, I just fixed it in v3, I forgot to add
x86_64-pc-windows-msvc(regular target) to the list of the supported targets. Without it, build scripts and such don't compile (since they missstd).Let me know if it works!
ElGreenoProgramador commentedon Jan 4, 2024
Hello!
Yes, v3 is working well for compilation! Thank you :)
I've got only this error while linking:
note: LINK : fatal error LNK1181: cannot open input file 'windows.0.48.5.lib'Details
seritools commentedon Jan 4, 2024
@LordRibblesdale Yeah, windows-rs needs a patch to get working, as it checks for the specific target triple.
The easiest way to quickly get it working is to remove these lines: https://github.com/microsoft/windows-rs/blob/6f04b5a50bcc60b062849e94398df8f22ecec7b4/crates/targets/x86_64_msvc/build.rs#L2-L5
I'll also fix this and 9x/ME compat as far as possible in #16.
seritools commentedon Jan 4, 2024
@LordRibblesdale Check out this branch: https://github.com/rust9x/windows-rs/tree/rust9x-windows-0.52.0-nt Should be easy to backport if you need it for 0.48.5 as well 👍
ElGreenoProgramador commentedon Jan 5, 2024
Thanks for the comments!
I've tried both attempts but, when editing build.rs files (I have in the project windows_x86_64_msvc 0.42.2, 0.48.5 and 0.52.0, I've tried first the 0.48.5, then all of them), I have the following error:
= note: LINK : fatal error LNK1181: cannot open input file 'windows.lib'I've also tried to apply a patch like the following:
but without success, nothing changed.
I've tried with the deprecated "replace" TOML entry, as the following:
and I've got a different error (for version matching):
ElGreenoProgramador commentedon Jan 5, 2024
Obviously I'm trying to compile a personal project, but right now I'll try your sample application right now (which compiles)
ElGreenoProgramador commentedon Jan 5, 2024
seritools commentedon Jan 5, 2024
@LordRibblesdale try this:
they should automatically pull in the patched subcrates as well.
Otherwise, microsoft/windows-rs#2774 was merged, so the next official build should work as well :)
ElGreenoProgramador commentedon Jan 5, 2024
Right now it didn't work either. I'll just wait for an update of the dependencies and test again. Meanwhile I'll try in the near future to test other combinations in order to force the latest version
seritools commentedon Jan 5, 2024
@LordRibblesdale a new official build would effectively run into the same problems I think. I've just tested it as well on my project at it seems to work fine. Maybe your dependencies have more/other versions of windows-rs in there? check
cargo treeto find out.seritools commentedon Jan 5, 2024
Another way to brute-force it into making it work is to use
-Zlink-native-libraries=no. This prevents rust from adding any libs to the linker command line. You'll have to manually linklibcmt.lib(for statically linked runtime) and all other libraries you or the rust stdlib needs, but it'll prevent adding that straywindows.lib(probably from an old windows-rs version).Rollup merge of rust-lang#153912 - mu001999-contrib:fix-153842, r=pet…