From: bors[bot] <26634292+bors[bot]@users.noreply.github.com> Date: Wed, 16 Dec 2020 22:42:54 +0000 (+0000) Subject: Merge #6909 X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=785860bd171da1a18aed78a5020732831596cd78;p=rust.git 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 --- 785860bd171da1a18aed78a5020732831596cd78