Skip to content

Fix elided_lifetimes_in_paths warnings in process_wrapper - #4372

Open
digit-google wants to merge 1 commit into
bazelbuild:mainfrom
digit-google:fix-elided-lifetimes-in-process-wrapper
Open

digit-google wants to merge 1 commit into
bazelbuild:mainfrom
digit-google:fix-elided-lifetimes-in-process-wrapper

Conversation

@digit-google

Copy link
Copy Markdown

When building process_wrapper in the exec configuration with toolchains that enable -Wrust-2018-idioms (or -Welided-lifetimes-in-paths) without --cap-lints=allow, (as is done in the Fuchsia build) un-lifetimed fmt::Formatter references emit unpleasant warnings. This PR removes them.

Spell out the anonymous lifetime (fmt::Formatter<'_>) across util/process_wrapper.

When building process_wrapper in the exec configuration with toolchains
that enable -Wrust-2018-idioms (or -Welided-lifetimes-in-paths) without
--cap-lints=allow, un-lifetimed fmt::Formatter references emit warnings.

Spell out the anonymous lifetime (fmt::Formatter<'_>) across
util/process_wrapper.

This branch has not been deployed

No deployments
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