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

Disable numbered access to positional args on tuples #354

Merged
merged 2 commits into from
Nov 5, 2024
Merged

Conversation

dtolnay
Copy link
Owner

@dtolnay dtolnay commented Nov 5, 2024

No description provided.

    error[E0381]: used binding `ahead` is possibly-uninitialized
       --> impl/src/fmt.rs:187:30
        |
    182 |         let ahead;
        |             ----- binding declared here but left uninitialized
    183 |         if *syn_full.get_or_insert_with(is_syn_full) && {
    184 |             ahead = input.fork();
        |             -----
        |             |
        |             binding initialized here in some conditions
        |             binding initialized here in some conditions
    ...
    187 |             input.advance_to(&ahead);
        |                              ^^^^^^ `ahead` used here but it is possibly-uninitialized
@dtolnay dtolnay merged commit 93690a3 into master Nov 5, 2024
19 checks passed
@dtolnay dtolnay deleted the numbered branch November 5, 2024 01:06
roypat added a commit to firecracker-microvm/firecracker that referenced this pull request Nov 12, 2024
roypat added a commit to firecracker-microvm/firecracker that referenced this pull request Nov 12, 2024
bors-ferrocene bot added a commit to ferrocene/criticalup that referenced this pull request Nov 14, 2024
64: Maintenance updates r=Hoverbear a=amanjeev

- Updates dependencies for crates
- Notably: `thiserror` to `2.0.3` from `1`.
 - Major breaking change for CriticlaUp was: 
   > Tuple structs and tuple variants can no longer use numerical {0} {1} access at the same time as supplying extra positional arguments for a format message, as this makes it ambiguous whether the number refers to a tuple field vs a different positional arg (dtolnay/thiserror#354)
- Removes some unused deps.

Co-authored-by: Amanjeev Sethi <[email protected]>
kanpov pushed a commit to kanpov/firecracker that referenced this pull request Nov 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant