diff options
| author | bors <bors@rust-lang.org> | 2024-11-03 11:09:38 +0000 | 
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-11-03 11:09:38 +0000 | 
| commit | 59ae5eba7e74d2cc7d8d611662e8b3a642d7093a (patch) | |
| tree | d65edecde64f90af22101d470d477f9893731f03 /tests/ui/parser/impls-nested-within-fns-semantic-1.rs | |
| parent | db034cee00570a9b82ea8b9e9e95221dbd745698 (diff) | |
| parent | 90f2075b66c778f8270be86ec34c54ae43831dad (diff) | |
| download | rust-59ae5eba7e74d2cc7d8d611662e8b3a642d7093a.tar.gz rust-59ae5eba7e74d2cc7d8d611662e8b3a642d7093a.zip | |
Auto merge of #132514 - Zalathar:print-target-cpus, r=jieyouxu
Port most of `--print=target-cpus` to Rust The logic and formatting needed by `--print=target-cpus` has historically been carried out in C++ code. Originally it used `printf` to write directly to the console, but later it switched over to writing to a `std::ostringstream` and then passing its buffer to a callback function pointer. This PR replaces that C++ code with a very simple function that writes a list of CPU names to a `&RustString`, with the rest of the logic and formatting being handled by ordinary safe Rust code.
Diffstat (limited to 'tests/ui/parser/impls-nested-within-fns-semantic-1.rs')
0 files changed, 0 insertions, 0 deletions
