Pass ExpnData by reference.
This commit is contained in:
parent
a51b131fd1
commit
0f8573e57b
2 changed files with 4 additions and 4 deletions
|
@ -372,7 +372,7 @@ impl<'sess> OnDiskCache<'sess> {
|
|||
|encoder, expn_id, data, hash| -> FileEncodeResult {
|
||||
if expn_id.krate == LOCAL_CRATE {
|
||||
let pos = AbsoluteBytePos::new(encoder.position());
|
||||
encoder.encode_tagged(TAG_EXPN_DATA, &data)?;
|
||||
encoder.encode_tagged(TAG_EXPN_DATA, data)?;
|
||||
expn_data.insert(hash, pos);
|
||||
} else {
|
||||
foreign_expn_data.insert(hash, expn_id.local_id.as_u32());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue