[INFO] fetching crate otlp-exporter 0.1.0... [INFO] checking otlp-exporter-0.1.0 against try#c659ee110de67e82444e4b6c8407c1a9af9c2cf6 for pr-145608-1 [INFO] extracting crate otlp-exporter 0.1.0 into /workspace/builds/worker-0-tc2/source [INFO] started tweaking crates.io crate otlp-exporter 0.1.0 [INFO] finished tweaking crates.io crate otlp-exporter 0.1.0 [INFO] tweaked toml for crates.io crate otlp-exporter 0.1.0 written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate otlp-exporter 0.1.0 on toolchain c659ee110de67e82444e4b6c8407c1a9af9c2cf6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 271 packages to latest compatible versions [INFO] [stderr] Adding grpcio v0.12.1 (available: v0.13.0) [INFO] [stderr] Adding http v0.2.12 (available: v1.3.1) [INFO] [stderr] Adding opentelemetry-proto v0.3.0 (available: v0.30.0) [INFO] [stderr] Adding opentelemetry-semantic-conventions v0.12.0 (available: v0.30.0) [INFO] [stderr] Adding opentelemetry_sdk v0.20.0 (available: v0.30.0) [INFO] [stderr] Adding prost v0.11.9 (available: v0.14.1) [INFO] [stderr] Adding protobuf v2.28.0 (available: v3.7.2) [INFO] [stderr] Adding reqwest v0.11.27 (available: v0.12.23) [INFO] [stderr] Adding thiserror v1.0.69 (available: v2.0.16) [INFO] [stderr] Adding tonic v0.9.2 (available: v0.14.2) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a1438696eb8a420366a1e93ffd5a4fc9eb3e5890d2285b3e6d80325afad1ace6 [INFO] running `Command { std: "docker" "start" "-a" "a1438696eb8a420366a1e93ffd5a4fc9eb3e5890d2285b3e6d80325afad1ace6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a1438696eb8a420366a1e93ffd5a4fc9eb3e5890d2285b3e6d80325afad1ace6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a1438696eb8a420366a1e93ffd5a4fc9eb3e5890d2285b3e6d80325afad1ace6", kill_on_drop: false }` [INFO] [stdout] a1438696eb8a420366a1e93ffd5a4fc9eb3e5890d2285b3e6d80325afad1ace6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/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" "-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7c658e52f6165a21cbf1df4bee5d2123510ced757de98c71ebb5ad002ec14528 [INFO] running `Command { std: "docker" "start" "-a" "7c658e52f6165a21cbf1df4bee5d2123510ced757de98c71ebb5ad002ec14528", kill_on_drop: false }` [INFO] [stderr] Checking serde_json v1.0.143 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Checking ordered-float v3.9.2 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking temp-env v0.3.6 [INFO] [stderr] Checking tokio v1.47.1 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Checking tokio-stream v0.1.17 [INFO] [stderr] Checking futures-executor v0.3.31 [INFO] [stderr] Checking opentelemetry_api v0.20.0 [INFO] [stderr] Checking futures v0.3.31 [INFO] [stderr] Checking opentelemetry_sdk v0.20.0 [INFO] [stderr] Checking opentelemetry-proto v0.3.0 [INFO] [stderr] Checking opentelemetry v0.20.0 [INFO] [stderr] Checking otlp-exporter v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Checking opentelemetry-semantic-conventions v0.12.0 [INFO] [stdout] error[E0425]: cannot find function `default_protocol` in this scope [INFO] [stdout] --> src/config.rs:412:13 [INFO] [stdout] | [INFO] [stdout] 412 | default_protocol(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `default_protocol` in this scope [INFO] [stdout] --> src/config.rs:590:24 [INFO] [stdout] | [INFO] [stdout] 590 | let protocol = default_protocol(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0004]: non-exhaustive patterns: type `&Protocol` is non-empty [INFO] [stdout] --> src/config.rs:260:15 [INFO] [stdout] | [INFO] [stdout] 260 | match self { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Protocol` defined here [INFO] [stdout] --> src/config.rs:249:10 [INFO] [stdout] | [INFO] [stdout] 249 | pub enum Protocol { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = note: the matched value is of type `&Protocol` [INFO] [stdout] = note: references are always considered inhabited [INFO] [stdout] help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern as shown [INFO] [stdout] | [INFO] [stdout] 260 ~ match self { [INFO] [stdout] 261 + _ => todo!(), [INFO] [stdout] 262 + } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0004, E0425. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0004`. [INFO] [stdout] [INFO] [stderr] error: could not compile `otlp-exporter` (lib) due to 3 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0432]: unresolved imports `super::OTEL_EXPORTER_OTLP_LOGS_ENDPOINT`, `super::OTEL_EXPORTER_OTLP_LOGS_HEADERS`, `super::OTEL_EXPORTER_OTLP_METRICS_ENDPOINT`, `super::OTEL_EXPORTER_OTLP_METRICS_HEADERS`, `super::OTEL_EXPORTER_OTLP_TRACES_ENDPOINT`, `super::OTEL_EXPORTER_OTLP_TRACES_HEADERS` [INFO] [stdout] --> src/config.rs:721:37 [INFO] [stdout] | [INFO] [stdout] 721 | OTEL_EXPORTER_OTLP_HEADERS, OTEL_EXPORTER_OTLP_LOGS_ENDPOINT, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `OTEL_EXPORTER_OTLP_LOGS_ENDPOINT` in `config` [INFO] [stdout] 722 | OTEL_EXPORTER_OTLP_LOGS_HEADERS, OTEL_EXPORTER_OTLP_METRICS_ENDPOINT, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `OTEL_EXPORTER_OTLP_METRICS_ENDPOINT` in `config` [INFO] [stdout] | | [INFO] [stdout] | no `OTEL_EXPORTER_OTLP_LOGS_HEADERS` in `config` [INFO] [stdout] 723 | OTEL_EXPORTER_OTLP_METRICS_HEADERS, OTEL_EXPORTER_OTLP_TRACES_ENDPOINT, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `OTEL_EXPORTER_OTLP_TRACES_ENDPOINT` in `config` [INFO] [stdout] | | [INFO] [stdout] | no `OTEL_EXPORTER_OTLP_METRICS_HEADERS` in `config` [INFO] [stdout] 724 | OTEL_EXPORTER_OTLP_TRACES_HEADERS, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `OTEL_EXPORTER_OTLP_TRACES_HEADERS` in `config` [INFO] [stdout] | [INFO] [stdout] help: a similar name exists in the module [INFO] [stdout] | [INFO] [stdout] 721 - OTEL_EXPORTER_OTLP_HEADERS, OTEL_EXPORTER_OTLP_LOGS_ENDPOINT, [INFO] [stdout] 721 + OTEL_EXPORTER_OTLP_HEADERS, OTEL_EXPORTER_OTLP_ENDPOINT, [INFO] [stdout] | [INFO] [stdout] help: a similar name exists in the module [INFO] [stdout] | [INFO] [stdout] 722 - OTEL_EXPORTER_OTLP_LOGS_HEADERS, OTEL_EXPORTER_OTLP_METRICS_ENDPOINT, [INFO] [stdout] 722 + OTEL_EXPORTER_OTLP_HEADERS, OTEL_EXPORTER_OTLP_METRICS_ENDPOINT, [INFO] [stdout] | [INFO] [stdout] help: a similar name exists in the module [INFO] [stdout] | [INFO] [stdout] 722 - OTEL_EXPORTER_OTLP_LOGS_HEADERS, OTEL_EXPORTER_OTLP_METRICS_ENDPOINT, [INFO] [stdout] 722 + OTEL_EXPORTER_OTLP_LOGS_HEADERS, OTEL_EXPORTER_OTLP_ENDPOINT, [INFO] [stdout] | [INFO] [stdout] help: a similar name exists in the module [INFO] [stdout] | [INFO] [stdout] 723 - OTEL_EXPORTER_OTLP_METRICS_HEADERS, OTEL_EXPORTER_OTLP_TRACES_ENDPOINT, [INFO] [stdout] 723 + OTEL_EXPORTER_OTLP_HEADERS, OTEL_EXPORTER_OTLP_TRACES_ENDPOINT, [INFO] [stdout] | [INFO] [stdout] help: a similar name exists in the module [INFO] [stdout] | [INFO] [stdout] 723 - OTEL_EXPORTER_OTLP_METRICS_HEADERS, OTEL_EXPORTER_OTLP_TRACES_ENDPOINT, [INFO] [stdout] 723 + OTEL_EXPORTER_OTLP_METRICS_HEADERS, OTEL_EXPORTER_OTLP_ENDPOINT, [INFO] [stdout] | [INFO] [stdout] help: a similar name exists in the module [INFO] [stdout] | [INFO] [stdout] 724 - OTEL_EXPORTER_OTLP_TRACES_HEADERS, [INFO] [stdout] 724 + OTEL_EXPORTER_OTLP_HEADERS, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `default_protocol` in this scope [INFO] [stdout] --> src/config.rs:412:13 [INFO] [stdout] | [INFO] [stdout] 412 | default_protocol(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `default_protocol` in this scope [INFO] [stdout] --> src/config.rs:590:24 [INFO] [stdout] | [INFO] [stdout] 590 | let protocol = default_protocol(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0004]: non-exhaustive patterns: type `&Protocol` is non-empty [INFO] [stdout] --> src/config.rs:260:15 [INFO] [stdout] | [INFO] [stdout] 260 | match self { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Protocol` defined here [INFO] [stdout] --> src/config.rs:249:10 [INFO] [stdout] | [INFO] [stdout] 249 | pub enum Protocol { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = note: the matched value is of type `&Protocol` [INFO] [stdout] = note: references are always considered inhabited [INFO] [stdout] help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern as shown [INFO] [stdout] | [INFO] [stdout] 260 ~ match self { [INFO] [stdout] 261 + _ => todo!(), [INFO] [stdout] 262 + } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/config.rs:735:23 [INFO] [stdout] | [INFO] [stdout] 734 | ConfigBuilder::default() [INFO] [stdout] | ------------------------ any code following this expression is unreachable [INFO] [stdout] 735 | .with_env(data_type) [INFO] [stdout] | ^^^^^^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] note: this expression has type `ConfigBuilder`, which is uninhabited [INFO] [stdout] --> src/config.rs:734:9 [INFO] [stdout] | [INFO] [stdout] 734 | ConfigBuilder::default() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `data_type` [INFO] [stdout] --> src/config.rs:733:30 [INFO] [stdout] | [INFO] [stdout] 733 | fn build_config_with_env(data_type: Option) -> Config { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_data_type` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/config.rs:758:21 [INFO] [stdout] | [INFO] [stdout] 757 | build_config_with_env(None).endpoint().to_string(), [INFO] [stdout] | --------------------------- any code following this expression is unreachable [INFO] [stdout] 758 | expected_endpoint_with_slash [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] note: this expression has type `config::Config`, which is uninhabited [INFO] [stdout] --> src/config.rs:757:21 [INFO] [stdout] | [INFO] [stdout] 757 | build_config_with_env(None).endpoint().to_string(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/config.rs:916:68 [INFO] [stdout] | [INFO] [stdout] 916 | assert_eq!(build_config_with_env(None).headers(), &otlp_headers); [INFO] [stdout] | --------------------------- ^^^^^^^^^^^^ unreachable expression [INFO] [stdout] | | [INFO] [stdout] | any code following this expression is unreachable [INFO] [stdout] | [INFO] [stdout] note: this expression has type `config::Config`, which is uninhabited [INFO] [stdout] --> src/config.rs:916:28 [INFO] [stdout] | [INFO] [stdout] 916 | assert_eq!(build_config_with_env(None).headers(), &otlp_headers); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/config.rs:892:68 [INFO] [stdout] | [INFO] [stdout] 892 | assert_eq!(build_config_with_env(None).headers(), &otlp_headers); [INFO] [stdout] | --------------------------- ^^^^^^^^^^^^ unreachable expression [INFO] [stdout] | | [INFO] [stdout] | any code following this expression is unreachable [INFO] [stdout] | [INFO] [stdout] note: this expression has type `config::Config`, which is uninhabited [INFO] [stdout] --> src/config.rs:892:28 [INFO] [stdout] | [INFO] [stdout] 892 | assert_eq!(build_config_with_env(None).headers(), &otlp_headers); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/config.rs:873:17 [INFO] [stdout] | [INFO] [stdout] 873 | assert_eq!(build_config_with_env(None).headers(), &default_headers()); [INFO] [stdout] | ^^^^^^^^^^^---------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | | [INFO] [stdout] | | any code following this expression is unreachable [INFO] [stdout] | unreachable expression [INFO] [stdout] | [INFO] [stdout] note: this expression has type `config::Config`, which is uninhabited [INFO] [stdout] --> src/config.rs:873:28 [INFO] [stdout] | [INFO] [stdout] 873 | assert_eq!(build_config_with_env(None).headers(), &default_headers()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: this warning originates in the macro `assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0004, E0425, E0432. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0004`. [INFO] [stdout] [INFO] [stderr] error: could not compile `otlp-exporter` (lib test) due to 4 previous errors; 6 warnings emitted [INFO] running `Command { std: "docker" "inspect" "7c658e52f6165a21cbf1df4bee5d2123510ced757de98c71ebb5ad002ec14528", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7c658e52f6165a21cbf1df4bee5d2123510ced757de98c71ebb5ad002ec14528", kill_on_drop: false }` [INFO] [stdout] 7c658e52f6165a21cbf1df4bee5d2123510ced757de98c71ebb5ad002ec14528