charon icon indicating copy to clipboard operation
charon copied to clipboard

Mismatched GenericParams

Open R1kM opened this issue 5 months ago • 2 comments

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> {
     | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
     ```

R1kM avatar Sep 19 '24 12:09 R1kM