diff options
| author | kadmin <julianknodt@gmail.com> | 2021-03-18 06:38:11 +0000 |
|---|---|---|
| committer | kadmin <julianknodt@gmail.com> | 2021-03-23 17:16:20 +0000 |
| commit | ea2af704669f630c4184bb2c0befeb6cb7d78d29 (patch) | |
| tree | 46c29de5cd49cd5482bbfea8cd7e5bded86c6e49 /compiler/rustc_metadata/src/rmeta/decoder | |
| parent | 9fe793ae5df4bc9ea73c8e55c66616bd6e5fe565 (diff) | |
| download | rust-ea2af704669f630c4184bb2c0befeb6cb7d78d29.tar.gz rust-ea2af704669f630c4184bb2c0befeb6cb7d78d29.zip | |
Update with comments
A bunch of nits fixed, and a new test for pretty printing the AST.
Diffstat (limited to 'compiler/rustc_metadata/src/rmeta/decoder')
| -rw-r--r-- | compiler/rustc_metadata/src/rmeta/decoder/cstore_impl.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_metadata/src/rmeta/decoder/cstore_impl.rs b/compiler/rustc_metadata/src/rmeta/decoder/cstore_impl.rs index 7f8f5ef4427..e10041a2971 100644 --- a/compiler/rustc_metadata/src/rmeta/decoder/cstore_impl.rs +++ b/compiler/rustc_metadata/src/rmeta/decoder/cstore_impl.rs @@ -122,7 +122,7 @@ provide! { <'tcx> tcx, def_id, other, cdata, promoted_mir => { tcx.arena.alloc(cdata.get_promoted_mir(tcx, def_id.index)) } mir_abstract_const => { cdata.get_mir_abstract_const(tcx, def_id.index) } unused_generic_params => { cdata.get_unused_generic_params(def_id.index) } - const_param_default => { tcx.arena.alloc(cdata.get_const_param_default(tcx, def_id.index)) } + const_param_default => { tcx.mk_const(cdata.get_const_param_default(tcx, def_id.index)) } mir_const_qualif => { cdata.mir_const_qualif(def_id.index) } fn_sig => { cdata.fn_sig(def_id.index, tcx) } inherent_impls => { cdata.get_inherent_implementations_for_type(tcx, def_id.index) } |
