about summary refs log tree commit diff
path: root/src/librustc_expand/module.rs
AgeCommit message (Collapse)AuthorLines
2020-08-30mv compiler to compiler/mark-312/+0
2020-08-17rust_ast::ast => rustc_astUjjwal Sharma-2/+1
2020-08-08Eliminate the `SessionGlobals` from `librustc_ast`.Nicholas Nethercote-13/+20
By moving `{known,used}_attrs` from `SessionGlobals` to `Session`. This means they are accessed via the `Session`, rather than via TLS. A few `Attr` methods and `librustc_ast` functions are now methods of `Session`. All of this required passing a `Session` to lots of functions that didn't already have one. Some of these functions also had arguments removed, because those arguments could be accessed directly via the `Session` argument. `contains_feature_attr()` was dead, and is removed. Some functions were moved from `librustc_ast` elsewhere because they now need to access `Session`, which isn't available in that crate. - `entry_point_type()` --> `librustc_builtin_macros` - `global_allocator_spans()` --> `librustc_metadata` - `is_proc_macro_attr()` --> `Session`
2020-06-08Resolve E0584 conflictNathan Corbyn-1/+1
2020-05-29Split payload of FileName::Real to track both real and virutalized paths.Felix S. Klock II-2/+3
Such splits arise from metadata refs into libstd. This way, we can (in a follow on commit) continue to emit the virtual name into things like the like the StableSourceFileId that ends up in incremetnal build artifacts, while still using the devirtualized file path when we want to access the file. Note that this commit is intended to be a refactoring; the actual fix to the bug in question is in a follow-on commit.
2020-05-08Remove ast::{Ident, Name} reexports.Camille GILLOT-7/+7
2020-03-22parse: nix new_sub_parser_from_fileMazdak Farrokhzad-2/+2
2020-03-21parse: nix unused `root_module_name`.Mazdak Farrokhzad-3/+2
2020-03-18tweak outline module parsing spansMazdak Farrokhzad-19/+21
2020-03-18{rustc_parse::parser -> rustc_expand}::moduleMazdak Farrokhzad-0/+304