Closed
Description
The relevant commit seem to be located at
rust-lang/backtrace-rs@7d26334
Meta
rustc 1.80.0-nightly (a330e4959 2024-06-04)
binary: rustc
commit-hash: a330e49593ee890f9197727a3a558b6e6b37f843
commit-date: 2024-06-04
host: x86_64-pc-windows-msvc
release: 1.80.0-nightly
LLVM version: 18.1.6
Error
error[E0308]: `if` and `else` have incompatible types
--> D:\Program Files\rust\rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\std\src\..\..\backtrace\src\symbolize\dbghelp.rs:111:9
|
104 | let resolve_inner = if (*dbghelp.dbghelp()).SymAddrIncludeInlineTrace().is_some() {
| _________________________-
105 | | // We are on a version of dbghelp 6.2+, which contains the more modern
106 | | // Inline APIs.
107 | | resolve_with_inline
| | ------------------- expected because of this
... |
111 | | resolve_legacy
| | ^^^^^^^^^^^^^^ expected `Option<()>`, found `()`
112 | | };
| |_____- `if` and `else` have incompatible types
|
= note: expected fn item `unsafe for<'a, 'b> fn(&'a Init, _, Option<_>, &'b mut (dyn for<'a> core::ops::FnMut(&'a symbolize::Symbol) + 'b)) -> Option<()> {resolve_with_inline}`
found fn item `unsafe for<'a, 'b> fn(&'a Init, _, Option<_>, &'b mut (dyn for<'a> core::ops::FnMut(&'a symbolize::Symbol) + 'b)) {resolve_legacy}`