Skip to content

[BLOCKED BY RESOLVER TYPE ALIAS LOGIC] Check for SyscallResult type in unwrap_syscall more reliably #448

@integraledelebesgue

Description

@integraledelebesgue

In the current implementation of unwrap_syscall lint, we simply assume that every Result<T, Array<felt252>> is an expansion of SyscallResult<T> type (which is an alias). Calling unwrap on such an object triggers unwrap_syscall lint event if the result is not a SyscallResult.

We can improve that lint as soon as the compiler allows checking all steps of type alias resolution, so we can truly find out whether the Result obtained from the semantic model used to be a SyscallResult in user code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    Status

    Blocked

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions