diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-12-16 22:42:54 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2020-12-16 22:42:54 +0000 |
commit | 785860bd171da1a18aed78a5020732831596cd78 (patch) | |
tree | da9ac7abc2f426dbe2783aa7a2a29e57d17cddf8 /crates/hir/src/has_source.rs | |
parent | 067067a6c11bb5afda98f5af14bfdec4744e7812 (diff) | |
parent | 28b5334580e5814d102b006e310ca0d1f03cdd72 (diff) |
Merge #6909
6909: Avoid querying attributes in item tree lowering r=jonas-schievink a=jonas-schievink
ItemTree is per-file, so there is no unique crate associated with it.
This means that it cannot know the active CfgOptions and thus couldn't
handle `cfg_attr`.
Prepare it for `cfg_attr`s by avoiding accessing attributes.
bors r+
Co-authored-by: Jonas Schievink <[email protected]>
Diffstat (limited to 'crates/hir/src/has_source.rs')
0 files changed, 0 insertions, 0 deletions