Skip to content

bindgen: remove extra trailing space in check for --rust-edition flags - #3799

Merged
krasimirgg merged 2 commits into
bazelbuild:mainfrom
durin42:push-lsvyylnqstxs
Jan 14, 2026
Merged

bindgen: remove extra trailing space in check for --rust-edition flags#3799
krasimirgg merged 2 commits into
bazelbuild:mainfrom
durin42:push-lsvyylnqstxs

Conversation

@durin42

@durin42 durin42 commented Jan 8, 2026

Copy link
Copy Markdown
Contributor

The arguments would be passed as either --rust-edition=2024 or --rust-edition, 2024, but either way the resulting entry from the list comprehension on the right hand of the not in operator will contain "--rust-edition" without the trailing space. This allows users of the bindgen rules to specify their own explicit edition.

Tested:
Works in our private repo, and didn't without this patch.

The arguments would be passed as either `--rust-edition=2024` or
`--rust-edition`, `2024`, but either way the resulting entry from the
list comprehension on the right hand of the `not in` operator will
contain `"--rust-edition"` without the trailing space. This allows
users of the bindgen rules to specify their own explicit edition.

Tested:
  Works in our private repo, and didn't without this patch.
@durin42

durin42 commented Jan 8, 2026

Copy link
Copy Markdown
Contributor Author

Failure looks strange and probably unrelated? looks like it's trying to do a release action or something on my PR?

@durin42

durin42 commented Jan 8, 2026

Copy link
Copy Markdown
Contributor Author

Oh, I see other failures but they all look weird and environmental to me. Please let me know if I missed a real one in my search.

@krasimirgg
krasimirgg self-requested a review January 13, 2026 11:09

@krasimirgg krasimirgg left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@krasimirgg
krasimirgg enabled auto-merge January 14, 2026 10:41
@krasimirgg
krasimirgg added this pull request to the merge queue Jan 14, 2026
Merged via the queue into bazelbuild:main with commit f29a63c Jan 14, 2026
3 checks passed
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.

2 participants