]> git.lizzy.rs Git - rust.git/commit - src/tools/rust-analyzer
Rollup merge of #91313 - petrochenkov:cratexp, r=Aaron1011
authorMatthias Krüger <matthias.krueger@famsik.de>
Wed, 1 Dec 2021 19:57:43 +0000 (20:57 +0100)
committerGitHub <noreply@github.com>
Wed, 1 Dec 2021 19:57:43 +0000 (20:57 +0100)
commit519a842c501cc8fefce3fb14ddcbcded7d66c4e6
tree6d1ad786d94b25a054af659833559cd606315154
parent9f1f42897d0e0ae580f2e49a1b46fad27b60990e
parent141c6cc78ece04fb8330b2c28a42c025500d2d0e
Rollup merge of #91313 - petrochenkov:cratexp, r=Aaron1011

expand: Turn `ast::Crate` into a first class expansion target

And stop creating a fake `mod` item for the crate root when expanding a crate, thus addressing FIXMEs left in https://github.com/rust-lang/rust/pull/82238, and making a step towards a proper support for crate-level macro attributes (cc #54726).

I haven't added token collection support for the whole crate in this PR, maybe later.
r? `@Aaron1011`
compiler/rustc_builtin_macros/src/cfg_eval.rs