about summary refs log tree commit diff
path: root/src/librustc_metadata/encoder.rs
AgeCommit message (Collapse)AuthorLines
2019-11-07rustc_metadata: Move decoder/encoder/table into mod schemaVadim Petrochenkov-1824/+0
2019-11-07Rollup merge of #59789 - eddyb:typeck-reverts, r=nikomatsakisMazdak Farrokhzad-32/+32
Revert two unapproved changes to rustc_typeck. There was a breakdown in process (https://github.com/rust-lang/rust/pull/59004#issuecomment-477600735, https://github.com/rust-lang/rust/pull/58894#discussion_r272795560) and two changes were made to `rustc_typeck`'s "collect" queries, for rustdoc, that were neither needed *nor* correct. I'm reverting them here, and will fix up rustdoc *somehow*, if necessary. cc @rust-lang/compiler How do we ensure this doesn't happen again? r? @nikomatsakis or @oli-obk
2019-11-03rustc_metadata: don't encode an empty slice for inferred_outlives.Eduard-Mihai Burtescu-2/+4
2019-11-03rustc_metadata: replace predicates_defined_on with explicit_predicates_of ↵Eduard-Mihai Burtescu-15/+32
and inferred_outlives_of.
2019-11-03rustc_metadata: remove predicates_of and rely on predicates_defined_on alone.Eduard-Mihai Burtescu-28/+9
2019-11-01Move has_panic_handler to queryMark Rousskov-2/+1
2019-10-31Implement dual proc macro hashingmsizanoen-0/+1
This changes the mechanism of `-Z dual-proc-macro` to record the host proc macro hash in the transistive dependency information and use it during dependency resolution instead of resolving only by name.
2019-10-28Rollup merge of #65792 - Centril:split-syntax-2, r=petrochenkovMazdak Farrokhzad-1/+1
rustc, rustc_passes: reduce deps on rustc_expand Part of #65324. r? @petrochenkov
2019-10-27rustc, rustc_passes: don't depend on syntax_expand.Mazdak Farrokhzad-1/+1
This is done by moving some data definitions to syntax::expand.
2019-10-24rustc_typeck: compute better spans for inferred_outlives.Eduard-Mihai Burtescu-0/+8
2019-10-22rustc_metadata: use a table for impl_trait_ref.Eduard-Mihai Burtescu-1/+7
2019-10-22rustc_metadata: use a table for fn_sig.Eduard-Mihai Burtescu-29/+24
2019-10-22rustc_metadata: use a table for super_predicates.Eduard-Mihai Burtescu-8/+15
2019-10-18Rollup merge of #65535 - eddyb:sliced-predicates, r=nikomatsakisTyler Mandry-7/+7
rustc: arena-allocate the slice in `ty::GenericsPredicate`, not the whole struct. While rebasing #59789 I noticed we can do this now. However, it doesn't help much without changing `inferred_outlives_of` to the same type, which I might try next.
2019-10-18rustc: arena-allocate the slice in `ty::GenericsPredicate`, not the whole ↵Eduard-Mihai Burtescu-7/+7
struct.
2019-10-17Auto merge of #65495 - Centril:rollup-tguwjt5, r=Centrilbors-1/+1
Rollup of 8 pull requests Successful merges: - #65237 (Move debug_map assertions after check for err) - #65316 (make File::try_clone produce non-inheritable handles on Windows) - #65319 (InterpCx: make memory field public) - #65461 (Don't recommend ONCE_INIT in std::sync::Once) - #65465 (Move syntax::ext to a syntax_expand and refactor some attribute logic) - #65475 (add example for type_name) - #65478 (fmt::Write is about string slices, not byte slices) - #65486 (doc: fix typo in OsStrExt and OsStringExt) Failed merges: r? @ghost
2019-10-16move syntax::ext to new crate syntax_expandMazdak Farrokhzad-1/+1
2019-10-15rustc_metadata: don't use more space than needed, for each Table.Eduard-Mihai Burtescu-20/+2
2019-10-15rustc_metadata: replace Entry table with one table for each of its fields ↵Eduard-Mihai Burtescu-478/+355
(AoS -> SoA).
2019-10-15rustc_metadata: generalize Table<T> to hold T, not Lazy<T>, elements.Eduard-Mihai Burtescu-5/+5
2019-10-15rustc_metadata: add a helper macro for recording into PerDefTable's.Eduard-Mihai Burtescu-124/+110
2019-10-15rustc_metadata: split tables into an usize-keyed Table and a DefIndex-keyed ↵Eduard-Mihai Burtescu-5/+5
PerDefTable.
2019-10-15rustc_metadata: replace Lazy<[Table<T>]> with Lazy<Table<T>>.Eduard-Mihai Burtescu-3/+12
2019-10-15rustc_metadata: parametrize Table by element type.Eduard-Mihai Burtescu-1/+1
2019-10-15rustc_metadata: rename index::Index to table::Table.Eduard-Mihai Burtescu-8/+8
2019-10-15rustc_metadata: use NonZeroUsize for the position of a Lazy.Eduard-Mihai Burtescu-7/+9
2019-10-14Rollup merge of #65365 - skinny121:const-args-metadata, r=varkorTyler Mandry-26/+6
Include const generic arguments in metadata Fixes #64707 Fixes #61624 Fixes #64730 r? @varkor
2019-10-15Include const generic arguments in metadata.ben-26/+6
2019-10-14rustc_metadata: Privatize private code and remove dead codeVadim Petrochenkov-9/+10
2019-10-04Rollup merge of #64874 - matthewjasper:simplify-euv, r=eddybMazdak Farrokhzad-18/+4
Simplify ExprUseVisitor * Remove HIR const qualification * Remove parts of ExprUseVisitor that aren't being used r? @eddyb
2019-10-04Rollup merge of #64817 - csmoe:closure, r=nikomatsakisMazdak Farrokhzad-1/+1
Replace ClosureSubsts with SubstsRef Addresses https://github.com/rust-lang/rust/issues/42340 part 3 https://github.com/rust-lang/rust/pull/59312 might benefit from this clean up. r? @nikomatsakis
2019-10-03generate ClosureSubsts from SubstsRefcsmoe-1/+1
2019-09-30Remove HIR based const qualificationMatthew Jasper-18/+4
2019-09-29remove indexed_vec re-export from rustc_data_structurescsmoe-1/+1
2019-09-28Switch over all StableHash impls to new formatMark Rousskov-2/+2
2019-09-26Rename `ForeignItem.node` to `ForeignItem.kind`varkor-2/+2
2019-09-26Rename `Item.node` to `Item.kind`varkor-11/+11
2019-09-26Rename `Ty.node` to `Ty.kind`varkor-1/+1
2019-09-26Rename `TraitItem.node` to `TraitItem.kind`varkor-2/+2
2019-09-26Rename `ImplItem.node` to `ImplItem.kind`varkor-17/+16
2019-09-26Rename `Pat.node` to `Pat.kind`varkor-1/+1
2019-09-26Rename `Expr.node` to `Expr.kind`varkor-1/+1
For both `ast::Expr` and `hir::Expr`.
2019-09-26Auto merge of #62661 - arielb1:never-reserve, r=nikomatsakisbors-1/+2
reserve `impl<T> From<!> for T` this is necessary for never-type stabilization. cc #57012 #35121 I think we wanted a crater run for this @nikomatsakis? r? @nikomatsakis
2019-09-25Rename `sty` to `kind`varkor-2/+2
2019-09-25Rollup merge of #64599 - csmoe:doc_async_reexport, r=nikomatsakisMazdak Farrokhzad-1/+5
Rustdoc render async function re-export Closes #63710 r? @nikomatsakis
2019-09-24resolve the rustc_reservation_impl attribute in 1 placeAriel Ben-Yehuda-1/+2
2019-09-23rustc: Convert `dependency_formats` to a queryAlex Crichton-12/+14
This commit converts a field of `Session`, `dependency_formats`, into a query of `TyCtxt`. This information then also needed to be threaded through to other remaining portions of the linker, but it's relatively straightforward. The only change here is that instead of `HashMap<CrateType, T>` the data structure changed to `Vec<(CrateType, T)>` to make it easier to deal with in queries.
2019-09-19append asyncness info to functionscsmoe-2/+2
2019-09-19add is_async_fn querycsmoe-0/+4
2019-09-03use TokenStream rather than &[TokenTree] for built-in macrosAleksey Kladov-1/+1
That way, we don't loose the jointness info