about summary refs log tree commit diff
path: root/src/librustc/hir/map
AgeCommit message (Collapse)AuthorLines
2019-09-26Rename `Pat.node` to `Pat.kind`varkor-3/+3
2019-09-26Rename `Expr.node` to `Expr.kind`varkor-10/+10
For both `ast::Expr` and `hir::Expr`.
2019-09-25Rollup merge of #62975 - ljedrz:kill_off_hir_to_node_id, r=ZoxcMazdak Farrokhzad-4/+2
Almost fully deprecate hir::map::Map.hir_to_node_id - HirIdify `doctree::Module.id` - HirIdify `hir::Crate.modules` - introduce a `HirId` to `DefIndex` map in `map::Definitions` The only last uses of `hir::map::Map.hir_to_node_id` in the compiler are: - for the purposes of `driver::pretty` (in `map::nodes_matching_suffix`), but I don't know if we can remove `NodeId`s in there (I think when I attempted it previously there was some issue due to `HirId` not being representable with an integer) - in `ty::query::on_disk_cache` (not sure about the purpose of this one) - in `mir::transform::check_unsafety` (only important for error message order) Any suggestions how to kill these off? r? @Zoxc
2019-09-14def_collector: Factor out common field handling codeVadim Petrochenkov-26/+21
2019-09-14def_collector: Do not ICE on attributes on unnamed fieldsVadim Petrochenkov-2/+15
2019-09-09Resolve attributes in several placesCaio-1/+57
Arm, Field, FieldPat, GenericParam, Param, StructField and Variant
2019-09-07Aggregation of cosmetic changes made during work on REPL PRs: librustcAlexander Regueiro-59/+61
2019-09-04Remove hashing impls for `LocalInternedString`.Nicholas Nethercote-1/+1
2019-08-27Cleanup: Consistently use `Param` instead of `Arg` #62426Kevin Per-12/+12
2019-08-25HirIdify hir::Crate.modulesljedrz-4/+2
2019-08-24Modifies how Arg, Arm, Field, FieldPattern and Variant are visitedCaio-4/+3
Part of the necessary work to accomplish #63468.
2019-08-21review commentsEsteban Küber-7/+13
2019-08-21When declaring a declarative macro in an item it's only accessible inside itEsteban Küber-5/+8
2019-08-18Auto merge of #63269 - Aaron1011:feature/proc-macro-data, r=eddyb,petrochenkovbors-19/+0
Serialize additional data for procedural macros Split off from #62855 This PR serializes the declaration `Span` and attributes for all procedural macros. This allows Rustdoc to properly render doc comments and source links when performing inlinig procedural macros across crates
2019-08-17resolve: Properly integrate derives and `macro_rules` scopesVadim Petrochenkov-1/+1
2019-08-17Serialize additional data for procedural macrosAaron Hill-19/+0
Split off from #62855 This PR deerializes the declaration `Span` and attributes for all procedural macros from their underlying function definitions. This allows Rustdoc to properly render doc comments and source links when inlining procedural macros across crates
2019-08-14Rollup merge of #63543 - c410-f3r:variant, r=c410-f3rMazdak Farrokhzad-12/+12
Merge Variant and Variant_ Extracted from #63468.
2019-08-14Merge Variant and Variant_Caio-12/+12
2019-08-13review commentsEsteban Küber-1/+3
2019-08-12Suggest `Box::new` when appropriateEsteban Küber-4/+24
When encountering a boxed value as expected and a stack allocated value that could be boxed to fulfill the expectation, like in the following snippet, suggest `Box::new` wrapping.
2019-08-09Differentiate between tuple structs and tuple variantsEsteban Küber-1/+1
2019-08-04Rename `ItemImplKind::Type` to `ItemImplKind::TyAlias`varkor-3/+3
2019-08-04Rename `ItemKind::Ty` to `ItemKind::TyAlias`varkor-4/+4
2019-08-02Replace `exist_ty` and `ExistTy` with `opaque_ty` and `OpaqueTy`varkor-1/+1
2019-08-02Replace "existential" by "opaque"varkor-9/+9
2019-07-27Lint attributes on function argumentsCaio-0/+15
2019-07-19Adjust other names after the `Mark` renamingVadim Petrochenkov-8/+8
2019-07-19libsyntax: Remove `Mark` into `ExpnId`Vadim Petrochenkov-20/+20
2019-07-11Rollup merge of #62476 - petrochenkov:expref, r=matthewjasperMazdak Farrokhzad-59/+33
Continue refactoring macro expansion and resolution This PR continues the work started in https://github.com/rust-lang/rust/pull/62042. It contains a set of more or less related refactorings with the general goal of making things simpler and more orthogonal. Along the way most of the issues uncovered in https://github.com/rust-lang/rust/pull/62086 are fixed. The PR is better read in per-commit fashion with whitespace changes ignored. I tried to leave some more detailed commit messages describing the motivation behind the individual changes. Fixes https://github.com/rust-lang/rust/issues/44692 Fixes https://github.com/rust-lang/rust/issues/52363 Unblocks https://github.com/rust-lang/rust/pull/62086 r? @matthewjasper
2019-07-11def_collector: `parent_def` is no longer optionalVadim Petrochenkov-31/+17
2019-07-11def_collector: Simplify tracking of macro invocation parentsVadim Petrochenkov-30/+18
Avoid the tricky scheme with callbacks and keep the invocation parent data where it logically belongs - in `Definitions`. This also allows to create `InvocationData` entries in resolve when the data is actually ready, and remove cells and "uninitialized" variants from it.
2019-07-10Properly case indent_unit constantMark Rousskov-1/+1
2019-07-10Move pp::Printer helpers to direct implMark Rousskov-2/+0
2019-07-07Collect library features from non-exported macrosVadim Petrochenkov-0/+1
2019-07-06Remove ExprKind::While from HIR.Mazdak Farrokhzad-1/+1
2019-07-05Rollup merge of #62168 - ljedrz:the_culmination_of_hiridification, r=ZoxcMazdak Farrokhzad-19/+16
The (almost) culmination of HirIdification It's finally over. This PR removes old `FIXME`s and renames some functions so that the `HirId` variant has the shorter name. All that remains (and rightfully so) is stuff in `resolve`, `save_analysis` and (as far as I can tell) in a few places where we can't replace `NodeId` with `HirId`.
2019-07-05Auto merge of #62099 - Mark-Simulacrum:syntax-print-clean-2, r=eddybbors-5/+4
Remove io::Result from syntax::print Since we're now writing directly to the vector, there's no need to thread results through the whole printing infrastructure
2019-07-04rename hir::map::opt_local_def_id*ljedrz-4/+4
2019-07-04rename hir::map::local_def_id_from_hir_id to local_def_idljedrz-8/+8
2019-07-04rename hir::map::local_def_id to local_def_id_from_node_idljedrz-3/+4
2019-07-04remove FIXMEs for functions that won't go awayljedrz-4/+0
2019-07-03Remove needless lifetimesJeremy Stucki-4/+4
2019-06-29Remove io::Result from syntax::printMark Rousskov-5/+4
Since we're now writing directly to the vector, there's no need to thread results through the whole printing infrastructure
2019-06-24HIR: rename find_by_hir_id to findljedrz-16/+16
2019-06-24HIR: remove the NodeId findljedrz-6/+0
2019-06-24HIR: rename get_parent_node_by_hir_id to get_parent_nodeljedrz-8/+8
2019-06-24HIR: remove the NodeId get_parent_node, HirIdify is_argumentljedrz-15/+8
2019-06-20rename hir::map::get_by_hir_id to getljedrz-9/+9
2019-06-20remove hir::map::getljedrz-7/+1
2019-06-20make blocks::Code work with HirIdljedrz-4/+4