[INFO] fetching crate light_pencil 0.4.4... [INFO] testing light_pencil-0.4.4 against 1.60.0 for beta-1.61-1 [INFO] extracting crate light_pencil 0.4.4 into /workspace/builds/worker-25/source [INFO] validating manifest of crates.io crate light_pencil 0.4.4 on toolchain 1.60.0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate light_pencil 0.4.4 [INFO] finished tweaking crates.io crate light_pencil 0.4.4 [INFO] tweaked toml for crates.io crate light_pencil 0.4.4 written to /workspace/builds/worker-25/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded mime_multipart v0.5.2 [INFO] [stderr] Downloaded textnonce v0.6.5 [INFO] [stderr] Downloaded lazycell v0.5.1 [INFO] [stderr] Downloaded formdata v0.12.3 [INFO] [stderr] Downloaded buf-read-ext v0.3.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-25/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-25/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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f326786e28686056a14fa94404f4a46b5288a240f026c0c19b276632e04600b6 [INFO] running `Command { std: "docker" "start" "-a" "f326786e28686056a14fa94404f4a46b5288a240f026c0c19b276632e04600b6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f326786e28686056a14fa94404f4a46b5288a240f026c0c19b276632e04600b6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f326786e28686056a14fa94404f4a46b5288a240f026c0c19b276632e04600b6", kill_on_drop: false }` [INFO] [stdout] f326786e28686056a14fa94404f4a46b5288a240f026c0c19b276632e04600b6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-25/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-25/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a17bf352348961a2c99ac85c5be7858650c6718fb0c47f7047fc47d87fd38c17 [INFO] running `Command { std: "docker" "start" "-a" "a17bf352348961a2c99ac85c5be7858650c6718fb0c47f7047fc47d87fd38c17", kill_on_drop: false }` [INFO] [stderr] Compiling encoding_index_tests v0.1.4 [INFO] [stderr] Compiling syn v1.0.91 [INFO] [stderr] Compiling regex v0.2.11 [INFO] [stderr] Compiling ucd-util v0.1.8 [INFO] [stderr] Compiling utf8-ranges v1.0.5 [INFO] [stderr] Compiling lazycell v0.5.1 [INFO] [stderr] Compiling autocfg v0.1.8 [INFO] [stderr] Compiling rand_core v0.3.1 [INFO] [stderr] Compiling rand_jitter v0.1.4 [INFO] [stderr] Compiling base64 v0.10.1 [INFO] [stderr] Compiling thread_local v0.3.6 [INFO] [stderr] Compiling rand_os v0.1.3 [INFO] [stderr] Compiling aho-corasick v0.6.10 [INFO] [stderr] Compiling phf_shared v0.7.24 [INFO] [stderr] Compiling bytes v0.4.12 [INFO] [stderr] Compiling tempdir v0.3.7 [INFO] [stderr] Compiling hyper v0.10.16 [INFO] [stderr] Compiling rand_hc v0.1.0 [INFO] [stderr] Compiling rand_xorshift v0.1.1 [INFO] [stderr] Compiling rand_isaac v0.1.1 [INFO] [stderr] Compiling encoding-index-japanese v1.20141219.5 [INFO] [stderr] Compiling encoding-index-korean v1.20141219.5 [INFO] [stderr] Compiling encoding-index-singlebyte v1.20141219.5 [INFO] [stderr] Compiling encoding-index-tradchinese v1.20141219.5 [INFO] [stderr] Compiling encoding-index-simpchinese v1.20141219.5 [INFO] [stderr] Compiling rand_chacha v0.1.1 [INFO] [stderr] Compiling rand_pcg v0.1.2 [INFO] [stderr] Compiling rand v0.6.5 [INFO] [stderr] Compiling phf v0.7.24 [INFO] [stderr] Compiling regex-syntax v0.5.6 [INFO] [stderr] Compiling tokio-io v0.1.13 [INFO] [stderr] Compiling encoding v0.2.33 [INFO] [stderr] Compiling buf-read-ext v0.3.0 [INFO] [stderr] Compiling phf_generator v0.7.24 [INFO] [stderr] Compiling phf_codegen v0.7.24 [INFO] [stderr] Compiling mime_guess v1.8.8 [INFO] [stderr] Compiling serde_derive v1.0.136 [INFO] [stderr] Compiling textnonce v0.6.5 [INFO] [stderr] Compiling mime_multipart v0.5.2 [INFO] [stderr] Compiling formdata v0.12.3 [INFO] [stderr] Compiling light_pencil v0.4.4 (/opt/rustwide/workdir) [INFO] [stdout] warning: unknown lint: `ptr_arg` [INFO] [stdout] --> src/datastructures.rs:83:17 [INFO] [stdout] | [INFO] [stdout] 83 | #[allow(ptr_arg)] [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unknown_lints)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/wrappers.rs:45:56 [INFO] [stdout] | [INFO] [stdout] 45 | body: RefCell>>, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 45 - body: RefCell>>, [INFO] [stdout] 45 + body: RefCell>>, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/wrappers.rs:228:33 [INFO] [stdout] | [INFO] [stdout] 228 | pub struct ResponseBody<'a>(Box); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 228 - pub struct ResponseBody<'a>(Box); [INFO] [stdout] 228 + pub struct ResponseBody<'a>(Box); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/wrappers.rs:289:26 [INFO] [stdout] | [INFO] [stdout] 289 | pub body: Option>, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 289 - pub body: Option>, [INFO] [stdout] 289 + pub body: Option>, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/types.rs:91:30 [INFO] [stdout] | [INFO] [stdout] 91 | pub type BeforeRequestFunc = Fn(&mut Request) -> Option + Send + Sync; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 91 - pub type BeforeRequestFunc = Fn(&mut Request) -> Option + Send + Sync; [INFO] [stdout] 91 + pub type BeforeRequestFunc = dyn Fn(&mut Request) -> Option + Send + Sync; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/types.rs:92:29 [INFO] [stdout] | [INFO] [stdout] 92 | pub type AfterRequestFunc = Fn(&Request, &mut Response) + Send + Sync; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 92 - pub type AfterRequestFunc = Fn(&Request, &mut Response) + Send + Sync; [INFO] [stdout] 92 + pub type AfterRequestFunc = dyn Fn(&Request, &mut Response) + Send + Sync; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/types.rs:94:32 [INFO] [stdout] | [INFO] [stdout] 94 | pub type TeardownRequestFunc = Fn(Option<&PencilError>) + Send + Sync; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 94 - pub type TeardownRequestFunc = Fn(Option<&PencilError>) + Send + Sync; [INFO] [stdout] 94 + pub type TeardownRequestFunc = dyn Fn(Option<&PencilError>) + Send + Sync; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/types.rs:88:29 [INFO] [stdout] | [INFO] [stdout] 88 | pub type HTTPErrorHandler = Fn(HTTPError) -> PencilResult + Send + Sync; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 88 - pub type HTTPErrorHandler = Fn(HTTPError) -> PencilResult + Send + Sync; [INFO] [stdout] 88 + pub type HTTPErrorHandler = dyn Fn(HTTPError) -> PencilResult + Send + Sync; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/types.rs:89:29 [INFO] [stdout] | [INFO] [stdout] 89 | pub type UserErrorHandler = Fn(UserError) -> PencilResult + Send + Sync; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 89 - pub type UserErrorHandler = Fn(UserError) -> PencilResult + Send + Sync; [INFO] [stdout] 89 + pub type UserErrorHandler = dyn Fn(UserError) -> PencilResult + Send + Sync; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/types.rs:75:32 [INFO] [stdout] | [INFO] [stdout] 75 | fn cause(&self) -> Option<&error::Error> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 75 - fn cause(&self) -> Option<&error::Error> { [INFO] [stdout] 75 + fn cause(&self) -> Option<&dyn error::Error> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_left_matches`: superseded by `trim_start_matches` [INFO] [stdout] --> src/wrappers.rs:208:44 [INFO] [stdout] | [INFO] [stdout] 208 | self.host_url() + self.full_path().trim_left_matches('/') [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_start_matches` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_left_matches`: superseded by `trim_start_matches` [INFO] [stdout] --> src/wrappers.rs:212:39 [INFO] [stdout] | [INFO] [stdout] 212 | self.host_url() + self.path().trim_left_matches('/') [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_start_matches` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_right_matches`: superseded by `trim_end_matches` [INFO] [stdout] --> src/routing.rs:106:54 [INFO] [stdout] | [INFO] [stdout] 106 | for (converter, variable) in parse_rule(rule.trim_right_matches('/')) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_end_matches` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_left_matches`: superseded by `trim_start_matches` [INFO] [stdout] --> src/routing.rs:272:39 [INFO] [stdout] | [INFO] [stdout] 272 | let redirect_path = self.path.trim_left_matches('/').to_owned() + "/"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_start_matches` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/helpers.rs:74:93 [INFO] [stdout] | [INFO] [stdout] 74 | return Err(UserError::new(format!("couldn't open {}: {}", filepath.display(), e.description())).into()); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/helpers.rs:108:93 [INFO] [stdout] | [INFO] [stdout] 108 | return Err(UserError::new(format!("couldn't open {}: {}", filepath.display(), e.description())).into()), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/app.rs:218:79 [INFO] [stdout] | [INFO] [stdout] 218 | eprintln!("Error on {} [{}]: {}", request.path(), request.method(), e.description()); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/types.rs:61:54 [INFO] [stdout] | [INFO] [stdout] 61 | PenHTTPError(ref err) => f.write_str(err.description()), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/types.rs:62:54 [INFO] [stdout] | [INFO] [stdout] 62 | PenUserError(ref err) => f.write_str(err.description()), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/types.rs:70:42 [INFO] [stdout] | [INFO] [stdout] 70 | PenHTTPError(ref err) => err.description(), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/types.rs:71:42 [INFO] [stdout] | [INFO] [stdout] 71 | PenUserError(ref err) => err.description(), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/types.rs:77:53 [INFO] [stdout] | [INFO] [stdout] 77 | PenHTTPError(ref err) => Some(&*err as &error::Error), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 77 - PenHTTPError(ref err) => Some(&*err as &error::Error), [INFO] [stdout] 77 + PenHTTPError(ref err) => Some(&*err as &dyn error::Error), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 22 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 12.53s [INFO] running `Command { std: "docker" "inspect" "a17bf352348961a2c99ac85c5be7858650c6718fb0c47f7047fc47d87fd38c17", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a17bf352348961a2c99ac85c5be7858650c6718fb0c47f7047fc47d87fd38c17", kill_on_drop: false }` [INFO] [stdout] a17bf352348961a2c99ac85c5be7858650c6718fb0c47f7047fc47d87fd38c17 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-25/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-25/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 89603aef3b5888d74ad35d1eab65a2ff3b598711c7cb6224767bf0f9060b3409 [INFO] running `Command { std: "docker" "start" "-a" "89603aef3b5888d74ad35d1eab65a2ff3b598711c7cb6224767bf0f9060b3409", kill_on_drop: false }` [INFO] [stdout] warning: unknown lint: `ptr_arg` [INFO] [stdout] --> src/datastructures.rs:83:17 [INFO] [stdout] | [INFO] [stdout] 83 | #[allow(ptr_arg)] [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unknown_lints)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/wrappers.rs:45:56 [INFO] [stdout] | [INFO] [stdout] 45 | body: RefCell>>, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 45 - body: RefCell>>, [INFO] [stdout] 45 + body: RefCell>>, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/wrappers.rs:228:33 [INFO] [stdout] | [INFO] [stdout] 228 | pub struct ResponseBody<'a>(Box); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 228 - pub struct ResponseBody<'a>(Box); [INFO] [stdout] 228 + pub struct ResponseBody<'a>(Box); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/wrappers.rs:289:26 [INFO] [stdout] | [INFO] [stdout] 289 | pub body: Option>, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 289 - pub body: Option>, [INFO] [stdout] 289 + pub body: Option>, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/types.rs:91:30 [INFO] [stdout] | [INFO] [stdout] 91 | pub type BeforeRequestFunc = Fn(&mut Request) -> Option + Send + Sync; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 91 - pub type BeforeRequestFunc = Fn(&mut Request) -> Option + Send + Sync; [INFO] [stdout] 91 + pub type BeforeRequestFunc = dyn Fn(&mut Request) -> Option + Send + Sync; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/types.rs:92:29 [INFO] [stdout] | [INFO] [stdout] 92 | pub type AfterRequestFunc = Fn(&Request, &mut Response) + Send + Sync; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 92 - pub type AfterRequestFunc = Fn(&Request, &mut Response) + Send + Sync; [INFO] [stdout] 92 + pub type AfterRequestFunc = dyn Fn(&Request, &mut Response) + Send + Sync; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/types.rs:94:32 [INFO] [stdout] | [INFO] [stdout] 94 | pub type TeardownRequestFunc = Fn(Option<&PencilError>) + Send + Sync; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 94 - pub type TeardownRequestFunc = Fn(Option<&PencilError>) + Send + Sync; [INFO] [stdout] 94 + pub type TeardownRequestFunc = dyn Fn(Option<&PencilError>) + Send + Sync; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/types.rs:88:29 [INFO] [stdout] | [INFO] [stdout] 88 | pub type HTTPErrorHandler = Fn(HTTPError) -> PencilResult + Send + Sync; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 88 - pub type HTTPErrorHandler = Fn(HTTPError) -> PencilResult + Send + Sync; [INFO] [stdout] 88 + pub type HTTPErrorHandler = dyn Fn(HTTPError) -> PencilResult + Send + Sync; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/types.rs:89:29 [INFO] [stdout] | [INFO] [stdout] 89 | pub type UserErrorHandler = Fn(UserError) -> PencilResult + Send + Sync; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 89 - pub type UserErrorHandler = Fn(UserError) -> PencilResult + Send + Sync; [INFO] [stdout] 89 + pub type UserErrorHandler = dyn Fn(UserError) -> PencilResult + Send + Sync; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/types.rs:75:32 [INFO] [stdout] | [INFO] [stdout] 75 | fn cause(&self) -> Option<&error::Error> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 75 - fn cause(&self) -> Option<&error::Error> { [INFO] [stdout] 75 + fn cause(&self) -> Option<&dyn error::Error> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_left_matches`: superseded by `trim_start_matches` [INFO] [stdout] --> src/wrappers.rs:208:44 [INFO] [stdout] | [INFO] [stdout] 208 | self.host_url() + self.full_path().trim_left_matches('/') [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_start_matches` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_left_matches`: superseded by `trim_start_matches` [INFO] [stdout] --> src/wrappers.rs:212:39 [INFO] [stdout] | [INFO] [stdout] 212 | self.host_url() + self.path().trim_left_matches('/') [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_start_matches` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_right_matches`: superseded by `trim_end_matches` [INFO] [stdout] --> src/routing.rs:106:54 [INFO] [stdout] | [INFO] [stdout] 106 | for (converter, variable) in parse_rule(rule.trim_right_matches('/')) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_end_matches` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_left_matches`: superseded by `trim_start_matches` [INFO] [stdout] --> src/routing.rs:272:39 [INFO] [stdout] | [INFO] [stdout] 272 | let redirect_path = self.path.trim_left_matches('/').to_owned() + "/"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_start_matches` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/helpers.rs:74:93 [INFO] [stdout] | [INFO] [stdout] 74 | return Err(UserError::new(format!("couldn't open {}: {}", filepath.display(), e.description())).into()); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/helpers.rs:108:93 [INFO] [stdout] | [INFO] [stdout] 108 | return Err(UserError::new(format!("couldn't open {}: {}", filepath.display(), e.description())).into()), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/app.rs:218:79 [INFO] [stdout] | [INFO] [stdout] 218 | eprintln!("Error on {} [{}]: {}", request.path(), request.method(), e.description()); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/types.rs:61:54 [INFO] [stdout] | [INFO] [stdout] 61 | PenHTTPError(ref err) => f.write_str(err.description()), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/types.rs:62:54 [INFO] [stdout] | [INFO] [stdout] 62 | PenUserError(ref err) => f.write_str(err.description()), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/types.rs:70:42 [INFO] [stdout] | [INFO] [stdout] 70 | PenHTTPError(ref err) => err.description(), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/types.rs:71:42 [INFO] [stdout] | [INFO] [stdout] 71 | PenUserError(ref err) => err.description(), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/types.rs:77:53 [INFO] [stdout] | [INFO] [stdout] 77 | PenHTTPError(ref err) => Some(&*err as &error::Error), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 77 - PenHTTPError(ref err) => Some(&*err as &error::Error), [INFO] [stdout] 77 + PenHTTPError(ref err) => Some(&*err as &dyn error::Error), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling light_pencil v0.4.4 (/opt/rustwide/workdir) [INFO] [stdout] warning: 22 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unknown lint: `ptr_arg` [INFO] [stdout] --> src/datastructures.rs:83:17 [INFO] [stdout] | [INFO] [stdout] 83 | #[allow(ptr_arg)] [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unknown_lints)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/wrappers.rs:45:56 [INFO] [stdout] | [INFO] [stdout] 45 | body: RefCell>>, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 45 - body: RefCell>>, [INFO] [stdout] 45 + body: RefCell>>, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/wrappers.rs:228:33 [INFO] [stdout] | [INFO] [stdout] 228 | pub struct ResponseBody<'a>(Box); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 228 - pub struct ResponseBody<'a>(Box); [INFO] [stdout] 228 + pub struct ResponseBody<'a>(Box); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/wrappers.rs:289:26 [INFO] [stdout] | [INFO] [stdout] 289 | pub body: Option>, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 289 - pub body: Option>, [INFO] [stdout] 289 + pub body: Option>, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/types.rs:91:30 [INFO] [stdout] | [INFO] [stdout] 91 | pub type BeforeRequestFunc = Fn(&mut Request) -> Option + Send + Sync; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 91 - pub type BeforeRequestFunc = Fn(&mut Request) -> Option + Send + Sync; [INFO] [stdout] 91 + pub type BeforeRequestFunc = dyn Fn(&mut Request) -> Option + Send + Sync; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/types.rs:92:29 [INFO] [stdout] | [INFO] [stdout] 92 | pub type AfterRequestFunc = Fn(&Request, &mut Response) + Send + Sync; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 92 - pub type AfterRequestFunc = Fn(&Request, &mut Response) + Send + Sync; [INFO] [stdout] 92 + pub type AfterRequestFunc = dyn Fn(&Request, &mut Response) + Send + Sync; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/types.rs:94:32 [INFO] [stdout] | [INFO] [stdout] 94 | pub type TeardownRequestFunc = Fn(Option<&PencilError>) + Send + Sync; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 94 - pub type TeardownRequestFunc = Fn(Option<&PencilError>) + Send + Sync; [INFO] [stdout] 94 + pub type TeardownRequestFunc = dyn Fn(Option<&PencilError>) + Send + Sync; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/types.rs:88:29 [INFO] [stdout] | [INFO] [stdout] 88 | pub type HTTPErrorHandler = Fn(HTTPError) -> PencilResult + Send + Sync; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 88 - pub type HTTPErrorHandler = Fn(HTTPError) -> PencilResult + Send + Sync; [INFO] [stdout] 88 + pub type HTTPErrorHandler = dyn Fn(HTTPError) -> PencilResult + Send + Sync; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/types.rs:89:29 [INFO] [stdout] | [INFO] [stdout] 89 | pub type UserErrorHandler = Fn(UserError) -> PencilResult + Send + Sync; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 89 - pub type UserErrorHandler = Fn(UserError) -> PencilResult + Send + Sync; [INFO] [stdout] 89 + pub type UserErrorHandler = dyn Fn(UserError) -> PencilResult + Send + Sync; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/types.rs:75:32 [INFO] [stdout] | [INFO] [stdout] 75 | fn cause(&self) -> Option<&error::Error> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 75 - fn cause(&self) -> Option<&error::Error> { [INFO] [stdout] 75 + fn cause(&self) -> Option<&dyn error::Error> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_left_matches`: superseded by `trim_start_matches` [INFO] [stdout] --> src/wrappers.rs:208:44 [INFO] [stdout] | [INFO] [stdout] 208 | self.host_url() + self.full_path().trim_left_matches('/') [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_start_matches` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_left_matches`: superseded by `trim_start_matches` [INFO] [stdout] --> src/wrappers.rs:212:39 [INFO] [stdout] | [INFO] [stdout] 212 | self.host_url() + self.path().trim_left_matches('/') [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_start_matches` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_right_matches`: superseded by `trim_end_matches` [INFO] [stdout] --> src/routing.rs:106:54 [INFO] [stdout] | [INFO] [stdout] 106 | for (converter, variable) in parse_rule(rule.trim_right_matches('/')) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_end_matches` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_left_matches`: superseded by `trim_start_matches` [INFO] [stdout] --> src/routing.rs:272:39 [INFO] [stdout] | [INFO] [stdout] 272 | let redirect_path = self.path.trim_left_matches('/').to_owned() + "/"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_start_matches` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/helpers.rs:74:93 [INFO] [stdout] | [INFO] [stdout] 74 | return Err(UserError::new(format!("couldn't open {}: {}", filepath.display(), e.description())).into()); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/helpers.rs:108:93 [INFO] [stdout] | [INFO] [stdout] 108 | return Err(UserError::new(format!("couldn't open {}: {}", filepath.display(), e.description())).into()), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/app.rs:218:79 [INFO] [stdout] | [INFO] [stdout] 218 | eprintln!("Error on {} [{}]: {}", request.path(), request.method(), e.description()); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/types.rs:61:54 [INFO] [stdout] | [INFO] [stdout] 61 | PenHTTPError(ref err) => f.write_str(err.description()), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/types.rs:62:54 [INFO] [stdout] | [INFO] [stdout] 62 | PenUserError(ref err) => f.write_str(err.description()), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/types.rs:70:42 [INFO] [stdout] | [INFO] [stdout] 70 | PenHTTPError(ref err) => err.description(), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/types.rs:71:42 [INFO] [stdout] | [INFO] [stdout] 71 | PenUserError(ref err) => err.description(), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/types.rs:77:53 [INFO] [stdout] | [INFO] [stdout] 77 | PenHTTPError(ref err) => Some(&*err as &error::Error), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 77 - PenHTTPError(ref err) => Some(&*err as &error::Error), [INFO] [stdout] 77 + PenHTTPError(ref err) => Some(&*err as &dyn error::Error), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 22 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.88s [INFO] running `Command { std: "docker" "inspect" "89603aef3b5888d74ad35d1eab65a2ff3b598711c7cb6224767bf0f9060b3409", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "89603aef3b5888d74ad35d1eab65a2ff3b598711c7cb6224767bf0f9060b3409", kill_on_drop: false }` [INFO] [stdout] 89603aef3b5888d74ad35d1eab65a2ff3b598711c7cb6224767bf0f9060b3409 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-25/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-25/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] b57da250d8e3eb0907b3534a2b0a37923d52288ef57f9b84de42158d3899306b [INFO] running `Command { std: "docker" "start" "-a" "b57da250d8e3eb0907b3534a2b0a37923d52288ef57f9b84de42158d3899306b", kill_on_drop: false }` [INFO] [stderr] warning: unknown lint: `ptr_arg` [INFO] [stderr] --> src/datastructures.rs:83:17 [INFO] [stderr] | [INFO] [stderr] 83 | #[allow(ptr_arg)] [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unknown_lints)]` on by default [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/wrappers.rs:45:56 [INFO] [stderr] | [INFO] [stderr] 45 | body: RefCell>>, [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 45 - body: RefCell>>, [INFO] [stderr] 45 + body: RefCell>>, [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/wrappers.rs:228:33 [INFO] [stderr] | [INFO] [stderr] 228 | pub struct ResponseBody<'a>(Box); [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 228 - pub struct ResponseBody<'a>(Box); [INFO] [stderr] 228 + pub struct ResponseBody<'a>(Box); [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/wrappers.rs:289:26 [INFO] [stderr] | [INFO] [stderr] 289 | pub body: Option>, [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 289 - pub body: Option>, [INFO] [stderr] 289 + pub body: Option>, [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/types.rs:91:30 [INFO] [stderr] | [INFO] [stderr] 91 | pub type BeforeRequestFunc = Fn(&mut Request) -> Option + Send + Sync; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 91 - pub type BeforeRequestFunc = Fn(&mut Request) -> Option + Send + Sync; [INFO] [stderr] 91 + pub type BeforeRequestFunc = dyn Fn(&mut Request) -> Option + Send + Sync; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/types.rs:92:29 [INFO] [stderr] | [INFO] [stderr] 92 | pub type AfterRequestFunc = Fn(&Request, &mut Response) + Send + Sync; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 92 - pub type AfterRequestFunc = Fn(&Request, &mut Response) + Send + Sync; [INFO] [stderr] 92 + pub type AfterRequestFunc = dyn Fn(&Request, &mut Response) + Send + Sync; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/types.rs:94:32 [INFO] [stderr] | [INFO] [stderr] 94 | pub type TeardownRequestFunc = Fn(Option<&PencilError>) + Send + Sync; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 94 - pub type TeardownRequestFunc = Fn(Option<&PencilError>) + Send + Sync; [INFO] [stderr] 94 + pub type TeardownRequestFunc = dyn Fn(Option<&PencilError>) + Send + Sync; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/types.rs:88:29 [INFO] [stderr] | [INFO] [stderr] 88 | pub type HTTPErrorHandler = Fn(HTTPError) -> PencilResult + Send + Sync; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 88 - pub type HTTPErrorHandler = Fn(HTTPError) -> PencilResult + Send + Sync; [INFO] [stderr] 88 + pub type HTTPErrorHandler = dyn Fn(HTTPError) -> PencilResult + Send + Sync; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/types.rs:89:29 [INFO] [stderr] | [INFO] [stderr] 89 | pub type UserErrorHandler = Fn(UserError) -> PencilResult + Send + Sync; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 89 - pub type UserErrorHandler = Fn(UserError) -> PencilResult + Send + Sync; [INFO] [stderr] 89 + pub type UserErrorHandler = dyn Fn(UserError) -> PencilResult + Send + Sync; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/types.rs:75:32 [INFO] [stderr] | [INFO] [stderr] 75 | fn cause(&self) -> Option<&error::Error> { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 75 - fn cause(&self) -> Option<&error::Error> { [INFO] [stderr] 75 + fn cause(&self) -> Option<&dyn error::Error> { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: use of deprecated associated function `core::str::::trim_left_matches`: superseded by `trim_start_matches` [INFO] [stderr] --> src/wrappers.rs:208:44 [INFO] [stderr] | [INFO] [stderr] 208 | self.host_url() + self.full_path().trim_left_matches('/') [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_start_matches` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(deprecated)]` on by default [INFO] [stderr] [INFO] [stderr] warning: use of deprecated associated function `core::str::::trim_left_matches`: superseded by `trim_start_matches` [INFO] [stderr] --> src/wrappers.rs:212:39 [INFO] [stderr] | [INFO] [stderr] 212 | self.host_url() + self.path().trim_left_matches('/') [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_start_matches` [INFO] [stderr] [INFO] [stderr] warning: use of deprecated associated function `core::str::::trim_right_matches`: superseded by `trim_end_matches` [INFO] [stderr] --> src/routing.rs:106:54 [INFO] [stderr] | [INFO] [stderr] 106 | for (converter, variable) in parse_rule(rule.trim_right_matches('/')) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_end_matches` [INFO] [stderr] [INFO] [stderr] warning: use of deprecated associated function `core::str::::trim_left_matches`: superseded by `trim_start_matches` [INFO] [stderr] --> src/routing.rs:272:39 [INFO] [stderr] | [INFO] [stderr] 272 | let redirect_path = self.path.trim_left_matches('/').to_owned() + "/"; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_start_matches` [INFO] [stderr] [INFO] [stderr] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stderr] --> src/helpers.rs:74:93 [INFO] [stderr] | [INFO] [stderr] 74 | return Err(UserError::new(format!("couldn't open {}: {}", filepath.display(), e.description())).into()); [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stderr] --> src/helpers.rs:108:93 [INFO] [stderr] | [INFO] [stderr] 108 | return Err(UserError::new(format!("couldn't open {}: {}", filepath.display(), e.description())).into()), [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stderr] --> src/app.rs:218:79 [INFO] [stderr] | [INFO] [stderr] 218 | eprintln!("Error on {} [{}]: {}", request.path(), request.method(), e.description()); [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stderr] --> src/types.rs:61:54 [INFO] [stderr] | [INFO] [stderr] 61 | PenHTTPError(ref err) => f.write_str(err.description()), [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stderr] --> src/types.rs:62:54 [INFO] [stderr] | [INFO] [stderr] 62 | PenUserError(ref err) => f.write_str(err.description()), [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stderr] --> src/types.rs:70:42 [INFO] [stderr] | [INFO] [stderr] 70 | PenHTTPError(ref err) => err.description(), [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stderr] --> src/types.rs:71:42 [INFO] [stderr] | [INFO] [stderr] 71 | PenUserError(ref err) => err.description(), [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/types.rs:77:53 [INFO] [stderr] | [INFO] [stderr] 77 | PenHTTPError(ref err) => Some(&*err as &error::Error), [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 77 - PenHTTPError(ref err) => Some(&*err as &error::Error), [INFO] [stderr] 77 + PenHTTPError(ref err) => Some(&*err as &dyn error::Error), [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: `light_pencil` (lib) generated 22 warnings [INFO] [stderr] warning: `light_pencil` (lib test) generated 22 warnings (22 duplicates) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.04s [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/light_pencil-f912e39d9eb17968) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Doc-tests light_pencil [INFO] [stderr] warning: unknown lint: `ptr_arg` [INFO] [stderr] --> /opt/rustwide/workdir/src/datastructures.rs:83:17 [INFO] [stderr] | [INFO] [stderr] 83 | #[allow(ptr_arg)] [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unknown_lints)]` on by default [INFO] [stderr] [INFO] [stderr] warning: 1 warning emitted [INFO] [stderr] [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "b57da250d8e3eb0907b3534a2b0a37923d52288ef57f9b84de42158d3899306b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b57da250d8e3eb0907b3534a2b0a37923d52288ef57f9b84de42158d3899306b", kill_on_drop: false }` [INFO] [stdout] b57da250d8e3eb0907b3534a2b0a37923d52288ef57f9b84de42158d3899306b