Skip to content

Commit 86f985b

Browse files
---
yaml --- r: 277835 b: refs/heads/try c: 0142336 h: refs/heads/master i: 277833: f050b03 277831: 0a89c35
1 parent e62930a commit 86f985b

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: 6dbb0e86aec11050480beb76eade6fb805010ba7
33
refs/heads/snap-stage3: 235d77457d80b549dad3ac36d94f235208a1eafb
4-
refs/heads/try: a8e34dfc29df9ca817e9d1e91f3e49f6d405fe28
4+
refs/heads/try: 0142336a2a447e9883ae4dd6db98354154ba08e3
55
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
66
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
77
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try/src/librustc_trans/context.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,9 @@ impl<'tcx> DepTrackingMapConfig for TraitSelectionCache<'tcx> {
190190
}
191191
}
192192

193+
/// This list owns a number of LocalCrateContexts and binds them to their common
194+
/// SharedCrateContext. This type just exists as a convenience, something to
195+
/// pass around all LocalCrateContexts with and get an iterator over them.
193196
pub struct CrateContextList<'a, 'tcx: 'a> {
194197
shared: &'a SharedCrateContext<'a, 'tcx>,
195198
local_ccxs: Vec<LocalCrateContext<'tcx>>,
@@ -229,6 +232,9 @@ impl<'a, 'tcx: 'a> CrateContextList<'a, 'tcx> {
229232
}
230233
}
231234

235+
/// A CrateContext value binds together one LocalCrateContext with the
236+
/// SharedCrateContext. It exists as a convenience wrapper, so we don't have to
237+
/// pass around (SharedCrateContext, LocalCrateContext) tuples all over trans.
232238
pub struct CrateContext<'a, 'tcx: 'a> {
233239
shared: &'a SharedCrateContext<'a, 'tcx>,
234240
local_ccxs: &'a [LocalCrateContext<'tcx>],

0 commit comments

Comments
 (0)