-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ICE clippy]: 'rustc' panicked at compiler/rustc_infer/src/infer/at.rs:453:17
#11952
Closed
1 task done
Closed
1 task done
Comments
StackOverflowExcept1on
added
C-bug
Category: Clippy is not doing the correct thing
I-ICE
Issue: Clippy panicked, giving an Internal Compilation Error (ICE) ❄️
labels
Dec 9, 2023
StackOverflowExcept1on
changed the title
[ICE]:
[ICE clippy]: Dec 9, 2023
'rustc' panicked at compiler/rustc_infer/src/infer/at.rs:453:17
'rustc' panicked at compiler/rustc_infer/src/infer/at.rs:453:17
I did minimal example for that: #[derive(Clone)]
pub struct MyApi;
impl MyApi {
pub async fn new() -> Result<Self, ()> {
Ok(Self)
}
pub async fn foo(&self, bytes: impl AsRef<[u8]>) -> Result<(), ()> {
todo!()
}
}
async fn foo() -> Result<(), ()> {
let api = MyApi::new().await.unwrap();
let _ = api.foo([].to_vec()).await; //when using .to_vec() on [] clippy panics
Ok(())
}
|
Thanks! Seems to be a problem with the
|
I will move this to the clippy repo |
bors
pushed a commit
to rust-lang-ci/rust
that referenced
this issue
Dec 29, 2023
This would have caught rust-lang/rust-clippy#11952.
bors
added a commit
to rust-lang-ci/rust
that referenced
this issue
Dec 29, 2023
Build Fuchsia tests in CI This would have caught rust-lang/rust-clippy#11952.
tmandry
added a commit
to tmandry/rust
that referenced
this issue
Dec 29, 2023
This would have caught rust-lang/rust-clippy#11952.
bors
added a commit
to rust-lang-ci/rust
that referenced
this issue
Dec 29, 2023
Build Fuchsia tests in CI This would have caught rust-lang/rust-clippy#11952.
tmandry
added a commit
to tmandry/rust
that referenced
this issue
Jan 3, 2024
This would have caught rust-lang/rust-clippy#11952.
bors
added a commit
to rust-lang-ci/rust
that referenced
this issue
Jan 23, 2024
Build Fuchsia tests in CI This would have caught rust-lang/rust-clippy#11952 and rust-lang#119593.
bors
added a commit
to rust-lang-ci/rust
that referenced
this issue
Jan 24, 2024
Build Fuchsia tests in CI This would have caught rust-lang/rust-clippy#11952 and rust-lang#119593.
bors
added a commit
to rust-lang-ci/rust
that referenced
this issue
Jan 25, 2024
Build Fuchsia tests in CI This would have caught rust-lang/rust-clippy#11952 and rust-lang#119593.
matthiaskrgr
added a commit
to matthiaskrgr/rust
that referenced
this issue
Jan 27, 2024
…ark-Simulacrum Bump Fuchsia, build tests, and use 8 core bots - Build Fuchsia on 8 cores instead of 16 - Skip building cranelift for Fuchsia - Bump Fuchsia (includes building tests) This includes a change to the upstream build_fuchsia_from_rust_ci script that builds a minimal set of tests, to improve coverage on this builder. This would have caught rust-lang/rust-clippy#11952 and rust-lang#119593. See prior discussion on rust-lang#119400 about building on 8 cores instead of 16. This PR combines changes from that and rust-lang#119399, plus clean up. r? `@Mark-Simulacrum`
matthiaskrgr
added a commit
to matthiaskrgr/rust
that referenced
this issue
Jan 27, 2024
…ark-Simulacrum Bump Fuchsia, build tests, and use 8 core bots - Build Fuchsia on 8 cores instead of 16 - Skip building cranelift for Fuchsia - Bump Fuchsia (includes building tests) This includes a change to the upstream build_fuchsia_from_rust_ci script that builds a minimal set of tests, to improve coverage on this builder. This would have caught rust-lang/rust-clippy#11952 and rust-lang#119593. See prior discussion on rust-lang#119400 about building on 8 cores instead of 16. This PR combines changes from that and rust-lang#119399, plus clean up. r? ``@Mark-Simulacrum``
matthiaskrgr
added a commit
to matthiaskrgr/rust
that referenced
this issue
Jan 27, 2024
…ark-Simulacrum Bump Fuchsia, build tests, and use 8 core bots - Build Fuchsia on 8 cores instead of 16 - Skip building cranelift for Fuchsia - Bump Fuchsia (includes building tests) This includes a change to the upstream build_fuchsia_from_rust_ci script that builds a minimal set of tests, to improve coverage on this builder. This would have caught rust-lang/rust-clippy#11952 and rust-lang#119593. See prior discussion on rust-lang#119400 about building on 8 cores instead of 16. This PR combines changes from that and rust-lang#119399, plus clean up. r? ```@Mark-Simulacrum```
matthiaskrgr
added a commit
to matthiaskrgr/rust
that referenced
this issue
Jan 28, 2024
…ark-Simulacrum Bump Fuchsia, build tests, and use 8 core bots - Build Fuchsia on 8 cores instead of 16 - Skip building cranelift for Fuchsia - Bump Fuchsia (includes building tests) This includes a change to the upstream build_fuchsia_from_rust_ci script that builds a minimal set of tests, to improve coverage on this builder. This would have caught rust-lang/rust-clippy#11952 and rust-lang#119593. See prior discussion on rust-lang#119400 about building on 8 cores instead of 16. This PR combines changes from that and rust-lang#119399, plus clean up. r? ````@Mark-Simulacrum````
matthiaskrgr
added a commit
to matthiaskrgr/rust
that referenced
this issue
Jan 28, 2024
…ark-Simulacrum Bump Fuchsia, build tests, and use 8 core bots - Build Fuchsia on 8 cores instead of 16 - Skip building cranelift for Fuchsia - Bump Fuchsia (includes building tests) This includes a change to the upstream build_fuchsia_from_rust_ci script that builds a minimal set of tests, to improve coverage on this builder. This would have caught rust-lang/rust-clippy#11952 and rust-lang#119593. See prior discussion on rust-lang#119400 about building on 8 cores instead of 16. This PR combines changes from that and rust-lang#119399, plus clean up. r? `````@Mark-Simulacrum`````
bors
added a commit
to rust-lang-ci/rust
that referenced
this issue
Jan 31, 2024
…k-Simulacrum Bump Fuchsia, build tests, and use 8 core bots - Build Fuchsia on 8 cores instead of 16 - Skip building cranelift for Fuchsia - Bump Fuchsia (includes building tests) This includes a change to the upstream build_fuchsia_from_rust_ci script that builds a minimal set of tests, to improve coverage on this builder. This would have caught rust-lang/rust-clippy#11952 and rust-lang#119593. See prior discussion on rust-lang#119400 about building on 8 cores instead of 16. This PR combines changes from that and rust-lang#119399, plus clean up. r? `@Mark-Simulacrum`
github-actions bot
pushed a commit
to rust-lang/miri
that referenced
this issue
Feb 6, 2024
Bump Fuchsia, build tests, and use 8 core bots - Build Fuchsia on 8 cores instead of 16 - Skip building cranelift for Fuchsia - Bump Fuchsia (includes building tests) This includes a change to the upstream build_fuchsia_from_rust_ci script that builds a minimal set of tests, to improve coverage on this builder. This would have caught rust-lang/rust-clippy#11952 and #119593. See prior discussion on #119400 about building on 8 cores instead of 16. This PR combines changes from that and #119399, plus clean up. r? `@Mark-Simulacrum`
lnicola
pushed a commit
to lnicola/rust-analyzer
that referenced
this issue
Apr 7, 2024
Bump Fuchsia, build tests, and use 8 core bots - Build Fuchsia on 8 cores instead of 16 - Skip building cranelift for Fuchsia - Bump Fuchsia (includes building tests) This includes a change to the upstream build_fuchsia_from_rust_ci script that builds a minimal set of tests, to improve coverage on this builder. This would have caught rust-lang/rust-clippy#11952 and #119593. See prior discussion on #119400 about building on 8 cores instead of 16. This PR combines changes from that and #119399, plus clean up. r? `@Mark-Simulacrum`
RalfJung
pushed a commit
to RalfJung/rust-analyzer
that referenced
this issue
Apr 27, 2024
Bump Fuchsia, build tests, and use 8 core bots - Build Fuchsia on 8 cores instead of 16 - Skip building cranelift for Fuchsia - Bump Fuchsia (includes building tests) This includes a change to the upstream build_fuchsia_from_rust_ci script that builds a minimal set of tests, to improve coverage on this builder. This would have caught rust-lang/rust-clippy#11952 and #119593. See prior discussion on #119400 about building on 8 cores instead of 16. This PR combines changes from that and #119399, plus clean up. r? `@Mark-Simulacrum`
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
I can't reproduce on my local machine, but our CI doesn't work: https://github.com/gear-tech/gear/actions/runs/7150275036/job/19473393593#step:8:2002
Affected release channels
Rust Version
Current error output
No response
Backtrace
Anything else?
No response
The text was updated successfully, but these errors were encountered: