about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2023-09-06 16:45:58 +1000
committerNicholas Nethercote <n.nethercote@gmail.com>2023-09-06 17:12:07 +1000
commit42dbc72d7bb0645292d72816d768d1f5365a58ca (patch)
tree45d037636391edfe45fb34e5598a27177690d85f /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parent58e967a9cc3bd39122e8cb728e8cec6e3a4eeef2 (diff)
downloadrust-42dbc72d7bb0645292d72816d768d1f5365a58ca.tar.gz
rust-42dbc72d7bb0645292d72816d768d1f5365a58ca.zip
Adjust `to_attr_token_stream`.
It uses `once` chained with `(0..self.num_calls).map(...)` followed by
`.take(self.num_calls`. I found this hard to read. It's simpler to just
use `repeat_with`.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions