Skip to content

Commit 8cd2c48

Browse files
committed
---
yaml --- r: 167163 b: refs/heads/auto c: 42e645c h: refs/heads/master i: 167161: 8d44578 167159: 2a474aa v: v3
1 parent 3ae25af commit 8cd2c48

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
1010
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
1111
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1212
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
13-
refs/heads/auto: 30e8ab01822632acd08f6c4fb5ce6b2afe82af52
13+
refs/heads/auto: 42e645ca9acb7166623bee25dd4143dd266ae4a7
1414
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
1515
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
1616
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336

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

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -172,14 +172,15 @@ fn item_visibility(item: rbml::Doc) -> ast::Visibility {
172172
}
173173

174174
fn item_sort(item: rbml::Doc) -> char {
175-
// NB(pcwalton): The default of 'r' here is relied upon in
176-
// `is_associated_type` below.
177-
let mut ret = 'r';
175+
let mut ret = None;
178176
reader::tagged_docs(item, tag_item_trait_item_sort, |doc| {
179-
ret = doc.as_str_slice().as_bytes()[0] as char;
177+
ret = Some(doc.as_str_slice().as_bytes()[0] as char);
180178
false
181179
});
182-
ret
180+
match ret {
181+
Some(r) => r,
182+
None => panic!("No item_sort found")
183+
}
183184
}
184185

185186
fn item_symbol(item: rbml::Doc) -> String {

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -898,7 +898,7 @@ fn encode_info_for_associated_type(ecx: &EncodeContext,
898898
encode_visibility(rbml_w, associated_type.vis);
899899
encode_family(rbml_w, 'y');
900900
encode_parent_item(rbml_w, local_def(parent_id));
901-
encode_item_sort(rbml_w, 'r');
901+
encode_item_sort(rbml_w, 't');
902902

903903
let stab = stability::lookup(ecx.tcx, associated_type.def_id);
904904
encode_stability(rbml_w, stab);
@@ -1404,6 +1404,7 @@ fn encode_info_for_item(ecx: &EncodeContext,
14041404
encode_path(rbml_w,
14051405
path.clone().chain(Some(elem).into_iter()));
14061406

1407+
encode_item_sort(rbml_w, 't');
14071408
encode_family(rbml_w, 'y');
14081409

14091410
is_nonstatic_method = false;

0 commit comments

Comments
 (0)