Skip to content

Investigate why named arguments in FormatSpec.precision seem to have indices that don't correspond to a span in Context.arg_spans #99266

@PrestonFrom

Description

@PrestonFrom
Contributor

As noted int #99263, named arguments in FormatSpec.precision seem to have indices that don't correspond to a span in Context.arg_spans. This caused an ICE with the named_arguments_used_positionally lint, which assumed the index in the FxHashSet for named arguments would correspond to the index for arg_spans in context.

Determine if this is a bug or if some sort of translation is necessary and update accordingly.

Activity

PrestonFrom

PrestonFrom commented on Jul 15, 2022

@PrestonFrom
ContributorAuthor

@rustbot claim

added a commit that references this issue on Jul 29, 2022
Errorea6ab1b
added 2 commits that reference this issue on Aug 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

    Participants

    @PrestonFrom

    Issue actions

      Investigate why named arguments in FormatSpec.precision seem to have indices that don't correspond to a span in Context.arg_spans · Issue #99266 · rust-lang/rust