We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9ec5d5f + cb3df68 commit 58e1a01Copy full SHA for 58e1a01
1 file changed
compiler/rustc_metadata/src/rmeta/decoder/cstore_impl.rs
@@ -152,13 +152,8 @@ macro_rules! provide_one {
152
$tcx.ensure_ok().crate_hash($def_id.krate);
153
}
154
155
- let cdata = rustc_data_structures::sync::FreezeReadGuard::map(CStore::from_tcx($tcx), |c| {
156
- c.get_crate_data($def_id.krate).cdata
157
- });
158
- let $cdata = crate::creader::CrateMetadataRef {
159
- cdata: &cdata,
160
- cstore: &CStore::from_tcx($tcx),
161
- };
+ let cstore = CStore::from_tcx($tcx);
+ let $cdata = cstore.get_crate_data($def_id.krate);
162
163
$compute
164
0 commit comments