From 083a289d8ff159fcea42b3a7dc16e97a1cb8a460 Mon Sep 17 00:00:00 2001 From: rustbot Date: Sat, 2 Jul 2022 03:39:41 +0000 Subject: [PATCH] ices/96258.rs: fixed with errors === stdout === === stderr === error: this file contains an unclosed delimiter --> /home/runner/work/glacier/glacier/ices/96258.rs:4:29 | 2 | impl Numberer { | - unclosed delimiter 3 | pub(crate) async fn new( | - unclosed delimiter 4 | interval: Duration, | ^ error: expected one of `->`, `where`, or `{`, found `}` --> /home/runner/work/glacier/glacier/ices/96258.rs:4:29 | 3 | pub(crate) async fn new( | --- while parsing this `fn` 4 | interval: Duration, | ^ expected one of `->`, `where`, or `{` error: associated function in `impl` without body --> /home/runner/work/glacier/glacier/ices/96258.rs:3:5 | 3 | / pub(crate) async fn new( 4 | | interval: Duration, | | ^- help: provide a definition for the function: `{ }` | |____________________________| | error[E0412]: cannot find type `Numberer` in this scope --> /home/runner/work/glacier/glacier/ices/96258.rs:2:6 | 2 | impl Numberer { | ^^^^^^^^ not found in this scope error[E0412]: cannot find type `Duration` in this scope --> /home/runner/work/glacier/glacier/ices/96258.rs:4:19 | 4 | interval: Duration, | ^^^^^^^^ not found in this scope | help: consider importing one of these items | 2 | use core::time::Duration; | 2 | use std::time::Duration; | warning: changes to closure capture in Rust 2021 will affect drop order --> /home/runner/work/glacier/glacier/ices/96258.rs:3:5 | 3 | / pub(crate) async fn new( 4 | | interval: Duration, | | -------- ^ in Rust 2018, `interval` is dropped here along with the closure, but in Rust 2021 `interval` is not part of the closure | |_________|__________________| | | | in Rust 2018, this causes the closure to capture `interval`, but in Rust 2021, it has no effect | note: the lint level is defined here --> /home/runner/work/glacier/glacier/ices/96258.rs:1:9 | 1 | #![warn(rust_2021_incompatible_closure_captures)] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ = note: for more information, see help: add a dummy let to cause `interval` to be fully captured | 3 ~ { let _ = &interval; pub(crate) async fn new( 4 ~ interval: Duration, } | error: aborting due to 5 previous errors; 1 warning emitted For more information about this error, try `rustc --explain E0412`. ============== --- {ices => fixed}/96258.rs | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename {ices => fixed}/96258.rs (100%) diff --git a/ices/96258.rs b/fixed/96258.rs similarity index 100% rename from ices/96258.rs rename to fixed/96258.rs