Compiling 1.86 with 1.85 fails -found crate … compiled by an incompatible version of rustc - 1.86.0-nightly … recompile that crate using this compiler (rustc 1.85.0-nightly
Open
Nobody has claimed this yet.
C-bug
T-bootstrap
- Dominant language
- Rust
- Stars
- 119k
- Forks
- 16.1k
- PR merge metrics
- PR metrics pending
Description
$ ./configure --enable-optimize-llvm --enable-extended --llvm-root=/usr/local --enable-profiler --enable-llvm-link-shared --enable-sanitizers --enable-local-rust --disable-docs --target=x86_64-unknown-linux-gnu --enable-vendor && ./x.py -j1 install
Building bootstrap
Finished `dev` profile [unoptimized] target(s) in 17.38s
WARNING: The `change-id` is missing in the `config.toml`. This means that you will not be able to track the major changes made to the bootstrap configurations.
NOTE: to silence this warning, add `change-id = 136941` at the top of `config.toml`
Building stage0 library artifacts (x86_64-unknown-linux-gnu)
Compiling shlex v1.3.0
error[E0514]: found crate `std` compiled by an incompatible version of rustc
|
= note: the following crate versions were found:
crate `std` compiled by rustc 1.86.0-nightly (05f9846f8 2025-03-31) (built from a source tarball): /usr/local/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-bc0f8c35c54fb828.rlib
crate `std` compiled by rustc 1.86.0-nightly (05f9846f8 2025-03-31) (built from a source tarball): /usr/local/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-bc0f8c35c54fb828.so
crate `std` compiled by rustc 1.86.0-nightly (05f9846f8 2025-03-31) (built from a source tarball): /usr/local/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd_detect-83bed3c9e6d8b374.rlib
= help: please recompile that crate using this compiler (rustc 1.85.0-nightly (4d91de4e4 2025-02-17) (built from a source tarball)) (consider running `cargo clean` first)
error[E0514]: found crate `alloc` compiled by an incompatible version of rustc
--> /src/rustc-1.86.0-src/vendor/shlex-1.3.0/src/lib.rs:40:1
|
40 | extern crate alloc;
| ^^^^^^^^^^^^^^^^^^^
|
= note: the following crate versions were found:
crate `alloc` compiled by rustc 1.86.0-nightly (05f9846f8 2025-03-31) (built from a source tarball): /usr/local/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc-25eb5a9625a82860.rlib
= help: please recompile that crate using this compiler (rustc 1.85.0-nightly (4d91de4e4 2025-02-17) (built from a source tarball)) (consider running `cargo clean` first)
error[E0514]: found crate `alloc` compiled by an incompatible version of rustc
--> /src/rustc-1.86.0-src/vendor/shlex-1.3.0/src/bytes.rs:26:1
|
26 | extern crate alloc;
| ^^^^^^^^^^^^^^^^^^^
|
= note: the following crate versions were found:
crate `alloc` compiled by rustc 1.86.0-nightly (05f9846f8 2025-03-31) (built from a source tarball): /usr/local/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc-25eb5a9625a82860.rlib
= help: please recompile that crate using this compiler (rustc 1.85.0-nightly (4d91de4e4 2025-02-17) (built from a source tarball)) (consider running `cargo clean` first)
error: cannot find attribute `test` in this scope
--> /src/rustc-1.86.0-src/vendor/shlex-1.3.0/src/lib.rs:354:3
|
354 | #[test]
| ^^^^
error: cannot find macro `assert_eq` in this scope
--> /src/rustc-1.86.0-src/vendor/shlex-1.3.0/src/lib.rs:356:5
|
356 | assert_eq!(try_join(vec!["\0"]), Err(QuoteError::Nul));
| ^^^^^^^^^
error: cannot find macro `assert_eq` in this scope
--> /src/rustc-1.86.0-src/vendor/shlex-1.3.0/src/lib.rs:357:5
|
357 | assert_eq!(try_quote("\0"), Err(QuoteError::Nul));
| ^^^^^^^^^
error: cannot find attribute `test` in this scope
--> /src/rustc-1.86.0-src/vendor/shlex-1.3.0/src/lib.rs:345:3
|
345 | #[test]
| ^^^^
error: cannot find macro `assert_eq` in this scope
--> /src/rustc-1.86.0-src/vendor/shlex-1.3.0/src/lib.rs:348:5
|
348 | assert_eq!(join(vec![]), "");
| ^^^^^^^^^
error: cannot find macro `assert_eq` in this scope
--> /src/rustc-1.86.0-src/vendor/shlex-1.3.0/src/lib.rs:349:5
|
349 | assert_eq!(join(vec![""]), "''");
| ^^^^^^^^^
error: cannot find macro `assert_eq` in this scope
--> /src/rustc-1.86.0-src/vendor/shlex-1.3.0/src/lib.rs:350:5
|
350 | assert_eq!(join(vec!["a", "b"]), "a b");
| ^^^^^^^^^
error: cannot find macro `assert_eq` in this scope
--> /src/rustc-1.86.0-src/vendor/shlex-1.3.0/src/lib.rs:351:5
|
351 | assert_eq!(join(vec!["foo bar", "baz"]), "'foo bar' baz");
| ^^^^^^^^^
error: cannot find attribute `test` in this scope
--> /src/rustc-1.86.0-src/vendor/shlex-1.3.0/src/lib.rs:286:3
|
286 | #[test]
| ^^^^
error: cannot find macro `assert` in this scope
--> /src/rustc-1.86.0-src/vendor/shlex-1.3.0/src/lib.rs:328:9
|
328 | assert!(parts.len() == 2);
| ^^^^^^
error: cannot find macro `println` in this scope
--> /src/rustc-1.86.0-src/vendor/shlex-1.3.0/src/lib.rs:337:13
|
337 | println!("FAIL: for input <{}>, expected <{}>, got <{}>",
| ^^^^^^^
error: cannot find macro `assert` in this scope
--> /src/rustc-1.86.0-src/vendor/shlex-1.3.0/src/lib.rs:342:5
|
342 | assert!(ok);
| ^^^^^^
error: cannot find attribute `test` in this scope
--> /src/rustc-1.86.0-src/vendor/shlex-1.3.0/src/lib.rs:276:3
|
276 | #[test]
| ^^^^
error: cannot find macro `assert_eq` in this scope
--> /src/rustc-1.86.0-src/vendor/shlex-1.3.0/src/lib.rs:281:13
|
281 | assert_eq!(sh.line_no, 3);
| ^^^^^^^^^
error: cannot find attribute `test` in this scope
--> /src/rustc-1.86.0-src/vendor/shlex-1.3.0/src/lib.rs:269:3
|
269 | #[test]
| ^^^^
error: cannot find macro `assert_eq` in this scope
--> /src/rustc-1.86.0-src/vendor/shlex-1.3.0/src/lib.rs:272:9
|
272 | assert_eq!(split(input), output.map(|o| o.iter().map(|&x| x.to_owned()).collect()));
| ^^^^^^^^^
error: cannot find attribute `derive` in this scope
--> /src/rustc-1.86.0-src/vendor/shlex-1.3.0/src/lib.rs:134:3
|
134 | #[derive(Default, Debug, Clone)]
| ^^^^^^
error: cannot find attribute `derive` in this scope
--> /src/rustc-1.86.0-src/vendor/shlex-1.3.0/src/lib.rs:110:3
|
110 | #[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)]
| ^^^^^^
error: cannot find attribute `test` in this scope
--> /src/rustc-1.86.0-src/vendor/shlex-1.3.0/src/bytes.rs:568:3
|
568 | #[test]
| ^^^^
error: cannot find macro `assert_eq` in this scope
--> /src/rustc-1.86.0-src/vendor/shlex-1.3.0/src/bytes.rs:572:5
|
572 | assert_eq!(join(vec![INVALID_UTF8]), INVALID_UTF8_SINGLEQUOTED);
| ^^^^^^^^^
error: cannot find macro `assert_eq` in this scope
--> /src/rustc-1.86.0-src/vendor/shlex-1.3.0/src/bytes.rs:574:5
|
574 | assert_eq!(join(vec![]), &b""[..]);
| ^^^^^^^^^
error: cannot find macro `assert_eq` in this scope
--> /src/rustc-1.86.0-src/vendor/shlex-1.3.0/src/bytes.rs:575:5
|
575 | assert_eq!(join(vec![&b""[..]]), b"''");
| ^^^^^^^^^
error: cannot find attribute `test` in this scope
--> /src/rustc-1.86.0-src/vendor/shlex-1.3.0/src/bytes.rs:555:3
|
555 | #[test]
| ^^^^
error: cannot find macro `assert_eq` in this scope
--> /src/rustc-1.86.0-src/vendor/shlex-1.3.0/src/bytes.rs:559:5
|
559 | assert_eq!(quote(INVALID_UTF8), INVALID_UTF8_SINGLEQUOTED);
| ^^^^^^^^^
error: cannot find macro `assert_eq` in this scope
--> /src/rustc-1.86.0-src/vendor/shlex-1.3.0/src/bytes.rs:561:5
|
561 | assert_eq!(quote(b""), &b"''"[..]);
| ^^^^^^^^^
error: cannot find macro `assert_eq` in this scope
--> /src/rustc-1.86.0-src/vendor/shlex-1.3.0/src/bytes.rs:562:5
|
562 | assert_eq!(quote(b"foobar"), &b"foobar"[..]);
| ^^^^^^^^^
error: cannot find macro `assert_eq` in this scope
--> /src/rustc-1.86.0-src/vendor/shlex-1.3.0/src/bytes.rs:563:5
|
563 | assert_eq!(quote(b"foo bar"), &b"'foo bar'"[..]);
| ^^^^^^^^^
error: cannot find macro `assert_eq` in this scope
--> /src/rustc-1.86.0-src/vendor/shlex-1.3.0/src/bytes.rs:564:5
|
564 | assert_eq!(quote(b"'\""), &b"\"'\\\"\""[..]);
| ^^^^^^^^^
error: cannot find macro `assert_eq` in this scope
--> /src/rustc-1.86.0-src/vendor/shlex-1.3.0/src/bytes.rs:565:5
|
565 | assert_eq!(quote(b""), &b"''"[..]);
| ^^^^^^^^^
error: cannot find attribute `test` in this scope
--> /src/rustc-1.86.0-src/vendor/shlex-1.3.0/src/bytes.rs:545:3
|
545 | #[test]
| ^^^^
error: cannot find macro `assert_eq` in this scope
--> /src/rustc-1.86.0-src/vendor/shlex-1.3.0/src/bytes.rs:550:13
|
550 | assert_eq!(sh.line_no, 3);
| ^^^^^^^^^
error: cannot find attribute `test` in this scope
--> /src/rustc-1.86.0-src/vendor/shlex-1.3.0/src/bytes.rs:538:3
|
538 | #[test]
| ^^^^
error: cannot find macro `assert_eq` in this scope
--> /src/rustc-1.86.0-src/vendor/shlex-1.3.0/src/bytes.rs:541:9
|
541 | assert_eq!(split(input), output.map(|o| o.iter().map(|&x| x.to_owned()).collect()));
| ^^^^^^^^^
error: cannot find attribute `test` in this scope
--> /src/rustc-1.86.0-src/vendor/shlex-1.3.0/src/bytes.rs:506:3
|
506 | #[test]
| ^^^^
error: cannot find macro `assert` in this scope
--> /src/rustc-1.86.0-src/vendor/shlex-1.3.0/src/bytes.rs:510:5
|
510 | assert!(core::str::from_utf8(INVALID_UTF8).is_err());
| ^^^^^^
error: cannot find macro `debug_assert` in this scope
--> /src/rustc-1.86.0-src/vendor/shlex-1.3.0/src/bytes.rs:412:5
|
412 | debug_assert!(i > 0);
| ^^^^^^^^^^^^
error: cannot find macro `unreachable` in this scope
--> /src/rustc-1.86.0-src/vendor/shlex-1.3.0/src/bytes.rs:410:9
|
410 | unreachable!()
| ^^^^^^^^^^^
error: cannot find attribute `derive` in this scope
--> /src/rustc-1.86.0-src/vendor/shlex-1.3.0/src/bytes.rs:234:3
|
234 | #[derive(PartialEq)]
| ^^^^^^
error: cannot find macro `assert` in this scope
--> /src/rustc-1.86.0-src/vendor/shlex-1.3.0/src/bytes.rs:225:13
|
225 | assert!(rest.len() < in_bytes.len()); // no infinite loop
| ^^^^^^
error: cannot find attribute `derive` in this scope
--> /src/rustc-1.86.0-src/vendor/shlex-1.3.0/src/bytes.rs:170:3
|
170 | #[derive(Default, Debug, Clone)]
| ^^^^^^
error[E0514]: found crate `core` compiled by an incompatible version of rustc
--> /src/rustc-1.86.0-src/vendor/shlex-1.3.0/src/bytes.rs:41:14
|
41 | in_iter: core::slice::Iter<'a, u8>,
| ^^^^
|
= note: the following crate versions were found:
crate `core` compiled by rustc 1.86.0-nightly (05f9846f8 2025-03-31) (built from a source tarball): /usr/local/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-bb955130a88420b3.rlib
= help: please recompile that crate using this compiler (rustc 1.85.0-nightly (4d91de4e4 2025-02-17) (built from a source tarball)) (consider running `cargo clean` first)
error[E0514]: found crate `core` compiled by an incompatible version of rustc
--> /src/rustc-1.86.0-src/vendor/shlex-1.3.0/src/lib.rs:76:10
|
76 | impl<'a> core::ops::Deref for Shlex<'a> {
| ^^^^
|
= note: the following crate versions were found:
crate `core` compiled by rustc 1.86.0-nightly (05f9846f8 2025-03-31) (built from a source tarball): /usr/local/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-bb955130a88420b3.rlib
= help: please recompile that crate using this compiler (rustc 1.85.0-nightly (4d91de4e4 2025-02-17) (built from a source tarball)) (consider running `cargo clean` first)
error[E0514]: found crate `core` compiled by an incompatible version of rustc
--> /src/rustc-1.86.0-src/vendor/shlex-1.3.0/src/lib.rs:84:10
|
84 | impl<'a> core::ops::DerefMut for Shlex<'a> {
| ^^^^
|
= note: the following crate versions were found:
crate `core` compiled by rustc 1.86.0-nightly (05f9846f8 2025-03-31) (built from a source tarball): /usr/local/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-bb955130a88420b3.rlib
= help: please recompile that crate using this compiler (rustc 1.85.0-nightly (4d91de4e4 2025-02-17) (built from a source tarball)) (consider running `cargo clean` first)
error[E0514]: found crate `core` compiled by an incompatible version of rustc
--> /src/rustc-1.86.0-src/vendor/shlex-1.3.0/src/lib.rs:119:6
|
119 | impl core::fmt::Display for QuoteError {
| ^^^^
|
= note: the following crate versions were found:
crate `core` compiled by rustc 1.86.0-nightly (05f9846f8 2025-03-31) (built from a source tarball): /usr/local/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-bb955130a88420b3.rlib
= help: please recompile that crate using this compiler (rustc 1.85.0-nightly (4d91de4e4 2025-02-17) (built from a source tarball)) (consider running `cargo clean` first)
error[E0514]: found crate `core` compiled by an incompatible version of rustc
--> /src/rustc-1.86.0-src/vendor/shlex-1.3.0/src/lib.rs:120:27
|
120 | fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
| ^^^^
|
= note: the following crate versions were found:
crate `core` compiled by rustc 1.86.0-nightly (05f9846f8 2025-03-31) (built from a source tarball): /usr/local/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-bb955130a88420b3.rlib
= help: please recompile that crate using this compiler (rustc 1.85.0-nightly (4d91de4e4 2025-02-17) (built from a source tarball)) (consider running `cargo clean` first)
error[E0514]: found crate `core` compiled by an incompatible version of rustc
--> /src/rustc-1.86.0-src/vendor/shlex-1.3.0/src/lib.rs:120:56
|
120 | fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
| ^^^^
|
= note: the following crate versions were found:
crate `core` compiled by rustc 1.86.0-nightly (05f9846f8 2025-03-31) (built from a source tarball): /usr/local/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-bb955130a88420b3.rlib
= help: please recompile that crate using this compiler (rustc 1.85.0-nightly (4d91de4e4 2025-02-17) (built from a source tarball)) (consider running `cargo clean` first)
error[E0514]: found crate `core` compiled by an incompatible version of rustc
--> /src/rustc-1.86.0-src/vendor/shlex-1.3.0/src/lib.rs:167:26
|
167 | unsafe { core::str::from_utf8_unchecked(out) }.into()
| ^^^^
|
= note: the following crate versions were found:
crate `core` compiled by rustc 1.86.0-nightly (05f9846f8 2025-03-31) (built from a source tarball): /usr/local/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-bb955130a88420b3.rlib
= help: please recompile that crate using this compiler (rustc 1.85.0-nightly (4d91de4e4 2025-02-17) (built from a source tarball)) (consider running `cargo clean` first)
error[E0412]: cannot find type `Option` in this scope
--> /src/rustc-1.86.0-src/vendor/shlex-1.3.0/src/bytes.rs:60:45
|
60 | fn parse_word(&mut self, mut ch: u8) -> Option<Vec<u8>> {
| ^^^^^^ not found in this scope
error[E0531]: cannot find tuple struct or tuple variant `Err` in this scope
--> /src/rustc-1.86.0-src/vendor/shlex-1.3.0/src/bytes.rs:64:31
|
64 | '"' => if let Err(()) = self.parse_double(&mut result) {
| ^^^ not found in this scope
error[E0425]: cannot find value `None` in this scope
--> /src/rustc-1.86.0-src/vendor/shlex-1.3.0/src/bytes.rs:66:28
|
66 | return None;
| ^^^^ not found in this scope
error[E0531]: cannot find tuple struct or tuple variant `Err` in this scope
--> /src/rustc-1.86.0-src/vendor/shlex-1.3.0/src/bytes.rs:68:32
|
68 | '\'' => if let Err(()) = self.parse_single(&mut result) {
| ^^^ not found in this scope
error[E0425]: cannot find value `None` in this scope
--> /src/rustc-1.86.0-src/vendor/shlex-1.3.0/src/bytes.rs:70:28
|
70 | return None;
| ^^^^ not found in this scope
error[E0531]: cannot find tuple struct or tuple variant `Some` in this scope
--> /src/rustc-1.86.0-src/vendor/shlex-1.3.0/src/bytes.rs:72:32
|
72 | '\\' => if let Some(ch2) = self.next_char() {
| ^^^^ not found in this scope
error[E0425]: cannot find value `None` in this scope
--> /src/rustc-1.86.0-src/vendor/shlex-1.3.0/src/bytes.rs:76:28
|
76 | return None;
| ^^^^ not found in this scope
error[E0531]: cannot find tuple struct or tuple variant `Some` in this scope
--> /src/rustc-1.86.0-src/vendor/shlex-1.3.0/src/bytes.rs:81:20
|
81 | if let Some(ch2) = self.next_char() { ch = ch2; } else { break; }
| ^^^^ not found in this scope
error[E0412]: cannot find type `Result` in this scope
--> /src/rustc-1.86.0-src/vendor/shlex-1.3.0/src/bytes.rs:86:57
|
86 | fn parse_double(&mut self, result: &mut Vec<u8>) -> Result<(), ()> {
| ^^^^^^ not found in this scope
error[E0531]: cannot find tuple struct or tuple variant `Some` in this scope
--> /src/rustc-1.86.0-src/vendor/shlex-1.3.0/src/bytes.rs:88:20
|
88 | if let Some(ch2) = self.next_char() {
| ^^^^ not found in this scope
error[E0531]: cannot find tuple struct or tuple variant `Some` in this scope
--> /src/rustc-1.86.0-src/vendor/shlex-1.3.0/src/bytes.rs:91:32
|
91 | if let Some(ch3) = self.next_char() {
| ^^^^ not found in this scope
error[E0412]: cannot find type `Result` in this scope
--> /src/rustc-1.86.0-src/vendor/shlex-1.3.0/src/bytes.rs:113:57
|
113 | fn parse_single(&mut self, result: &mut Vec<u8>) -> Result<(), ()> {
| ^^^^^^ not found in this scope
error[E0531]: cannot find tuple struct or tuple variant `Some` in this scope
--> /src/rustc-1.86.0-src/vendor/shlex-1.3.0/src/bytes.rs:115:20
|
115 | if let Some(ch2) = self.next_char() {
| ^^^^ not found in this scope
error[E0412]: cannot find type `Option` in this scope
--> /src/rustc-1.86.0-src/vendor/shlex-1.3.0/src/bytes.rs:126:32
|
126 | fn next_char(&mut self) -> Option<u8> {
| ^^^^^^ not found in this scope
error[E0405]: cannot find trait `Iterator` in this scope
--> /src/rustc-1.86.0-src/vendor/shlex-1.3.0/src/bytes.rs:133:10
|
133 | impl<'a> Iterator for Shlex<'a> {
| ^^^^^^^^ not found in this scope
error[E0412]: cannot find type `Option` in this scope
--> /src/rustc-1.86.0-src/vendor/shlex-1.3.0/src/bytes.rs:135:27
|
135 | fn next(&mut self) -> Option<Self::Item> {
| ^^^^^^ not found in this scope
error[E0531]: cannot find tuple struct or tuple variant `Some` in this scope
--> /src/rustc-1.86.0-src/vendor/shlex-1.3.0/src/bytes.rs:136:16
|
136 | if let Some(mut ch) = self.next_char() {
| ^^^^ not found in this scope
error[E0531]: cannot find tuple struct or tuple variant `Some` in this scope
--> /src/rustc-1.86.0-src/vendor/shlex-1.3.0/src/bytes.rs:142:35
|
142 | while let Some(ch2) = self.next_char() {
| ^^^^ not found in this scope
error[E0531]: cannot find tuple struct or tuple variant `Some` in this scope
--> /src/rustc-1.86.0-src/vendor/shlex-1.3.0/src/bytes.rs:148:24
|
148 | if let Some(ch2) = self.next_char() { ch = ch2; } else { return None; }
| ^^^^ not found in this scope
error[E0425]: cannot find value `None` in this scope
--> /src/rustc-1.86.0-src/vendor/shlex-1.3.0/src/bytes.rs:148:81
|
148 | if let Some(ch2) = self.next_char() { ch = ch2; } else { return None; }
| ^^^^ not found in this scope
error[E0425]: cannot find value `None` in this scope
--> /src/rustc-1.86.0-src/vendor/shlex-1.3.0/src/bytes.rs:152:13
|
152 | None
| ^^^^ not found in this scope
error[E0412]: cannot find type `Option` in this scope
--> /src/rustc-1.86.0-src/vendor/shlex-1.3.0/src/bytes.rs:160:34
|
160 | pub fn split(in_bytes: &[u8]) -> Option<Vec<Vec<u8>>> {
| ^^^^^^ not found in this scope
error[E0425]: cannot find value `None` in this scope
--> /src/rustc-1.86.0-src/vendor/shlex-1.3.0/src/bytes.rs:163:24
|
163 | if shl.had_error { None } else { Some(res) }
| ^^^^ not found in this scope
error[E0405]: cannot find trait `IntoIterator` in this scope
--> /src/rustc-1.86.0-src/vendor/shlex-1.3.0/src/bytes.rs:193:24
|
193 | pub fn join<'a, I: IntoIterator<Item = &'a [u8]>>(&self, words: I) -> Result<Vec<u8>, QuoteError> {
| ^^^^^^^^^^^^ not found in this scope
error[E0412]: cannot find type `Result` in this scope
--> /src/rustc-1.86.0-src/vendor/shlex-1.3.0/src/bytes.rs:193:75
|
193 | pub fn join<'a, I: IntoIterator<Item = &'a [u8]>>(&self, words: I) -> Result<Vec<u8>, QuoteError> {
| ^^^^^^ not found in this scope
error[E0412]: cannot find type `Result` in this scope
--> /src/rustc-1.86.0-src/vendor/shlex-1.3.0/src/bytes.rs:196:24
|
196 | .collect::<Result<Vec<Cow<[u8]>>, QuoteError>>()?
| ^^^^^^ not found in this scope
error[E0412]: cannot find type `Result` in this scope
--> /src/rustc-1.86.0-src/vendor/shlex-1.3.0/src/bytes.rs:206:56
|
206 | pub fn quote<'a>(&self, mut in_bytes: &'a [u8]) -> Result<Cow<'a, [u8]>, QuoteError> {
| ^^^^^^ not found in this scope
error[E0405]: cannot find trait `IntoIterator` in this scope
--> /src/rustc-1.86.0-src/vendor/shlex-1.3.0/src/bytes.rs:457:20
|
457 | pub fn join<'a, I: IntoIterator<Item = &'a [u8]>>(words: I) -> Vec<u8> {
| ^^^^^^^^^^^^ not found in this scope
error[E0405]: cannot find trait `IntoIterator` in this scope
--> /src/rustc-1.86.0-src/vendor/shlex-1.3.0/src/bytes.rs:469:24
|
469 | pub fn try_join<'a, I: IntoIterator<Item = &'a [u8]>>(words: I) -> Result<Vec<u8>, QuoteError> {
| ^^^^^^^^^^^^ not found in this scope
error[E0412]: cannot find type `Result` in this scope
--> /src/rustc-1.86.0-src/vendor/shlex-1.3.0/src/bytes.rs:469:68
|
469 | pub fn try_join<'a, I: IntoIterator<Item = &'a [u8]>>(words: I) -> Result<Vec<u8>, QuoteError> {
| ^^^^^^ not found in this scope
error[E0412]: cannot find type `Result` in this scope
--> /src/rustc-1.86.0-src/vendor/shlex-1.3.0/src/bytes.rs:497:38
|
497 | pub fn try_quote(in_bytes: &[u8]) -> Result<Cow<[u8]>, QuoteError> {
| ^^^^^^ not found in this scope
error[E0425]: cannot find value `SPLIT_TEST_ITEMS` in this scope
--> /src/rustc-1.86.0-src/vendor/shlex-1.3.0/src/bytes.rs:540:29
|
540 | for &(input, output) in SPLIT_TEST_ITEMS {
| ^^^^^^^^^^^^^^^^ not found in this scope
error[E0531]: cannot find tuple struct or tuple variant `Some` in this scope
--> /src/rustc-1.86.0-src/vendor/shlex-1.3.0/src/bytes.rs:548:15
|
548 | while let Some(word) = sh.next() {
| ^^^^ not found in this scope
error[E0405]: cannot find trait `Iterator` in this scope
--> /src/rustc-1.86.0-src/vendor/shlex-1.3.0/src/lib.rs:66:10
|
66 | impl<'a> Iterator for Shlex<'a> {
| ^^^^^^^^ not found in this scope
error[E0412]: cannot find type `Option` in this scope
--> /src/rustc-1.86.0-src/vendor/shlex-1.3.0/src/lib.rs:68:27
|
68 | fn next(&mut self) -> Option<String> {
| ^^^^^^ not found in this scope
error[E0412]: cannot find type `Option` in this scope
--> /src/rustc-1.86.0-src/vendor/shlex-1.3.0/src/lib.rs:92:31
|
92 | pub fn split(in_str: &str) -> Option<Vec<String>> {
| ^^^^^^ not found in this scope
error[E0425]: cannot find value `None` in this scope
--> /src/rustc-1.86.0-src/vendor/shlex-1.3.0/src/lib.rs:95:24
|
95 | if shl.had_error { None } else { Some(res) }
| ^^^^ not found in this scope
error[E0405]: cannot find trait `IntoIterator` in this scope
--> /src/rustc-1.86.0-src/vendor/shlex-1.3.0/src/lib.rs:156:24
|
156 | pub fn join<'a, I: IntoIterator<Item = &'a str>>(&self, words: I) -> Result<String, QuoteError> {
| ^^^^^^^^^^^^ not found in this scope
error[E0412]: cannot find type `Result` in this scope
--> /src/rustc-1.86.0-src/vendor/shlex-1.3.0/src/lib.rs:156:74
|
156 | pub fn join<'a, I: IntoIterator<Item = &'a str>>(&self, words: I) -> Result<String, QuoteError> {
| ^^^^^^ not found in this scope
error[E0412]: cannot find type `Result` in this scope
--> /src/rustc-1.86.0-src/vendor/shlex-1.3.0/src/lib.rs:163:49
|
163 | pub fn quote<'a>(&self, in_str: &'a str) -> Result<Cow<'a, str>, QuoteError> {
| ^^^^^^ not found in this scope
error[E0405]: cannot find trait `From` in this scope
--> /src/rustc-1.86.0-src/vendor/shlex-1.3.0/src/lib.rs:177:6
|
177 | impl From<bytes::Quoter> for Quoter {
| ^^^^ not found in this scope
error[E0405]: cannot find trait `From` in this scope
--> /src/rustc-1.86.0-src/vendor/shlex-1.3.0/src/lib.rs:183:6
|
183 | impl From<Quoter> for bytes::Quoter {
| ^^^^ not found in this scope
error[E0405]: cannot find trait `IntoIterator` in this scope
--> /src/rustc-1.86.0-src/vendor/shlex-1.3.0/src/lib.rs:201:20
|
201 | pub fn join<'a, I: IntoIterator<Item = &'a str>>(words: I) -> String {
| ^^^^^^^^^^^^ not found in this scope
error[E0405]: cannot find trait `IntoIterator` in this scope
--> /src/rustc-1.86.0-src/vendor/shlex-1.3.0/src/lib.rs:213:24
|
213 | pub fn try_join<'a, I: IntoIterator<Item = &'a str>>(words: I) -> Result<String, QuoteError> {
| ^^^^^^^^^^^^ not found in this scope
error[E0412]: cannot find type `Result` in this scope
--> /src/rustc-1.86.0-src/vendor/shlex-1.3.0/src/lib.rs:213:67
|
213 | pub fn try_join<'a, I: IntoIterator<Item = &'a str>>(words: I) -> Result<String, QuoteError> {
| ^^^^^^ not found in this scope
error[E0412]: cannot find type `Result` in this scope
--> /src/rustc-1.86.0-src/vendor/shlex-1.3.0/src/lib.rs:241:35
|
241 | pub fn try_quote(in_str: &str) -> Result<Cow<str>, QuoteError> {
| ^^^^^^ not found in this scope
error[E0425]: cannot find value `SPLIT_TEST_ITEMS` in this scope
--> /src/rustc-1.86.0-src/vendor/shlex-1.3.0/src/lib.rs:271:29
|
271 | for &(input, output) in SPLIT_TEST_ITEMS {
| ^^^^^^^^^^^^^^^^ not found in this scope
error[E0531]: cannot find tuple struct or tuple variant `Some` in this scope
--> /src/rustc-1.86.0-src/vendor/shlex-1.3.0/src/lib.rs:279:15
|
279 | while let Some(word) = sh.next() {
| ^^^^ not found in this scope
error[E0425]: cannot find function, tuple struct or tuple variant `Some` in this scope
--> /src/rustc-1.86.0-src/vendor/shlex-1.3.0/src/bytes.rs:83:9
|
83 | Some(result)
| ^^^^ not found in this scope
error[E0425]: cannot find function, tuple struct or tuple variant `Err` in this scope
--> /src/rustc-1.86.0-src/vendor/shlex-1.3.0/src/bytes.rs:101:36
|
101 | ... return Err(());
| ^^^ not found in this scope
error[E0425]: cannot find function, tuple struct or tuple variant `Ok` in this scope
--> /src/rustc-1.86.0-src/vendor/shlex-1.3.0/src/bytes.rs:104:37
|
104 | '"' => { return Ok(()); },
| ^^ not found in this scope
error[E0425]: cannot find function, tuple struct or tuple variant `Err` in this scope
--> /src/rustc-1.86.0-src/vendor/shlex-1.3.0/src/bytes.rs:108:24
|
108 | return Err(());
| ^^^ not found in this scope
error[E0425]: cannot find function, tuple struct or tuple variant `Ok` in this scope
--> /src/rustc-1.86.0-src/vendor/shlex-1.3.0/src/bytes.rs:117:38
|
117 | '\'' => { return Ok(()); },
| ^^ not found in this scope
error[E0425]: cannot find function, tuple struct or tuple variant `Err` in this scope
--> /src/rustc-1.86.0-src/vendor/shlex-1.3.0/src/bytes.rs:121:24
|
121 | return Err(());
| ^^^ not found in this scope
error[E0425]: cannot find function, tuple struct or tuple variant `Some` in this scope
--> /src/rustc-1.86.0-src/vendor/shlex-1.3.0/src/bytes.rs:128:19
|
128 | if res == Some(b'\n') { self.line_no += 1; }
| ^^^^ not found in this scope
error[E0425]: cannot find function, tuple struct or tuple variant `Some` in this scope
--> /src/rustc-1.86.0-src/vendor/shlex-1.3.0/src/bytes.rs:163:38
|
163 | if shl.had_error { None } else { Some(res) }
| ^^^^ not found in this scope
error[E0425]: cannot find function, tuple struct or tuple variant `Ok` in this scope
--> /src/rustc-1.86.0-src/vendor/shlex-1.3.0/src/bytes.rs:194:9
|
194 | Ok(words.into_iter()
| ^^ not found in this scope
error[E0425]: cannot find function, tuple struct or tuple variant `Ok` in this scope
--> /src/rustc-1.86.0-src/vendor/shlex-1.3.0/src/bytes.rs:209:20
|
209 | return Ok(b"''"[..].into());
| ^^ not found in this scope
error[E0425]: cannot find function, tuple struct or tuple variant `Err` in this scope
--> /src/rustc-1.86.0-src/vendor/shlex-1.3.0/src/bytes.rs:212:20
|
212 | return Err(QuoteError::Nul);
| ^^^ not found in this scope
error[E0425]: cannot find function, tuple struct or tuple variant `Ok` in this scope
--> /src/rustc-1.86.0-src/vendor/shlex-1.3.0/src/bytes.rs:222:24
|
222 | return Ok(in_bytes.into());
| ^^ not found in this scope
error[E0425]: cannot find function, tuple struct or tuple variant `Ok` in this scope
--> /src/rustc-1.86.0-src/vendor/shlex-1.3.0/src/bytes.rs:229:9
|
229 | Ok(out.into())
| ^^ not found in this scope
error[E0425]: cannot find function, tuple struct or tuple variant `Some` in this scope
--> /src/rustc-1.86.0-src/vendor/shlex-1.3.0/src/lib.rs:95:38
|
95 | if shl.had_error { None } else { Some(res) }
| ^^^^ not found in this scope
error[E0425]: cannot find function, tuple struct or tuple variant `Ok` in this scope
--> /src/rustc-1.86.0-src/vendor/shlex-1.3.0/src/lib.rs:164:9
|
164 | Ok(match self.inner.quote(in_str.as_bytes())? {
| ^^ not found in this scope
Some errors have detailed explanations: E0405, E0412, E0425, E0514, E0531.
For more information about an error, try `rustc --explain E0405`.
error: could not compile `shlex` (lib) due to 113 previous errors
Build completed unsuccessfully in 0:00:41
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the reported ./configure followed by ./x.py -j1 install command and inspect the stage0 library-artifact build, especially vendor/shlex-1.3.0. Compare the rustc versions in the error and determine why the 1.85 compiler sees 1.86-built core, alloc, and std artifacts. Done means this configuration completes the build without incompatible-crate errors.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- build-system, compilers
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 18/100