Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor away RBML from rustc_metadata. #36551

Merged
merged 39 commits into from
Sep 22, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
a79104e
serialize: extend with specialization-based encoding/decoding multi-d…
eddyb Aug 27, 2016
3ad8aa6
rbml: move the tagged encoder/decoder to librustc_metadata.
eddyb Aug 28, 2016
87db6b9
rustc_metadata: remove redundant lifetimes from astencode::DecodeCont…
eddyb Aug 29, 2016
78ace66
rustc_metadata: remove extension traits from astencode.
eddyb Aug 29, 2016
7b07334
rustc_metadata: remove astencode tests.
eddyb Aug 29, 2016
8219728
rustc_metadata: combine EncodeContext and rbml::writer::Encoder.
eddyb Aug 29, 2016
d47fd9e
rustc_metadata: use specialization for {en,de}coding Ty and Substs.
eddyb Sep 19, 2016
3cbe4b8
rustc_metadata: sign-extend when decoding signed integers.
eddyb Aug 30, 2016
97864d4
rustc_metadata: encode miscellaneous information opaquely.
eddyb Aug 30, 2016
91e7239
rustc_metadata: combine DecodeContext and rbml::reader::Decoder.
eddyb Aug 30, 2016
fc363cb
rustc_metadata: go only through rustc_serialize in astencode.
eddyb Aug 31, 2016
903ec52
rustc: replace uses of NodeId in Def, other than closures and labels.
eddyb Aug 31, 2016
ed593be
rustc_metadata: go back to not using the opaque format.
eddyb Sep 1, 2016
02c4155
rustc: remove hir::fold.
eddyb Sep 1, 2016
2ce0e6d
rustc_trans: use the TypeId hashing mechanism instead of metadata.
eddyb Sep 1, 2016
0863012
Remove librbml and the RBML-tagged auto-encoder/decoder.
eddyb Sep 1, 2016
bcbb410
rustc_metadata: side-step ty{en,de}code for everything but Ty.
eddyb Sep 1, 2016
88c5679
rustc_metadata: remove ty{en,de}code and move to auto-derived seriali…
eddyb Sep 2, 2016
8734aaa
rustc_metadata: move more RBML tags to auto-serialization.
eddyb Sep 19, 2016
89736e8
rustc: remove ImplOrTraitItemId and TraitDef's associated_type_names.
eddyb Sep 5, 2016
d2ea3da
rustc_metadata: group the tags into root tags and item tags.
eddyb Sep 5, 2016
6742b23
rustc_metadata: remove all unnecessary tables from astencode.
eddyb Sep 5, 2016
ef4352f
rustc_metadata: group information into less tags.
eddyb Sep 8, 2016
cc47dc5
rustc_metadata: store dense indexes in little-endian instead of big.
eddyb Sep 8, 2016
6890354
rustc_metadata: use the shorthand encoding for predicates also.
eddyb Sep 8, 2016
adddfcc
rustc_metadata: move all encoding/decoding helpers to methods.
eddyb Sep 15, 2016
24aef24
rustc_metadata: split the Def description of a DefId from item_children.
eddyb Sep 15, 2016
a96abca
rustc_metadata: replace RBML with a simple and type-safe scheme.
eddyb Sep 16, 2016
dc26a23
rustc_metadata: reduce Lazy{,Seq} overhead by using a relative encoding.
eddyb Sep 17, 2016
dadbaa4
rustc_metadata: move opt_item_name to TyCtxt::item_name.
eddyb Sep 17, 2016
f2283a7
rustc_metadata: fix for the new `?` ambiguity around collect.
eddyb Sep 17, 2016
b01d489
rustc: don't recurse through nested items in decoded HIR fragments.
eddyb Sep 17, 2016
221d1a9
serialize: allow specifying the default behavior for specializations.
eddyb Sep 17, 2016
a23b8ca
rustc: don't hash the --extern crate name, but the original one, in D…
eddyb Sep 18, 2016
564f2ee
rustc_metadata: don't die with --test because CFG_VERSION is missing.
eddyb Sep 18, 2016
521d3ea
rustc_resolve: bring back "struct called like a function" cross-crate.
eddyb Sep 19, 2016
ade79d7
rustc_trans: simplify vtable and symbol handling.
eddyb Sep 19, 2016
a2726f4
rustc: allow less and handle fn pointers in the type hashing algorithm.
eddyb Sep 19, 2016
4ac3001
rustc_trans: don't do on-demand drop glue instantiation.
eddyb Sep 19, 2016
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions mk/crates.mk
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ RUSTC_CRATES := rustc rustc_typeck rustc_mir rustc_borrowck rustc_resolve rustc_
rustc_plugin rustc_metadata rustc_passes rustc_save_analysis \
rustc_const_eval rustc_const_math rustc_incremental rustc_macro
HOST_CRATES := syntax syntax_ext proc_macro syntax_pos $(RUSTC_CRATES) rustdoc fmt_macros \
flate arena graphviz rbml log serialize
flate arena graphviz log serialize
TOOLS := compiletest rustdoc rustc rustbook error_index_generator

