Skip to content

Commit a9ef8db

Browse files
committed
---
yaml --- r: 60727 b: refs/heads/auto c: d577eaf h: refs/heads/master i: 60725: c826b00 60723: 9a6dd3b 60719: eea685f v: v3
1 parent c388d56 commit a9ef8db

File tree

2 files changed

+3
-12
lines changed

2 files changed

+3
-12
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0
1414
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
1515
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1616
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
17-
refs/heads/auto: a6b05b385adea5628ee01d4c958e18392f603872
17+
refs/heads/auto: d577eafff3fed544e616373c06c987ed0471dfc4
1818
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
1919
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c

branches/auto/src/librustc/metadata/encoder.rs

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1470,19 +1470,10 @@ pub fn encode_metadata(parms: EncodeParams, crate: &crate) -> ~[u8] {
14701470
// remaining % 4 bytes.
14711471
wr.write(&[0u8, 0u8, 0u8, 0u8]);
14721472

1473-
// FIXME #3396: weird bug here, for reasons unclear this emits random
1474-
// looking bytes (mostly 0x1) if we use the version byte-array constant
1475-
// above; so we use a string constant inline instead.
1476-
//
1477-
// Should be:
1478-
//
1479-
// vec::to_owned(metadata_encoding_version) +
1480-
14811473
let writer_bytes: &mut ~[u8] = wr.bytes;
14821474

1483-
(do str::as_bytes(&~"rust\x00\x00\x00\x01") |bytes| {
1484-
vec::slice(*bytes, 0, 8).to_vec()
1485-
}) + flate::deflate_bytes(*writer_bytes)
1475+
vec::to_owned(metadata_encoding_version) +
1476+
flate::deflate_bytes(*writer_bytes)
14861477
}
14871478

14881479
// Get the encoded string for a type

0 commit comments

Comments
 (0)