Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit cbcef3e

Browse files
committed
Rework rustc_serialize
- Move the type parameter from `encode` and `decode` methods to the trait. - Remove `UseSpecialized(En|De)codable` traits. - Remove blanket impls for references. - Add `RefDecodable` trait to allow deserializing to arena-allocated references safely. - Remove ability to (de)serialize HIR. - Create proc-macros `(Ty)?(En|De)codable` to help implement these new traits.
1 parent 55b9adf commit cbcef3e

File tree

116 files changed

+1907
-1937
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

116 files changed

+1907
-1937
lines changed

Cargo.lock

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3334,6 +3334,7 @@ dependencies = [
33343334
"rustc_hir",
33353335
"rustc_incremental",
33363336
"rustc_index",
3337+
"rustc_macros",
33373338
"rustc_middle",
33383339
"rustc_serialize",
33393340
"rustc_session",
@@ -3364,6 +3365,7 @@ dependencies = [
33643365
"rustc-rayon-core",
33653366
"rustc_graphviz",
33663367
"rustc_index",
3368+
"rustc_macros",
33673369
"rustc_serialize",
33683370
"smallvec 1.4.0",
33693371
"stable_deref_trait",
@@ -3416,6 +3418,7 @@ dependencies = [
34163418
"annotate-snippets 0.8.0",
34173419
"atty",
34183420
"rustc_data_structures",
3421+
"rustc_macros",
34193422
"rustc_serialize",
34203423
"rustc_span",
34213424
"termcolor",
@@ -3437,6 +3440,7 @@ dependencies = [
34373440
"rustc_errors",
34383441
"rustc_feature",
34393442
"rustc_lexer",
3443+
"rustc_macros",
34403444
"rustc_parse",
34413445
"rustc_serialize",
34423446
"rustc_session",
@@ -3499,6 +3503,7 @@ dependencies = [
34993503
"rustc_fs_util",
35003504
"rustc_graphviz",
35013505
"rustc_hir",
3506+
"rustc_macros",
35023507
"rustc_middle",
35033508
"rustc_serialize",
35043509
"rustc_session",
@@ -3511,6 +3516,7 @@ name = "rustc_index"
35113516
version = "0.0.0"
35123517
dependencies = [
35133518
"arrayvec 0.5.1",
3519+
"rustc_macros",
35143520
"rustc_serialize",
35153521
]
35163522

@@ -3640,6 +3646,7 @@ dependencies = [
36403646
"rustc_hir",
36413647
"rustc_hir_pretty",
36423648
"rustc_index",
3649+
"rustc_macros",
36433650
"rustc_middle",
36443651
"rustc_serialize",
36453652
"rustc_session",
@@ -3815,6 +3822,7 @@ dependencies = [
38153822
"rustc_data_structures",
38163823
"rustc_errors",
38173824
"rustc_index",
3825+
"rustc_macros",
38183826
"rustc_serialize",
38193827
"rustc_span",
38203828
"smallvec 1.4.0",
@@ -3884,6 +3892,7 @@ dependencies = [
38843892
"rustc_errors",
38853893
"rustc_feature",
38863894
"rustc_fs_util",
3895+
"rustc_macros",
38873896
"rustc_serialize",
38883897
"rustc_span",
38893898
"rustc_target",

0 commit comments

Comments
 (0)