Uh oh!
There was an error while loading. Please reload this page.
Replace truncate(0) with clear() - #154029
Conversation
rustbot
commented
Mar 18, 2026
rust-analyzer is developed in its own repository. If possible, consider making this change to rust-lang/rust-analyzer instead. cc @rust-lang/rust-analyzer Some changes occurred in src/tools/compiletest cc @jieyouxu |
rustbot
commented
Mar 18, 2026
r? @joboet rustbot has assigned @joboet. Use Why was this reviewer chosen?The reviewer was selected based on:
|
Uh oh!
There was an error while loading. Please reload this page.
cjgillot
commented
Mar 19, 2026
@bors try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Replace `truncate(0)` with `clear()`
This comment has been minimized.
This comment has been minimized.
rust-timer
commented
Mar 19, 2026
Finished benchmarking commit (637b2a9): 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)Results (primary 0.2%)A less reliable metric. May be of interest, but not used to determine the overall result above.
CyclesThis benchmark run did not return any relevant results for this metric. Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 481.003s -> 480.752s (-0.05%) |
Uh oh!
There was an error while loading. Please reload this page.
rustbot
commented
Mar 19, 2026
Reminder, once the PR becomes ready for a review, use |
xtqqczze
commented
Mar 19, 2026
@rustbot ready |
joboet
commented
Mar 28, 2026
Thanks! |
Rollup of 11 pull requests Successful merges: - #152880 (Tweak incorrect assoc item note) - #153526 (Fix LegacyKeyValueFormat report from docker build: i686) - #153613 (interpreter error reporting: remove arguments that are always the same) - #154029 (Replace `truncate(0)` with `clear()`) - #154125 (Inline and remove `DepGraphData::try_mark_parent_green`.) - #154185 (Prevent no_threads RwLock's write() impl from setting mode to -1 when it is locked for reading) - #154394 (Normalize rustc path prefix when testing `-Z track-diagnostics`) - #154450 (Use the normal arg-parsing machinery for `-Zassert-incr-state`) - #154475 (Emit a pre-expansion feature gate warning for `box`'ed struct field patterns) - #154500 (EnumSizeOpt: use Allocation::write_scalar instead of manual endianess logic) - #154502 (interpret: ensure that untupled arguments are actually tuples)
Uh oh!
There was an error while loading. Please reload this page.
Rollup merge of #154029 - xtqqczze:clear, r=joboet Replace `truncate(0)` with `clear()`
No description provided.