charon
charon copied to clipboard
Mismatched GenericParams
When running Charon commit 65c45918 on the crate ordnung commit e1f1e3bd, the following error related to mismatched generics appears:
error: Mismatched generics:
expected: GenericParams { regions: [], types: [Some(TypeVar { index: 0, name: "T" })], const_generics: [], trait_clauses: [Some(TraitClause { clause_id: 0, span: Some(Span { span: RawSpan { file_id: 32, beg: Loc { line: 2498, col: 5 }, end: Loc { line: 2498, col: 6 }, rust_span_data: /Users/fromherz/.rustup/toolchains/nightly-2024-08-11-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/option.rs:2498:6: 2498:7 (#0) }, generated_from_span: None }), origin: WhereClauseOnImpl, trait_: TraitDeclRef { trait_id: 0, generics: GenericArgs { regions: [], types: [Some(TypeVar(0))], const_generics: [], trait_refs: [] } } })], regions_outlive: [], types_outlive: [], trait_type_constraints: [] }
got: GenericArgs { regions: [], types: [Some(TypeVar(0))], const_generics: [], trait_refs: [Some(TraitRef { kind: Clause(0), trait_decl_ref: TraitDeclRef { trait_id: 0, generics: GenericArgs { regions: [], types: [Some(TypeVar(0))], const_generics: [], trait_refs: [] } } }), Some(TraitRef { kind: Clause(0), trait_decl_ref: TraitDeclRef { trait_id: 0, generics: GenericArgs { regions: [], types: [Some(TypeVar(0))], const_generics: [], trait_refs: [] } } })] }
--> /Users/fromherz/.rustup/toolchains/nightly-2024-08-11-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/option.rs:2479:1
|
2479 | impl<T> ops::Try for Option<T> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
```