File tree Expand file tree Collapse file tree 2 files changed +3
-12
lines changed
branches/auto/src/librustc/metadata Expand file tree Collapse file tree 2 files changed +3
-12
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,6 @@ refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0
14
14
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
15
15
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
16
16
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
17
- refs/heads/auto: a6b05b385adea5628ee01d4c958e18392f603872
17
+ refs/heads/auto: d577eafff3fed544e616373c06c987ed0471dfc4
18
18
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
19
19
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
Original file line number Diff line number Diff line change @@ -1470,19 +1470,10 @@ pub fn encode_metadata(parms: EncodeParams, crate: &crate) -> ~[u8] {
1470
1470
// remaining % 4 bytes.
1471
1471
wr. write( & [ 0u8 , 0u8 , 0u8 , 0u8 ] ) ;
1472
1472
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
-
1481
1473
let writer_bytes: & mut ~[ u8] = wr. bytes;
1482
1474
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)
1486
1477
}
1487
1478
1488
1479
// Get the encoded string for a type
You can’t perform that action at this time.
0 commit comments