[INFO] fetching crate rust_examples 0.1.11... [INFO] checking rust_examples-0.1.11 against try#4d98531622e1718ae0bc3c7a1ab9cd8938428452+rustflags=-Dtail_expr_drop_order for pr-129604 [INFO] extracting crate rust_examples 0.1.11 into /workspace/builds/worker-7-tc2/source [INFO] validating manifest of crates.io crate rust_examples 0.1.11 on toolchain 4d98531622e1718ae0bc3c7a1ab9cd8938428452 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate rust_examples 0.1.11 [INFO] finished tweaking crates.io crate rust_examples 0.1.11 [INFO] tweaked toml for crates.io crate rust_examples 0.1.11 written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] crate crates.io crate rust_examples 0.1.11 already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 16eecddccfe1f5e92cf6ea006d83d16335aa3d859150122286c2e8f7246a8dc3 [INFO] running `Command { std: "docker" "start" "-a" "16eecddccfe1f5e92cf6ea006d83d16335aa3d859150122286c2e8f7246a8dc3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "16eecddccfe1f5e92cf6ea006d83d16335aa3d859150122286c2e8f7246a8dc3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "16eecddccfe1f5e92cf6ea006d83d16335aa3d859150122286c2e8f7246a8dc3", kill_on_drop: false }` [INFO] [stdout] 16eecddccfe1f5e92cf6ea006d83d16335aa3d859150122286c2e8f7246a8dc3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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 -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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c73410f3134ee8859223a556547c4249311a7b234d2a448b1bbd3e1f0edfea71 [INFO] running `Command { std: "docker" "start" "-a" "c73410f3134ee8859223a556547c4249311a7b234d2a448b1bbd3e1f0edfea71", kill_on_drop: false }` [INFO] [stderr] Checking rust_examples v0.1.11 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/rustonomicon/vec.rs:147:9 [INFO] [stdout] | [INFO] [stdout] 147 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_unsafe)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Node` is never constructed [INFO] [stdout] --> src/list_fifth.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Node { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Link` is never used [INFO] [stdout] --> src/list_fifth.rs:5:6 [INFO] [stdout] | [INFO] [stdout] 5 | type Link = Option>>; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `List` is never constructed [INFO] [stdout] --> src/list_fifth.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | struct List<'a, T> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `push`, and `pop` are never used [INFO] [stdout] --> src/list_fifth.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl<'a, T> List<'a, T> { [INFO] [stdout] | ----------------------- associated items in this implementation [INFO] [stdout] 12 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | pub fn push(&'a mut self, element: T) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | pub fn pop(&'a mut self) -> Option { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/list_eighth.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl LinkedList { [INFO] [stdout] | --------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 28 | pub fn push_front(&mut self, element: T) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 90 | pub fn front(&self) -> Option<&T> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 93 | pub fn back(&self) -> Option<&T> { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 96 | pub fn front_mut(&mut self) -> Option<&mut T> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 99 | pub fn back_mut(&mut self) -> Option<&mut T> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 105 | pub fn is_empty(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 108 | pub fn clear(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `IterMut` is never constructed [INFO] [stdout] --> src/list_eighth.rs:170:8 [INFO] [stdout] | [INFO] [stdout] 170 | struct IterMut<'a, T> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `iter_mut` is never used [INFO] [stdout] --> src/list_eighth.rs:177:12 [INFO] [stdout] | [INFO] [stdout] 176 | impl LinkedList { [INFO] [stdout] | --------------------- method in this implementation [INFO] [stdout] 177 | pub fn iter_mut(&mut self) -> IterMut { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `into_iter` is never used [INFO] [stdout] --> src/list_eighth.rs:249:12 [INFO] [stdout] | [INFO] [stdout] 248 | impl LinkedList { [INFO] [stdout] | --------------------- method in this implementation [INFO] [stdout] 249 | pub fn into_iter(self) -> IntoIter { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CursorMut` is never constructed [INFO] [stdout] --> src/list_eighth.rs:341:8 [INFO] [stdout] | [INFO] [stdout] 341 | struct CursorMut<'a, T> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `cursor_mut` is never used [INFO] [stdout] --> src/list_eighth.rs:347:12 [INFO] [stdout] | [INFO] [stdout] 346 | impl LinkedList { [INFO] [stdout] | --------------------- method in this implementation [INFO] [stdout] 347 | pub fn cursor_mut(&mut self) -> CursorMut { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/list_eighth.rs:356:12 [INFO] [stdout] | [INFO] [stdout] 355 | impl<'a, T> CursorMut<'a, T> { [INFO] [stdout] | ---------------------------- methods in this implementation [INFO] [stdout] 356 | pub fn remove_current(&mut self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 379 | pub fn move_next(&mut self) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 395 | pub fn move_prev(&mut self) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 411 | pub fn current(&mut self) -> Option<&mut T> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 415 | pub fn peek_next(&mut self) -> Option<&mut T> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 425 | pub fn index(&self) -> Option { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 428 | pub fn peek_prev(&mut self) -> Option<&mut T> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 438 | pub fn split_before(&mut self) -> LinkedList { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 473 | pub fn split_after(&mut self) -> LinkedList { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 505 | pub fn splice_before(&mut self, mut input: LinkedList) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 536 | pub fn splice_after(&mut self, mut input: LinkedList) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `List` is never constructed [INFO] [stdout] --> src/list_seventh.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct List { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Link` is never used [INFO] [stdout] --> src/list_seventh.rs:5:6 [INFO] [stdout] | [INFO] [stdout] 5 | type Link = *mut Node; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Node` is never constructed [INFO] [stdout] --> src/list_seventh.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | struct Node { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `IntoIter` is never constructed [INFO] [stdout] --> src/list_seventh.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | struct IntoIter(List); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Iter` is never constructed [INFO] [stdout] --> src/list_seventh.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | struct Iter<'a, T> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `IterMut` is never constructed [INFO] [stdout] --> src/list_seventh.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | struct IterMut<'a, T> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/list_seventh.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl List { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 18 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | pub fn push(&mut self, element: T) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 39 | pub fn pop(&mut self) -> Option { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 53 | pub fn into_iter(self) -> IntoIter { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 56 | pub fn iter(&mut self) -> Iter { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 63 | pub fn iter_mut(&mut self) -> IterMut { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 70 | pub fn peek(&self) -> Option<&T> { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 73 | pub fn peek_mut(&mut self) -> Option<&mut T> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Arc` is never constructed [INFO] [stdout] --> src/rustonomicon/arc.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | struct Arc { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ArcInner` is never constructed [INFO] [stdout] --> src/rustonomicon/arc.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | struct ArcInner { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/rustonomicon/arc.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl Arc { [INFO] [stdout] | -------------- associated function in this implementation [INFO] [stdout] 18 | pub fn new(data: T) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `index` is never used [INFO] [stdout] --> src/rustonomicon/meet_unsafe.rs:2:4 [INFO] [stdout] | [INFO] [stdout] 2 | fn index(idx: usize, arr: &[u8]) -> Option { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_arr` is never used [INFO] [stdout] --> src/rustonomicon/memory.rs:2:4 [INFO] [stdout] | [INFO] [stdout] 2 | fn create_arr() -> [Box; 10] { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_arr_by_write` is never used [INFO] [stdout] --> src/rustonomicon/memory.rs:13:4 [INFO] [stdout] | [INFO] [stdout] 13 | fn create_arr_by_write() -> [Box; 10] { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Demo` is never constructed [INFO] [stdout] --> src/rustonomicon/memory.rs:26:8 [INFO] [stdout] | [INFO] [stdout] 26 | struct Demo(bool, i32); [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `createDemo` is never used [INFO] [stdout] --> src/rustonomicon/memory.rs:27:4 [INFO] [stdout] | [INFO] [stdout] 27 | fn createDemo() -> Demo { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Vec` is never constructed [INFO] [stdout] --> src/rustonomicon/vec.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | struct Vec { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/rustonomicon/vec.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl Vec { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 14 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | pub fn cap(&self) -> usize { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 23 | pub fn ptr(&self) -> *mut T { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | pub fn push(&mut self, elem: T) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 34 | pub fn pop(&mut self) -> Option { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | pub fn insert(&mut self, index: usize, elem: T) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 57 | pub fn remove(&mut self, index: usize) -> T { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 70 | pub fn drain(&mut self) -> Drain { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/rustonomicon/vec.rs:104:15 [INFO] [stdout] | [INFO] [stdout] 103 | impl RawValIter { [INFO] [stdout] | --------------------- associated function in this implementation [INFO] [stdout] 104 | unsafe fn new(slice: &[T]) -> RawValIter { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `grow` and `new` are never used [INFO] [stdout] --> src/rustonomicon/vec.rs:211:8 [INFO] [stdout] | [INFO] [stdout] 210 | impl RawVec { [INFO] [stdout] | ----------------- associated items in this implementation [INFO] [stdout] 211 | fn grow(&mut self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 232 | fn new() -> RawVec { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `List` is never constructed [INFO] [stdout] --> src/silly1.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | struct List { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/silly1.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl List { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 14 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | pub fn push_left(&mut self, elem: T) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 23 | pub fn push_right(&mut self, elem: T) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | pub fn pop_left(&mut self) -> Option { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | pub fn pop_right(&mut self) -> Option { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn peek_left(&self) -> Option<&T> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | pub fn peek_right(&self) -> Option<&T> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | pub fn peek_left_mut(&mut self) -> Option<&mut T> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 41 | pub fn peek_right_mut(&mut self) -> Option<&mut T> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | pub fn go_left(&mut self) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 53 | pub fn go_right(&mut self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/list_fourth.rs:13:17 [INFO] [stdout] | [INFO] [stdout] 12 | fn new(element: T) -> Rc> { [INFO] [stdout] | ---------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 13 | Rc::new(RefCell::new(Node { [INFO] [stdout] | _________________^ [INFO] [stdout] 14 | | element, [INFO] [stdout] 15 | | prev: None, [INFO] [stdout] 16 | | next: None, [INFO] [stdout] 17 | | })) [INFO] [stdout] | |__________^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] = note: requested on the command line with `-D tail-expr-drop-order` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/list_fourth.rs:35:15 [INFO] [stdout] | [INFO] [stdout] 33 | pub fn push_front(&mut self, element: T) { [INFO] [stdout] | ---------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 34 | let new_head = Node::new(element); [INFO] [stdout] | -------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 35 | match self.head.take() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/list_fourth.rs:58:13 [INFO] [stdout] | [INFO] [stdout] 48 | self.head.take().map(|old_head| { [INFO] [stdout] | -------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 58 | Rc::try_unwrap(old_head).ok().unwrap().into_inner().element [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/list_fourth.rs:69:15 [INFO] [stdout] | [INFO] [stdout] 67 | pub fn push_tail(&mut self, element: T) { [INFO] [stdout] | ---------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 68 | let new_tail = Node::new(element); [INFO] [stdout] | -------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 69 | match self.tail.take() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/list_fourth.rs:92:13 [INFO] [stdout] | [INFO] [stdout] 82 | self.tail.take().map(|old_tail| { [INFO] [stdout] | -------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 92 | Rc::try_unwrap(old_tail).ok().unwrap().into_inner().element [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/list_eighth.rs:422:34 [INFO] [stdout] | [INFO] [stdout] 422 | next.map(|node| &mut (*node.as_ptr()).element) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/list_eighth.rs:435:34 [INFO] [stdout] | [INFO] [stdout] 435 | prev.map(|node| &mut (*node.as_ptr()).element) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/list_third.rs:17:19 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn prepend(&self, element: T) -> List { [INFO] [stdout] | ---------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 16 | List { [INFO] [stdout] 17 | head: Some(Rc::new(Node { [INFO] [stdout] | ___________________^ [INFO] [stdout] 18 | | element, [INFO] [stdout] 19 | | next: self.head.clone(), [INFO] [stdout] 20 | | })), [INFO] [stdout] | |_______________^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `Box::::from_raw` that must be used [INFO] [stdout] --> src/rustonomicon/arc.rs:61:13 [INFO] [stdout] | [INFO] [stdout] 61 | Box::from_raw(self.ptr.as_ptr()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: call `drop(Box::from_raw(ptr))` if you intend to drop the `Box` [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 61 | let _ = Box::from_raw(self.ptr.as_ptr()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `size` should have an upper case name [INFO] [stdout] --> src/rustonomicon/memory.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | const size: usize = 10; [INFO] [stdout] | ^^^^ help: convert the identifier to upper case: `SIZE` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `size` should have an upper case name [INFO] [stdout] --> src/rustonomicon/memory.rs:14:11 [INFO] [stdout] | [INFO] [stdout] 14 | const size: usize = 10; [INFO] [stdout] | ^^^^ help: convert the identifier to upper case: `SIZE` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `createDemo` should have a snake case name [INFO] [stdout] --> src/rustonomicon/memory.rs:27:4 [INFO] [stdout] | [INFO] [stdout] 27 | fn createDemo() -> Demo { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `create_demo` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 8 previous errors; 37 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rust_examples` (lib) due to 9 previous errors; 37 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/rustonomicon/vec.rs:147:9 [INFO] [stdout] | [INFO] [stdout] 147 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_unsafe)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `push` is never used [INFO] [stdout] --> src/list_fifth.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl<'a, T> List<'a, T> { [INFO] [stdout] | ----------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 18 | pub fn push(&'a mut self, element: T) { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `clear` is never used [INFO] [stdout] --> src/list_eighth.rs:108:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl LinkedList { [INFO] [stdout] | --------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 108 | pub fn clear(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Arc` is never constructed [INFO] [stdout] --> src/rustonomicon/arc.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | struct Arc { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ArcInner` is never constructed [INFO] [stdout] --> src/rustonomicon/arc.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | struct ArcInner { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/rustonomicon/arc.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl Arc { [INFO] [stdout] | -------------- associated function in this implementation [INFO] [stdout] 18 | pub fn new(data: T) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Vec` is never constructed [INFO] [stdout] --> src/rustonomicon/vec.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | struct Vec { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/rustonomicon/vec.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl Vec { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 14 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | pub fn cap(&self) -> usize { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 23 | pub fn ptr(&self) -> *mut T { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | pub fn push(&mut self, elem: T) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 34 | pub fn pop(&mut self) -> Option { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | pub fn insert(&mut self, index: usize, elem: T) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 57 | pub fn remove(&mut self, index: usize) -> T { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 70 | pub fn drain(&mut self) -> Drain { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/rustonomicon/vec.rs:104:15 [INFO] [stdout] | [INFO] [stdout] 103 | impl RawValIter { [INFO] [stdout] | --------------------- associated function in this implementation [INFO] [stdout] 104 | unsafe fn new(slice: &[T]) -> RawValIter { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `grow` and `new` are never used [INFO] [stdout] --> src/rustonomicon/vec.rs:211:8 [INFO] [stdout] | [INFO] [stdout] 210 | impl RawVec { [INFO] [stdout] | ----------------- associated items in this implementation [INFO] [stdout] 211 | fn grow(&mut self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 232 | fn new() -> RawVec { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `peek_left_mut`, `peek_right_mut`, and `go_right` are never used [INFO] [stdout] --> src/silly1.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl List { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 38 | pub fn peek_left_mut(&mut self) -> Option<&mut T> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 41 | pub fn peek_right_mut(&mut self) -> Option<&mut T> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 53 | pub fn go_right(&mut self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/list_fourth.rs:13:17 [INFO] [stdout] | [INFO] [stdout] 12 | fn new(element: T) -> Rc> { [INFO] [stdout] | ---------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 13 | Rc::new(RefCell::new(Node { [INFO] [stdout] | _________________^ [INFO] [stdout] 14 | | element, [INFO] [stdout] 15 | | prev: None, [INFO] [stdout] 16 | | next: None, [INFO] [stdout] 17 | | })) [INFO] [stdout] | |__________^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] = note: requested on the command line with `-D tail-expr-drop-order` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/list_fourth.rs:35:15 [INFO] [stdout] | [INFO] [stdout] 33 | pub fn push_front(&mut self, element: T) { [INFO] [stdout] | ---------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 34 | let new_head = Node::new(element); [INFO] [stdout] | -------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 35 | match self.head.take() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/list_fourth.rs:58:13 [INFO] [stdout] | [INFO] [stdout] 48 | self.head.take().map(|old_head| { [INFO] [stdout] | -------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 58 | Rc::try_unwrap(old_head).ok().unwrap().into_inner().element [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/list_fourth.rs:69:15 [INFO] [stdout] | [INFO] [stdout] 67 | pub fn push_tail(&mut self, element: T) { [INFO] [stdout] | ---------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 68 | let new_tail = Node::new(element); [INFO] [stdout] | -------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 69 | match self.tail.take() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/list_fourth.rs:92:13 [INFO] [stdout] | [INFO] [stdout] 82 | self.tail.take().map(|old_tail| { [INFO] [stdout] | -------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 92 | Rc::try_unwrap(old_tail).ok().unwrap().into_inner().element [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/list_eighth.rs:422:34 [INFO] [stdout] | [INFO] [stdout] 422 | next.map(|node| &mut (*node.as_ptr()).element) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/list_eighth.rs:435:34 [INFO] [stdout] | [INFO] [stdout] 435 | prev.map(|node| &mut (*node.as_ptr()).element) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/list_third.rs:17:19 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn prepend(&self, element: T) -> List { [INFO] [stdout] | ---------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 16 | List { [INFO] [stdout] 17 | head: Some(Rc::new(Node { [INFO] [stdout] | ___________________^ [INFO] [stdout] 18 | | element, [INFO] [stdout] 19 | | next: self.head.clone(), [INFO] [stdout] 20 | | })), [INFO] [stdout] | |_______________^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `Box::::from_raw` that must be used [INFO] [stdout] --> src/rustonomicon/arc.rs:61:13 [INFO] [stdout] | [INFO] [stdout] 61 | Box::from_raw(self.ptr.as_ptr()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: call `drop(Box::from_raw(ptr))` if you intend to drop the `Box` [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 61 | let _ = Box::from_raw(self.ptr.as_ptr()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `size` should have an upper case name [INFO] [stdout] --> src/rustonomicon/memory.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | const size: usize = 10; [INFO] [stdout] | ^^^^ help: convert the identifier to upper case: `SIZE` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `size` should have an upper case name [INFO] [stdout] --> src/rustonomicon/memory.rs:14:11 [INFO] [stdout] | [INFO] [stdout] 14 | const size: usize = 10; [INFO] [stdout] | ^^^^ help: convert the identifier to upper case: `SIZE` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `createDemo` should have a snake case name [INFO] [stdout] --> src/rustonomicon/memory.rs:27:4 [INFO] [stdout] | [INFO] [stdout] 27 | fn createDemo() -> Demo { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `create_demo` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 8 previous errors; 15 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rust_examples` (lib test) due to 9 previous errors; 15 warnings emitted [INFO] running `Command { std: "docker" "inspect" "c73410f3134ee8859223a556547c4249311a7b234d2a448b1bbd3e1f0edfea71", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c73410f3134ee8859223a556547c4249311a7b234d2a448b1bbd3e1f0edfea71", kill_on_drop: false }` [INFO] [stdout] c73410f3134ee8859223a556547c4249311a7b234d2a448b1bbd3e1f0edfea71