From 3f558ec269f4302bc3e99e9b3dcb021750e6c308 Mon Sep 17 00:00:00 2001 From: rustbot Date: Wed, 9 Feb 2022 12:05:37 +0000 Subject: [PATCH 01/14] ices/54895.rs: fixed with errors === stdout === === stderr === error[E0277]: `main` has invalid return type `impl Trait 'a, Out = impl ?Sized>` --> /home/runner/work/glacier/glacier/ices/54895.rs:7:14 | 7 | fn main() -> impl for<'a> Trait<'a, Out = impl ?Sized + 'a> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` can only return types that implement `Termination` | = help: consider using `()`, or a `Result` error: aborting due to previous error For more information about this error, try `rustc --explain E0277`. ============== --- {ices => fixed}/54895.rs | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename {ices => fixed}/54895.rs (100%) diff --git a/ices/54895.rs b/fixed/54895.rs similarity index 100% rename from ices/54895.rs rename to fixed/54895.rs From 85ee6ac03f34d46f50fccad0a06a32de5cab0c00 Mon Sep 17 00:00:00 2001 From: rustbot Date: Wed, 9 Feb 2022 12:05:39 +0000 Subject: [PATCH 02/14] ices/62742.rs: fixed with errors === stdout === === stderr === error[E0601]: `main` function not found in crate `62742` --> /home/runner/work/glacier/glacier/ices/62742.rs:1:1 | 1 | / use std::marker::PhantomData; 2 | | 3 | | fn _alias_check() { 4 | | WrongImpl::foo(0i32); // crash ... | 26 | | pub fn foo(value: A::Value) {} 27 | | } | |_^ consider adding a `main` function to `/home/runner/work/glacier/glacier/ices/62742.rs` error[E0277]: the trait bound `RawImpl<_>: Raw<_>` is not satisfied --> /home/runner/work/glacier/glacier/ices/62742.rs:4:5 | 4 | WrongImpl::foo(0i32); // crash | ^^^^^^^^^ the trait `Raw<_>` is not implemented for `RawImpl<_>` | = help: the following implementations were found: as Raw<[T]>> note: required by a bound in `SafeImpl` --> /home/runner/work/glacier/glacier/ices/62742.rs:23:35 | 23 | pub struct SafeImpl>(PhantomData<(A, T)>); | ^^^^^^ required by this bound in `SafeImpl` error[E0599]: the function or associated item `foo` exists for struct `SafeImpl<(), RawImpl<()>>`, but its trait bounds were not satisfied --> /home/runner/work/glacier/glacier/ices/62742.rs:5:22 | 5 | WrongImpl::<()>::foo(0i32); // fine | ^^^ function or associated item cannot be called on `SafeImpl<(), RawImpl<()>>` due to unsatisfied trait bounds ... 17 | pub struct RawImpl(PhantomData); | -------------------------------------- doesn't satisfy `RawImpl<()>: Raw<()>` ... 23 | pub struct SafeImpl>(PhantomData<(A, T)>); | --------------------------------------------------------------- function or associated item `foo` not found for this | = note: the following trait bounds were not satisfied: `RawImpl<()>: Raw<()>` note: the following trait must be implemented --> /home/runner/work/glacier/glacier/ices/62742.rs:9:1 | 9 | / pub trait Raw { 10 | | type Value; 11 | | } | |_^ error[E0277]: the trait bound `RawImpl<()>: Raw<()>` is not satisfied --> /home/runner/work/glacier/glacier/ices/62742.rs:5:5 | 5 | WrongImpl::<()>::foo(0i32); // fine | ^^^^^^^^^^^^^^^ the trait `Raw<()>` is not implemented for `RawImpl<()>` | = help: the following implementations were found: as Raw<[T]>> note: required by a bound in `SafeImpl` --> /home/runner/work/glacier/glacier/ices/62742.rs:23:35 | 23 | pub struct SafeImpl>(PhantomData<(A, T)>); | ^^^^^^ required by this bound in `SafeImpl` error: aborting due to 4 previous errors Some errors have detailed explanations: E0277, E0599, E0601. For more information about an error, try `rustc --explain E0277`. ============== --- {ices => fixed}/62742.rs | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename {ices => fixed}/62742.rs (100%) diff --git a/ices/62742.rs b/fixed/62742.rs similarity index 100% rename from ices/62742.rs rename to fixed/62742.rs From b20e6d2d2b17c6101311e27309e92980431f1551 Mon Sep 17 00:00:00 2001 From: rustbot Date: Wed, 9 Feb 2022 12:05:42 +0000 Subject: [PATCH 03/14] ices/67830.rs: fixed with errors === stdout === === stderr === error: implementation of `FnOnce` is not general enough --> /home/runner/work/glacier/glacier/ices/67830.rs:22:5 | 22 | Wrap(|a| Some(a).into_iter()) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ implementation of `FnOnce` is not general enough | = note: closure with signature `fn(&'2 A) -> std::option::IntoIter<&A>` must implement `FnOnce<(&'1 A,)>`, for any lifetime `'1`... = note: ...but it actually implements `FnOnce<(&'2 A,)>`, for some specific lifetime `'2` error: aborting due to previous error ============== --- {ices => fixed}/67830.rs | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename {ices => fixed}/67830.rs (100%) diff --git a/ices/67830.rs b/fixed/67830.rs similarity index 100% rename from ices/67830.rs rename to fixed/67830.rs From f3a431c6c10b4eb8fadaf009f390e3c06b64b99c Mon Sep 17 00:00:00 2001 From: rustbot Date: Wed, 9 Feb 2022 12:05:44 +0000 Subject: [PATCH 04/14] ices/74282.rs: fixed with errors === stdout === === stderr === error[E0308]: mismatched types --> /home/runner/work/glacier/glacier/ices/74282.rs:8:5 | 8 | Anonymous(|| 3) | ^^^^^^^^^^^^^^^ expected `()`, found struct `Anonymous` | help: consider using a semicolon here | 8 | Anonymous(|| 3); | + help: try adding a return type | 6 | fn test() -> Anonymous { | ++++++++++++ error[E0308]: mismatched types --> /home/runner/work/glacier/glacier/ices/74282.rs:8:15 | 3 | type Closure = impl Fn() -> u64; | ---------------- the expected opaque type ... 8 | Anonymous(|| 3) | ^^^^ expected closure, found a different closure | = note: expected opaque type `Closure` found closure `[closure@/home/runner/work/glacier/glacier/ices/74282.rs:8:15: 8:19]` = note: no two closures, even if identical, have the same type = help: consider boxing your closure and/or using it as a trait object error: aborting due to 2 previous errors For more information about this error, try `rustc --explain E0308`. ============== --- {ices => fixed}/74282.rs | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename {ices => fixed}/74282.rs (100%) diff --git a/ices/74282.rs b/fixed/74282.rs similarity index 100% rename from ices/74282.rs rename to fixed/74282.rs From 2793b8d5cb93c8ca0ab3ed803b0a99956d405cee Mon Sep 17 00:00:00 2001 From: rustbot Date: Wed, 9 Feb 2022 12:05:47 +0000 Subject: [PATCH 05/14] ices/77987.rs: fixed with no errors === stdout === === stderr === ============== --- {ices => fixed}/77987.rs | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename {ices => fixed}/77987.rs (100%) diff --git a/ices/77987.rs b/fixed/77987.rs similarity index 100% rename from ices/77987.rs rename to fixed/77987.rs From 11ce36fd84a6d012f850fecf21b6596c76912fc6 Mon Sep 17 00:00:00 2001 From: rustbot Date: Wed, 9 Feb 2022 12:05:49 +0000 Subject: [PATCH 06/14] ices/82139.rs: fixed with errors === stdout === === stderr === error[E0425]: cannot find value `j` in this scope --> /home/runner/work/glacier/glacier/ices/82139.rs:13:26 | 13 | Some(42).map(|_| j) | ^ not found in this scope error[E0658]: `impl Trait` in type aliases is unstable --> /home/runner/work/glacier/glacier/ices/82139.rs:10:23 | 10 | type Associated = impl Bound; | ^^^^^^^^^^ | = note: see issue #63063 for more information = help: add `#![feature(type_alias_impl_trait)]` to the crate attributes to enable error[E0601]: `main` function not found in crate `82139` --> /home/runner/work/glacier/glacier/ices/82139.rs:1:1 | 1 | / trait Trait { 2 | | type Associated; 3 | | fn func() -> Self::Associated; 4 | | } ... | 14 | | } 15 | | } | |_^ consider adding a `main` function to `/home/runner/work/glacier/glacier/ices/82139.rs` error: aborting due to 3 previous errors Some errors have detailed explanations: E0425, E0601, E0658. For more information about an error, try `rustc --explain E0425`. ============== --- {ices => fixed}/82139.rs | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename {ices => fixed}/82139.rs (100%) diff --git a/ices/82139.rs b/fixed/82139.rs similarity index 100% rename from ices/82139.rs rename to fixed/82139.rs From 659e86c218bb45103744401ded3aee816427fc32 Mon Sep 17 00:00:00 2001 From: rustbot Date: Wed, 9 Feb 2022 12:05:51 +0000 Subject: [PATCH 07/14] ices/83919.rs: fixed with errors === stdout === === stderr === error[E0601]: `main` function not found in crate `83919` --> /home/runner/work/glacier/glacier/ices/83919.rs:1:1 | 1 | / #![feature(type_alias_impl_trait)] 2 | | 3 | | use std::future::Future; 4 | | ... | 25 | | } 26 | | } | |_^ consider adding a `main` function to `/home/runner/work/glacier/glacier/ices/83919.rs` error[E0277]: `{integer}` is not a future --> /home/runner/work/glacier/glacier/ices/83919.rs:20:9 | 20 | / async move { 21 | | 42 22 | | // 42 does not impl Future and rustc does actually point out the error, but rustc also panics. 23 | | // Putting a valid Future here works fine. 24 | | } | |_________^ `{integer}` is not a future | = help: the trait `Future` is not implemented for `{integer}` = note: {integer} must be a future or must implement `IntoFuture` to be awaited error: aborting due to 2 previous errors Some errors have detailed explanations: E0277, E0601. For more information about an error, try `rustc --explain E0277`. ============== --- {ices => fixed}/83919.rs | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename {ices => fixed}/83919.rs (100%) diff --git a/ices/83919.rs b/fixed/83919.rs similarity index 100% rename from ices/83919.rs rename to fixed/83919.rs From 14eaa28033e0f1dc62dd5be65bf04e4ec38fb962 Mon Sep 17 00:00:00 2001 From: rustbot Date: Wed, 9 Feb 2022 12:05:54 +0000 Subject: [PATCH 08/14] ices/84073.rs: fixed with errors === stdout === === stderr === error[E0282]: type annotations needed for `RaceBuilder>` --> /home/runner/work/glacier/glacier/ices/84073.rs:32:16 | 32 | Race::new(|race| race.when()); | ^^^^ consider giving this closure parameter the explicit type `RaceBuilder>`, where the type parameter `T` is specified error: aborting due to previous error For more information about this error, try `rustc --explain E0282`. ============== --- {ices => fixed}/84073.rs | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename {ices => fixed}/84073.rs (100%) diff --git a/ices/84073.rs b/fixed/84073.rs similarity index 100% rename from ices/84073.rs rename to fixed/84073.rs From 130535b9e90b99f262b3a55ee8ae4f45eeb63fca Mon Sep 17 00:00:00 2001 From: rustbot Date: Wed, 9 Feb 2022 12:05:56 +0000 Subject: [PATCH 09/14] ices/86719.rs: fixed with errors === stdout === === stderr === error: at least one trait must be specified --> /home/runner/work/glacier/glacier/ices/86719.rs:5:14 | 5 | type E = impl ; | ^^^^ error[E0407]: method `foo` is not a member of trait `Bar` --> /home/runner/work/glacier/glacier/ices/86719.rs:6:5 | 6 | / fn foo() -> Self::E { 7 | | |_| true 8 | | } | |_____^ not a member of trait `Bar` error[E0658]: `impl Trait` in type aliases is unstable --> /home/runner/work/glacier/glacier/ices/86719.rs:5:14 | 5 | type E = impl ; | ^^^^ | = note: see issue #63063 for more information = help: add `#![feature(type_alias_impl_trait)]` to the crate attributes to enable error[E0601]: `main` function not found in crate `86719` --> /home/runner/work/glacier/glacier/ices/86719.rs:1:1 | 1 | / trait Bar { 2 | | type E; 3 | | } 4 | | impl Bar for S { ... | 8 | | } 9 | | } | |_^ consider adding a `main` function to `/home/runner/work/glacier/glacier/ices/86719.rs` error[E0282]: type annotations needed --> /home/runner/work/glacier/glacier/ices/86719.rs:7:10 | 7 | |_| true | ^ consider giving this closure parameter a type error: aborting due to 5 previous errors Some errors have detailed explanations: E0282, E0407, E0601, E0658. For more information about an error, try `rustc --explain E0282`. ============== --- {ices => fixed}/86719.rs | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename {ices => fixed}/86719.rs (100%) diff --git a/ices/86719.rs b/fixed/86719.rs similarity index 100% rename from ices/86719.rs rename to fixed/86719.rs From d5bc6a3cd00043782bb8dfc0d6b10bf55c29b266 Mon Sep 17 00:00:00 2001 From: rustbot Date: Wed, 9 Feb 2022 12:05:59 +0000 Subject: [PATCH 10/14] ices/86800.rs: fixed with errors === stdout === === stderr === error[E0601]: `main` function not found in crate `86800` --> /home/runner/work/glacier/glacier/ices/86800.rs:1:1 | 1 | / #![feature(type_alias_impl_trait)] 2 | | 3 | | use std::future::Future; 4 | | ... | 38 | | } 39 | | } | |_^ consider adding a `main` function to `/home/runner/work/glacier/glacier/ices/86800.rs` error: unconstrained opaque type --> /home/runner/work/glacier/glacier/ices/86800.rs:19:34 | 19 | type TransactionFuture<'__, O> = impl '__ + Future>; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: `TransactionFuture` must be used in combination with a concrete type within the same module error: aborting due to 2 previous errors For more information about this error, try `rustc --explain E0601`. ============== --- {ices => fixed}/86800.rs | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename {ices => fixed}/86800.rs (100%) diff --git a/ices/86800.rs b/fixed/86800.rs similarity index 100% rename from ices/86800.rs rename to fixed/86800.rs From 7a178edc6d459dcd657399bffa0af3f93e05bf06 Mon Sep 17 00:00:00 2001 From: rustbot Date: Wed, 9 Feb 2022 12:06:02 +0000 Subject: [PATCH 11/14] ices/87340.rs: fixed with errors === stdout === === stderr === error: at least one trait must be specified --> /home/runner/work/glacier/glacier/ices/87340.rs:1:28 | 1 | type PartiallyDefined = impl 'static; | ^^^^^^^^^^^^ error[E0658]: `impl Trait` in type aliases is unstable --> /home/runner/work/glacier/glacier/ices/87340.rs:1:28 | 1 | type PartiallyDefined = impl 'static; | ^^^^^^^^^^^^ | = note: see issue #63063 for more information = help: add `#![feature(type_alias_impl_trait)]` to the crate attributes to enable error[E0601]: `main` function not found in crate `87340` --> /home/runner/work/glacier/glacier/ices/87340.rs:1:1 | 1 | / type PartiallyDefined = impl 'static; 2 | | fn partially_defined() -> PartiallyDefined<_> {} | |________________________________________________^ consider adding a `main` function to `/home/runner/work/glacier/glacier/ices/87340.rs` error[E0121]: the placeholder `_` is not allowed within types on item signatures for return types --> /home/runner/work/glacier/glacier/ices/87340.rs:2:44 | 2 | fn partially_defined() -> PartiallyDefined<_> {} | ^ not allowed in type signatures error: aborting due to 4 previous errors Some errors have detailed explanations: E0121, E0601, E0658. For more information about an error, try `rustc --explain E0121`. ============== --- {ices => fixed}/87340.rs | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename {ices => fixed}/87340.rs (100%) diff --git a/ices/87340.rs b/fixed/87340.rs similarity index 100% rename from ices/87340.rs rename to fixed/87340.rs From 32f7656650b3b5f59328b3eca96c1ef28c93d407 Mon Sep 17 00:00:00 2001 From: rustbot Date: Wed, 9 Feb 2022 12:06:04 +0000 Subject: [PATCH 12/14] ices/88236.rs: fixed with no errors === stdout === === stderr === warning: function is never used: `make_impl` --> /home/runner/work/glacier/glacier/ices/88236.rs:9:4 | 9 | fn make_impl() -> impl for<'a> Hrtb<'a, Assoc = impl Send + 'a> {} | ^^^^^^^^^ | = note: `#[warn(dead_code)]` on by default warning: 1 warning emitted ============== --- {ices => fixed}/88236.rs | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename {ices => fixed}/88236.rs (100%) diff --git a/ices/88236.rs b/fixed/88236.rs similarity index 100% rename from ices/88236.rs rename to fixed/88236.rs From ab2a849d6748e1ce7e5e80035f876d7f76b6c210 Mon Sep 17 00:00:00 2001 From: rustbot Date: Wed, 9 Feb 2022 12:06:06 +0000 Subject: [PATCH 13/14] ices/89312.rs: fixed with no errors === stdout === === stderr === ============== --- {ices => fixed}/89312.rs | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename {ices => fixed}/89312.rs (100%) diff --git a/ices/89312.rs b/fixed/89312.rs similarity index 100% rename from ices/89312.rs rename to fixed/89312.rs From 1d7ccb8ed647f31e39505da50339ddc745140ebe Mon Sep 17 00:00:00 2001 From: rustbot Date: Wed, 9 Feb 2022 12:06:09 +0000 Subject: [PATCH 14/14] ices/93411.sh: fixed with no errors === stdout === === stderr === ============== --- {ices => fixed}/93411.sh | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename {ices => fixed}/93411.sh (100%) diff --git a/ices/93411.sh b/fixed/93411.sh similarity index 100% rename from ices/93411.sh rename to fixed/93411.sh