Skip to content

Issues: rust-lang/rust

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

Author
Filter by author
Loading
Label
Filter by label
Loading
Use alt + click/return to exclude labels
or + click/return for logical OR
Projects
Filter by project
Loading
Milestones
Filter by milestone
Loading
Assignee
Filter by who’s assigned
Assigned to nobody Loading
Sort

Issues list

[bug] When I Use tauri-plugin-http and reqwest either, I got a panic A-async-await Area: Async & Await A-auto-traits Area: auto traits (e.g., `auto trait Send {}`) A-coercions Area: implicit and explicit `expr as Type` coercions A-dyn-trait Area: trait objects, vtable layout C-bug Category: This is a bug. I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ P-medium Medium priority regression-from-stable-to-stable Performance or correctness regression from one stable version to another. S-has-bisection Status: A bisection has been found for this issue S-has-mcve Status: A Minimal Complete and Verifiable Example has been found for this issue T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. T-types Relevant to the types team, which will review and decide on the PR/issue.
#138274 opened Mar 9, 2025 by Wan9xy
Enum with non-primitive fields can be errorneously cast to primitive type A-coercions Area: implicit and explicit `expr as Type` coercions C-bug Category: This is a bug. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. T-lang Relevant to the language team, which will review and decide on the PR/issue.
#136508 opened Feb 3, 2025 by alexpyattaev
Rust fails to coerce to a fn pointer when passing an array as an argument to a generic function. A-coercions Area: implicit and explicit `expr as Type` coercions A-inference Area: Type inference C-bug Category: This is a bug. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. T-types Relevant to the types team, which will review and decide on the PR/issue.
#136420 opened Feb 2, 2025 by theemathas
Inconsistent fn casting behavior in if-else branches for tuple and struct A-coercions Area: implicit and explicit `expr as Type` coercions A-type-system Area: Type system C-bug Category: This is a bug. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
#135970 opened Jan 24, 2025 by gaesa
Result type inference breaks in 2024 edition, while working correctly in 2021 edition A-coercions Area: implicit and explicit `expr as Type` coercions A-inference Area: Type inference C-bug Category: This is a bug. F-never_type `#![feature(never_type)]` T-types Relevant to the types team, which will review and decide on the PR/issue.
#135864 opened Jan 22, 2025 by nazar-pc
ICE: internal compiler error: coercion error but no error emitted A-coercions Area: implicit and explicit `expr as Type` coercions C-bug Category: This is a bug. I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ S-bug-has-test Status: This bug is tracked inside the repo by a `known-bug` test. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
#134355 opened Dec 15, 2024 by matthiaskrgr
Type inference fails where LUB coercion succeeds A-coercions Area: implicit and explicit `expr as Type` coercions A-inference Area: Type inference C-bug Category: This is a bug. T-types Relevant to the types team, which will review and decide on the PR/issue.
#134121 opened Dec 10, 2024 by purplesyringa
Multi fn items can be casted to fn pointers implicitly but it does not work with only one fn item A-coercions Area: implicit and explicit `expr as Type` coercions A-diagnostics Area: Messages for errors, warnings, and lints T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
#133172 opened Nov 18, 2024 by mu001999
LUB coercions works for a function but fails for a closure A-closures Area: Closures (`|…| { … }`) A-coercions Area: implicit and explicit `expr as Type` coercions A-diagnostics Area: Messages for errors, warnings, and lints C-bug Category: This is a bug. D-confusing Diagnostics: Confusing error or lint that should be reworked. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
#132643 opened Nov 5, 2024 by pazmank
LUB coercions can't combine unsafe fn item with safe fn item or pointer A-coercions Area: implicit and explicit `expr as Type` coercions C-bug Category: This is a bug. T-types Relevant to the types team, which will review and decide on the PR/issue.
#131854 opened Oct 17, 2024 by lukas-code
Further restricting what coercions are allowed on places of type ! A-coercions Area: implicit and explicit `expr as Type` coercions C-discussion Category: Discussion or questions that doesn't represent real issues. F-never_type `#![feature(never_type)]` T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. T-opsem Relevant to the opsem team
#131297 opened Oct 5, 2024 by compiler-errors
mismatched types: data type not inferred by compiler A-coercions Area: implicit and explicit `expr as Type` coercions A-inference Area: Type inference C-discussion Category: Discussion or questions that doesn't represent real issues. T-types Relevant to the types team, which will review and decide on the PR/issue.
#122184 opened Mar 8, 2024 by kzhui125
assert_eq!(x, y) doesn't coerce as well as assert!(x == y) does A-coercions Area: implicit and explicit `expr as Type` coercions C-enhancement Category: An issue proposing an enhancement or a PR with one. T-libs Relevant to the library team, which will review and decide on the PR/issue.
#120262 opened Jan 23, 2024 by ilyvion
Using let pattern with ref results in 'mismatched types' when combined with 'panic!()' A-coercions Area: implicit and explicit `expr as Type` coercions C-bug Category: This is a bug. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. T-lang Relevant to the language team, which will review and decide on the PR/issue.
#118113 opened Nov 20, 2023 by Aaron1011
Unsizing boxed self doesn't work A-coercions Area: implicit and explicit `expr as Type` coercions C-bug Category: This is a bug. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. T-lang Relevant to the language team, which will review and decide on the PR/issue.
#114975 opened Aug 18, 2023 by clarfonthey
Type inference/coercion with optional function pointer A-coercions Area: implicit and explicit `expr as Type` coercions A-type-system Area: Type system C-bug Category: This is a bug. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. T-types Relevant to the types team, which will review and decide on the PR/issue.
#112943 opened Jun 22, 2023 by spencercw
Closure Does/Doesn't compile depending purely on usage of a {} body with --edition=2021 A-borrow-checker Area: The borrow checker A-closures Area: Closures (`|…| { … }`) A-coercions Area: implicit and explicit `expr as Type` coercions C-bug Category: This is a bug. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. T-types Relevant to the types team, which will review and decide on the PR/issue.
#105699 opened Dec 14, 2022 by Olipro
Return impl for<'a> Fn(&'a) incorrectly rejected for closures A-closures Area: Closures (`|…| { … }`) A-coercions Area: implicit and explicit `expr as Type` coercions C-bug Category: This is a bug. T-types Relevant to the types team, which will review and decide on the PR/issue.
#105528 opened Dec 10, 2022 by verglasz
Unexpected type inference around unsized coercion A-coercions Area: implicit and explicit `expr as Type` coercions A-trait-system Area: Trait system C-bug Category: This is a bug. T-types Relevant to the types team, which will review and decide on the PR/issue.
#104859 opened Nov 25, 2022 by Aegrithas
&Box<[u8; 1000]> cannot be coerced to &[u8] A-coercions Area: implicit and explicit `expr as Type` coercions C-bug Category: This is a bug. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
#103665 opened Oct 28, 2022 by safinaskar
transitive coercion to slice doesn't work for arrays A-array Area: `[T; N]` A-coercions Area: implicit and explicit `expr as Type` coercions C-bug Category: This is a bug.
#103259 opened Oct 19, 2022 by oconnor663
Can't coerce closure to fn in a tuple A-closures Area: Closures (`|…| { … }`) A-coercions Area: implicit and explicit `expr as Type` coercions C-bug Category: This is a bug. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
#101705 opened Sep 12, 2022 by camsteffen
rustc should suggest a cast from anonymous function type to function pointer A-coercions Area: implicit and explicit `expr as Type` coercions A-diagnostics Area: Messages for errors, warnings, and lints D-lack-of-suggestion Diagnostics: Adding a (structured) suggestion would increase the quality of the diagnostic. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
#91258 opened Nov 26, 2021 by tobx
Type inference cannot propagate through map combinator A-closures Area: Closures (`|…| { … }`) A-coercions Area: implicit and explicit `expr as Type` coercions A-inference Area: Type inference T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
#89350 opened Sep 29, 2021 by Kobzol
Unsizing coercions apply in an inconvenient order with respect to constructor calls. A-coercions Area: implicit and explicit `expr as Type` coercions A-diagnostics Area: Messages for errors, warnings, and lints C-bug Category: This is a bug. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
#89299 opened Sep 27, 2021 by sfackler
ProTip! Mix and match filters to narrow down what you’re looking for.