DEPS_core :=
Expand Down Expand Up @@ -96,7 +96,6 @@ DEPS_getopts := std
DEPS_graphviz := std
DEPS_log := std
DEPS_num := std
DEPS_rbml := std log serialize
DEPS_serialize := std log
DEPS_term := std
DEPS_test := std getopts term native:rust_test_helpers
Expand All @@ -110,7 +109,7 @@ DEPS_rustc_const_math := std syntax log serialize
DEPS_rustc_const_eval := rustc_const_math rustc syntax log serialize \
rustc_back graphviz syntax_pos

DEPS_rustc := syntax fmt_macros flate arena serialize getopts rbml \
DEPS_rustc := syntax fmt_macros flate arena serialize getopts \
log graphviz rustc_llvm rustc_back rustc_data_structures\
rustc_const_math syntax_pos rustc_errors
DEPS_rustc_back := std syntax flate log libc
Expand All @@ -126,7 +125,7 @@ DEPS_rustc_errors := log libc serialize syntax_pos
DEPS_rustc_lint := rustc log syntax syntax_pos rustc_const_eval
DEPS_rustc_llvm := native:rustllvm libc std rustc_bitflags
DEPS_rustc_macro := std syntax
DEPS_rustc_metadata := rustc syntax syntax_pos rustc_errors rbml rustc_const_math \
DEPS_rustc_metadata := rustc syntax syntax_pos rustc_errors rustc_const_math \
rustc_macro syntax_ext
DEPS_rustc_passes := syntax syntax_pos rustc core rustc_const_eval rustc_errors
DEPS_rustc_mir := rustc syntax syntax_pos rustc_const_math rustc_const_eval rustc_bitflags
Expand All @@ -137,7 +136,7 @@ DEPS_rustc_privacy := rustc log syntax syntax_pos
DEPS_rustc_trans := arena flate getopts graphviz libc rustc rustc_back \
log syntax serialize rustc_llvm rustc_platform_intrinsics \
rustc_const_math rustc_const_eval rustc_incremental rustc_errors syntax_pos
DEPS_rustc_incremental := rbml rustc syntax_pos serialize rustc_data_structures
DEPS_rustc_incremental := rustc syntax_pos serialize rustc_data_structures
DEPS_rustc_save_analysis := rustc log syntax syntax_pos serialize
DEPS_rustc_typeck := rustc syntax syntax_pos rustc_platform_intrinsics rustc_const_math \
rustc_const_eval rustc_errors
Expand Down
2 changes: 1 addition & 1 deletion mk/tests.mk
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ TEST_TARGET_CRATES = $(filter-out core rustc_unicode alloc_system libc \
panic_abort,$(TARGET_CRATES)) \
collectionstest coretest
TEST_DOC_CRATES = $(DOC_CRATES) arena flate fmt_macros getopts graphviz \
log rand rbml serialize syntax term test
log rand serialize syntax term test
TEST_HOST_CRATES = $(filter-out rustc_typeck rustc_borrowck rustc_resolve \
rustc_trans rustc_lint,\
$(HOST_CRATES))
Expand Down
13 changes: 0 additions & 13 deletions src/librbml/Cargo.toml

This file was deleted.

Loading