]> git.lizzy.rs Git - rust.git/commitdiff
Merge #6909
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>
Wed, 16 Dec 2020 22:42:54 +0000 (22:42 +0000)
committerGitHub <noreply@github.com>
Wed, 16 Dec 2020 22:42:54 +0000 (22:42 +0000)
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 <jonasschievink@gmail.com>

Trivial merge