Skip to content

Commit ff08297

Browse files
committed
---
yaml --- r: 180120 b: refs/heads/auto c: e5ff1d6fe7b8dd01efadeaddc0f3408e194562ee h: refs/heads/master v: v3
1 parent fd60a1d commit ff08297

File tree

6 files changed

+455
-141
lines changed

6 files changed

+455
-141
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: 4ef4ddd757f93fee4e5bf8aafd3e9233ea9df034
13+
refs/heads/auto: e5ff1d6fe7b8dd01efadeaddc0f3408e194562ee
1414
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
1515
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
1616
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336

branches/auto/src/librustc/diagnostics.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ register_diagnostics! {
5959
E0010,
6060
E0011,
6161
E0012,
62+
E0013,
6263
E0014,
6364
E0015,
6465
E0016,

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@ pub enum astencode_tag { // Reserves 0x40 -- 0x5f
143143
tag_table_upvar_capture_map = 0x56,
144144
tag_table_capture_modes = 0x57,
145145
tag_table_object_cast_map = 0x58,
146+
tag_table_const_qualif = 0x59,
146147
}
147148

148149
pub const tag_item_trait_item_sort: uint = 0x60;

branches/auto/src/librustc/middle/astencode.rs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ use metadata::tydecode;
2323
use metadata::tydecode::{DefIdSource, NominalType, TypeWithId, TypeParameter};
2424
use metadata::tydecode::{RegionParameter, ClosureSource};
2525
use metadata::tyencode;
26+
use middle::check_const::ConstQualif;
2627
use middle::mem_categorization::Typer;
2728
use middle::subst;
2829
use middle::subst::VecPerParamSpace;
@@ -1311,6 +1312,15 @@ fn encode_side_tables_for_id(ecx: &e::EncodeContext,
13111312
})
13121313
})
13131314
}
1315+
1316+
for &qualif in tcx.const_qualif_map.borrow().get(&id).iter() {
1317+
rbml_w.tag(c::tag_table_const_qualif, |rbml_w| {
1318+
rbml_w.id(id);
1319+
rbml_w.tag(c::tag_table_val, |rbml_w| {
1320+
qualif.encode(rbml_w).unwrap()
1321+
})
1322+
})
1323+
}
13141324
}
13151325

13161326
trait doc_decoder_helpers {
@@ -1931,6 +1941,10 @@ fn decode_side_tables(dcx: &DecodeContext,
19311941
dcx.tcx.closure_kinds.borrow_mut().insert(ast_util::local_def(id),
19321942
closure_kind);
19331943
}
1944+
c::tag_table_const_qualif => {
1945+
let qualif: ConstQualif = Decodable::decode(val_dsr).unwrap();
1946+
dcx.tcx.const_qualif_map.borrow_mut().insert(id, qualif);
1947+
}
19341948
_ => {
19351949
dcx.tcx.sess.bug(
19361950
&format!("unknown tag found in side tables: {:x}",

0 commit comments

Comments
 (0)