[INFO] fetching crate safe_uri_ext 0.1.0-beta.3... [INFO] building safe_uri_ext-0.1.0-beta.3 against master#11663cd3bfefef7d34e8f0892c250bf698049392+rustflags=-Dtail-expr-drop-order for pr-134523 [INFO] extracting crate safe_uri_ext 0.1.0-beta.3 into /workspace/builds/worker-3-tc1/source [INFO] validating manifest of crates.io crate safe_uri_ext 0.1.0-beta.3 on toolchain 11663cd3bfefef7d34e8f0892c250bf698049392 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate safe_uri_ext 0.1.0-beta.3 [INFO] finished tweaking crates.io crate safe_uri_ext 0.1.0-beta.3 [INFO] tweaked toml for crates.io crate safe_uri_ext 0.1.0-beta.3 written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 3 packages to latest compatible versions [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded safe_uri v0.1.0-beta.4 [INFO] [stderr] Downloaded shared_bytes v0.1.0-beta.4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] cd9b1ba21a29af783bfa16c94ba99e28fa0a537e41399bd712fdc7d13b1fb062 [INFO] running `Command { std: "docker" "start" "-a" "cd9b1ba21a29af783bfa16c94ba99e28fa0a537e41399bd712fdc7d13b1fb062", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "cd9b1ba21a29af783bfa16c94ba99e28fa0a537e41399bd712fdc7d13b1fb062", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cd9b1ba21a29af783bfa16c94ba99e28fa0a537e41399bd712fdc7d13b1fb062", kill_on_drop: false }` [INFO] [stdout] cd9b1ba21a29af783bfa16c94ba99e28fa0a537e41399bd712fdc7d13b1fb062 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid -Dtail-expr-drop-order" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ba3b3562445638ca23a72050022decd4756f44d57a92bdbbbfdcbd250b780da4 [INFO] running `Command { std: "docker" "start" "-a" "ba3b3562445638ca23a72050022decd4756f44d57a92bdbbbfdcbd250b780da4", kill_on_drop: false }` [INFO] [stderr] Compiling shared_bytes v0.1.0-beta.4 [INFO] [stderr] Compiling safe_uri v0.1.0-beta.4 [INFO] [stderr] Compiling safe_uri_ext v0.1.0-beta.3 (/opt/rustwide/workdir) [INFO] [stdout] error[E0107]: struct takes 0 lifetime arguments but 1 lifetime argument was supplied [INFO] [stdout] --> src/display.rs:5:24 [INFO] [stdout] | [INFO] [stdout] 5 | scheme: Option<&'a Scheme<'a>>, [INFO] [stdout] | ^^^^^^---- help: remove the unnecessary generics [INFO] [stdout] | | [INFO] [stdout] | expected 0 lifetime arguments [INFO] [stdout] | [INFO] [stdout] note: struct defined here, with 0 lifetime parameters [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/safe_uri-0.1.0-beta.4/src/scheme/generated_struct.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Scheme(SharedStr); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0107]: struct takes 0 lifetime arguments but 1 lifetime argument was supplied [INFO] [stdout] --> src/display.rs:6:27 [INFO] [stdout] | [INFO] [stdout] 6 | authority: Option<&'a Authority<'a>>, [INFO] [stdout] | ^^^^^^^^^---- help: remove the unnecessary generics [INFO] [stdout] | | [INFO] [stdout] | expected 0 lifetime arguments [INFO] [stdout] | [INFO] [stdout] note: struct defined here, with 0 lifetime parameters [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/safe_uri-0.1.0-beta.4/src/authority.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Authority { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0107]: struct takes 0 lifetime arguments but 1 lifetime argument was supplied [INFO] [stdout] --> src/display.rs:7:19 [INFO] [stdout] | [INFO] [stdout] 7 | resource: &'a Resource<'a>, [INFO] [stdout] | ^^^^^^^^---- help: remove the unnecessary generics [INFO] [stdout] | | [INFO] [stdout] | expected 0 lifetime arguments [INFO] [stdout] | [INFO] [stdout] note: struct defined here, with 0 lifetime parameters [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/safe_uri-0.1.0-beta.4/src/resource.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Resource { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0107]: struct takes 0 lifetime arguments but 1 lifetime argument was supplied [INFO] [stdout] --> src/uri.rs:7:27 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct ExtUri<'a>(pub Uri<'a>); [INFO] [stdout] | ^^^---- help: remove the unnecessary generics [INFO] [stdout] | | [INFO] [stdout] | expected 0 lifetime arguments [INFO] [stdout] | [INFO] [stdout] note: struct defined here, with 0 lifetime parameters [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/safe_uri-0.1.0-beta.4/src/uri.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Uri { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0107]: struct takes 0 lifetime arguments but 1 lifetime argument was supplied [INFO] [stdout] --> src/uri_ref.rs:7:30 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct ExtUriRef<'a>(pub UriRef<'a>); [INFO] [stdout] | ^^^^^^---- help: remove the unnecessary generics [INFO] [stdout] | | [INFO] [stdout] | expected 0 lifetime arguments [INFO] [stdout] | [INFO] [stdout] note: struct defined here, with 0 lifetime parameters [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/safe_uri-0.1.0-beta.4/src/uri_ref.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct UriRef { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0107]: struct takes 0 lifetime arguments but 1 lifetime argument was supplied [INFO] [stdout] --> src/display.rs:38:22 [INFO] [stdout] | [INFO] [stdout] 38 | fn from(uri: &'a Uri<'a>) -> Self { [INFO] [stdout] | ^^^---- help: remove the unnecessary generics [INFO] [stdout] | | [INFO] [stdout] | expected 0 lifetime arguments [INFO] [stdout] | [INFO] [stdout] note: struct defined here, with 0 lifetime parameters [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/safe_uri-0.1.0-beta.4/src/uri.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Uri { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0107]: struct takes 0 lifetime arguments but 1 lifetime argument was supplied [INFO] [stdout] --> src/display.rs:48:22 [INFO] [stdout] | [INFO] [stdout] 48 | fn from(uri: &'a UriRef<'a>) -> Self { [INFO] [stdout] | ^^^^^^---- help: remove the unnecessary generics [INFO] [stdout] | | [INFO] [stdout] | expected 0 lifetime arguments [INFO] [stdout] | [INFO] [stdout] note: struct defined here, with 0 lifetime parameters [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/safe_uri-0.1.0-beta.4/src/uri_ref.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct UriRef { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0107]: struct takes 0 lifetime arguments but 1 lifetime argument was supplied [INFO] [stdout] --> src/display.rs:37:19 [INFO] [stdout] | [INFO] [stdout] 37 | impl<'a> From<&'a Uri<'a>> for UriRefDisplay<'a> { [INFO] [stdout] | ^^^---- help: remove the unnecessary generics [INFO] [stdout] | | [INFO] [stdout] | expected 0 lifetime arguments [INFO] [stdout] | [INFO] [stdout] note: struct defined here, with 0 lifetime parameters [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/safe_uri-0.1.0-beta.4/src/uri.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Uri { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0107]: struct takes 0 lifetime arguments but 1 lifetime argument was supplied [INFO] [stdout] --> src/display.rs:47:19 [INFO] [stdout] | [INFO] [stdout] 47 | impl<'a> From<&'a UriRef<'a>> for UriRefDisplay<'a> { [INFO] [stdout] | ^^^^^^---- help: remove the unnecessary generics [INFO] [stdout] | | [INFO] [stdout] | expected 0 lifetime arguments [INFO] [stdout] | [INFO] [stdout] note: struct defined here, with 0 lifetime parameters [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/safe_uri-0.1.0-beta.4/src/uri_ref.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct UriRef { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0107]: struct takes 0 lifetime arguments but 1 lifetime argument was supplied [INFO] [stdout] --> src/parse.rs:12:56 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn parse_static_uri(input: &'static str) -> Result, ParseUriError> { [INFO] [stdout] | ^^^--------- help: remove the unnecessary generics [INFO] [stdout] | | [INFO] [stdout] | expected 0 lifetime arguments [INFO] [stdout] | [INFO] [stdout] note: struct defined here, with 0 lifetime parameters [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/safe_uri-0.1.0-beta.4/src/uri.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Uri { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0107]: struct takes 0 lifetime arguments but 1 lifetime argument was supplied [INFO] [stdout] --> src/parse.rs:20:60 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn parse_static_uri_ref(input: &'static str) -> Result, ParseUriError> { [INFO] [stdout] | ^^^^^^--------- help: remove the unnecessary generics [INFO] [stdout] | | [INFO] [stdout] | expected 0 lifetime arguments [INFO] [stdout] | [INFO] [stdout] note: struct defined here, with 0 lifetime parameters [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/safe_uri-0.1.0-beta.4/src/uri_ref.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct UriRef { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `into_ensured_static` found for struct `safe_uri::Uri` in the current scope [INFO] [stdout] --> src/parse.rs:13:31 [INFO] [stdout] | [INFO] [stdout] 13 | parse_uri(input).map(Uri::into_ensured_static) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ function or associated item not found in `Uri` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `into_ensured_static` found for struct `safe_uri::UriRef` in the current scope [INFO] [stdout] --> src/parse.rs:21:38 [INFO] [stdout] | [INFO] [stdout] 21 | parse_uri_ref(input).map(UriRef::into_ensured_static) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ function or associated item not found in `UriRef` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0521]: borrowed data escapes outside of function [INFO] [stdout] --> src/parse.rs:65:43 [INFO] [stdout] | [INFO] [stdout] 61 | fn scheme(input: &str) -> InputResultOption { [INFO] [stdout] | ----- - let's call the lifetime of this reference `'1` [INFO] [stdout] | | [INFO] [stdout] | `input` is a reference that is only valid in the function body [INFO] [stdout] ... [INFO] [stdout] 65 | let (scheme, remainder) = split_away(input, index); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `input` escapes the function body here [INFO] [stdout] | argument requires that `'1` must outlive `'static` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0521]: borrowed data escapes outside of function [INFO] [stdout] --> src/parse.rs:102:46 [INFO] [stdout] | [INFO] [stdout] 98 | fn user_info(input: &str) -> InputResultOption { [INFO] [stdout] | ----- - let's call the lifetime of this reference `'1` [INFO] [stdout] | | [INFO] [stdout] | `input` is a reference that is only valid in the function body [INFO] [stdout] ... [INFO] [stdout] 102 | let (user_info, remainder) = split_away(input, index); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `input` escapes the function body here [INFO] [stdout] | argument requires that `'1` must outlive `'static` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0521]: borrowed data escapes outside of function [INFO] [stdout] --> src/parse.rs:156:20 [INFO] [stdout] | [INFO] [stdout] 146 | fn host_from_str(s: &str) -> Result { [INFO] [stdout] | - - let's call the lifetime of this reference `'1` [INFO] [stdout] | | [INFO] [stdout] | `s` is a reference that is only valid in the function body [INFO] [stdout] ... [INFO] [stdout] 156 | Host::Name(s.try_into().map_err(ParseUriErr::HostName)?) [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `s` escapes the function body here [INFO] [stdout] | argument requires that `'1` must outlive `'static` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: lifetime may not live long enough [INFO] [stdout] --> src/parse.rs:183:9 [INFO] [stdout] | [INFO] [stdout] 175 | fn path(input: &str) -> InputResult { [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 183 | (input, "") [INFO] [stdout] | ^^^^^^^^^^^ returning this value requires that `'1` must outlive `'static` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: lifetime may not live long enough [INFO] [stdout] --> src/parse.rs:201:9 [INFO] [stdout] | [INFO] [stdout] 189 | fn query(input: &str) -> InputResultOption { [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 201 | (remainder, "") [INFO] [stdout] | ^^^^^^^^^^^^^^^ returning this value requires that `'1` must outlive `'static` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0521]: borrowed data escapes outside of function [INFO] [stdout] --> src/parse.rs:208:11 [INFO] [stdout] | [INFO] [stdout] 207 | fn fragment(input: &str) -> Result, InvalidFragment> { [INFO] [stdout] | ----- - let's call the lifetime of this reference `'1` [INFO] [stdout] | | [INFO] [stdout] | `input` is a reference that is only valid in the function body [INFO] [stdout] 208 | match input.strip_prefix('#') { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `input` escapes the function body here [INFO] [stdout] | argument requires that `'1` must outlive `'static` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0107, E0521, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0107`. [INFO] [stdout] [INFO] [stderr] error: could not compile `safe_uri_ext` (lib) due to 19 previous errors [INFO] running `Command { std: "docker" "inspect" "ba3b3562445638ca23a72050022decd4756f44d57a92bdbbbfdcbd250b780da4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ba3b3562445638ca23a72050022decd4756f44d57a92bdbbbfdcbd250b780da4", kill_on_drop: false }` [INFO] [stdout] ba3b3562445638ca23a72050022decd4756f44d57a92bdbbbfdcbd250b780da4