about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
diff options
context:
space:
mode:
authorAaron Hill <aa1ronham@gmail.com>2021-02-23 10:21:20 -0500
committerAaron Hill <aa1ronham@gmail.com>2021-02-27 00:14:13 -0500
commitfb5fec017b2f24b88c1f51980f7d81a02e7468d9 (patch)
tree1c1784ac47a1d4f389dc2cf30c307cad8c62356b /compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
parent9fa580b1175018b0a276b0bc68f9827a106f7260 (diff)
downloadrust-fb5fec017b2f24b88c1f51980f7d81a02e7468d9.tar.gz
rust-fb5fec017b2f24b88c1f51980f7d81a02e7468d9.zip
Combine HasAttrs and HasTokens into AstLike
When token-based attribute handling is implemeneted in #80689,
we will need to access tokens from `HasAttrs` (to perform
cfg-stripping), and we will to access attributes from `HasTokens` (to
construct a `PreexpTokenStream`).

This PR merges the `HasAttrs` and `HasTokens` traits into a new
`AstLike` trait. The previous `HasAttrs` impls from `Vec<Attribute>` and `AttrVec`
are removed - they aren't attribute targets, so the impls never really
made sense.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp')
0 files changed, 0 insertions, 0 deletions