about summary refs log tree commit diff
path: root/tests/codegen/patchable-function-entry/patchable-function-entry-both-flags.rs
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2024-06-27 10:42:46 +1000
committerNicholas Nethercote <n.nethercote@gmail.com>2024-07-02 10:46:44 +1000
commitf852568fa601171f20f924a50478c33fd2661fba (patch)
tree3bb7e4906cea418ac2b22ca627199e1e2bd4289c /tests/codegen/patchable-function-entry/patchable-function-entry-both-flags.rs
parentd6c0b8117e4ccccd83c4a6e70eee8b12c51d1a18 (diff)
downloadrust-f852568fa601171f20f924a50478c33fd2661fba.tar.gz
rust-f852568fa601171f20f924a50478c33fd2661fba.zip
Change `AttrTokenStream::to_tokenstream` to `to_token_trees`.
I.e. change the return type from `TokenStream` to `Vec<TokenTree>`.

Most of the callsites require a `TokenStream`, but the recursive call
used to create `target_tokens` requires a `Vec<TokenTree>`. It's easy
to convert a `Vec<TokenTree>` to a `TokenStream` (just call
`TokenStream::new`) but it's harder to convert a `TokenStream` to a
`Vec<TokenTree>` (either iterate/clone/collect, or use `Lrc::into_inner`
if appropriate).

So this commit changes the return value to simplify that `target_tokens`
call site.
Diffstat (limited to 'tests/codegen/patchable-function-entry/patchable-function-entry-both-flags.rs')
0 files changed, 0 insertions, 0 deletions