Skip to content
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

Improve type inference for @something #52381

Merged
merged 1 commit into from
Jan 26, 2024

Commits on Dec 3, 2023

  1. Improve type inference for @something

    `@something` eagerly unwraps any `Some` given to it,
    while keeping the variable between its arguments the same.
    This can be an issue if a previously unpacked value is used as input
    to `@something`, leading to a type instability on more than two arguments
    (e.g. because of a fallback to `Some(nothing)`). By using different
    variables for each argument, type inference has an easier time handling
    these cases that are isolated to single branches anyway.
    Seelengrab committed Dec 3, 2023
    Configuration menu
    Copy the full SHA
    4071555 View commit details
    Browse the repository at this point in the history