diags: Pass DiagArgMap instead of FluentArgs into format_diag_message#153231
diags: Pass DiagArgMap instead of FluentArgs into format_diag_message#153231JonathanBrouwer wants to merge 3 commits intorust-lang:mainfrom
DiagArgMap instead of FluentArgs into format_diag_message#153231Conversation
|
@bors try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
diags: Pass `DiagArgMap` instead of `FluentArgs` into `format_diag_message`
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
Finished benchmarking commit (af9f66e): comparison URL. Overall result: ✅ improvements - no action neededBenchmarking this pull request means it may be perf-sensitive – we'll automatically label it not fit for rolling up. You can override this, but we strongly advise not to, due to possible changes in compiler perf. @bors rollup=never Instruction countOur most reliable metric. Used to determine the overall result above. However, even this metric can be noisy.
Max RSS (memory usage)This benchmark run did not return any relevant results for this metric. CyclesResults (secondary -3.7%)A less reliable metric. May be of interest, but not used to determine the overall result above.
Binary sizeResults (secondary -0.0%)A less reliable metric. May be of interest, but not used to determine the overall result above.
Bootstrap: 479.975s -> 484.497s (0.94%) |
3ee5854 to
51f35d7
Compare
|
cc @davidtwco, @TaKO8Ki
cc @davidtwco, @TaKO8Ki
cc @Muscraft
cc @Muscraft |
|
r=me with adding small doc comment explaining this new |
|
@bors r=Kivooeo rollup |
|
Maybe there is a better name as well, maybe DiagArgs or something similar. |
… r=Kivooeo diags: Pass `DiagArgMap` instead of `FluentArgs` into `format_diag_message` This PR no longer exposes `FluentArgs` outside of `translation.rs`, instead using the already existing `DiagArgMap`. This is in preparation of a few upcoming PRs, as well as just making the code slightly nicer. Will do a perf run because this technically calls `to_fluent_args` a few more times than previously, but not expecting this to be significant
…uwer Rollup of 6 pull requests Successful merges: - #153130 (std: move `getpid` to `sys::process`) - #152549 (Revert "resolve: Downgrade `ambiguous_glob_imports` to warn-by-default") - #153231 (diags: Pass `DiagArgMap` instead of `FluentArgs` into `format_diag_message`) - #153246 (Fix compile error in std::fs impl on VEXos target) - #153255 (Recover feature lang_items for emscripten) - #153257 (update my mailmap)
This PR no longer exposes
FluentArgsoutside oftranslation.rs, instead using the already existingDiagArgMap.This is in preparation of a few upcoming PRs, as well as just making the code slightly nicer.
Will do a perf run because this technically calls
to_fluent_argsa few more times than previously, but not expecting this to be significant