Skip to content

Commit 3b4a517

Browse files
committed
rustc: make comments on CrateContext doc comments
1 parent b8ef9fd commit 3b4a517

File tree

1 file changed

+25
-25
lines changed

1 file changed

+25
-25
lines changed

src/librustc/middle/trans/context.rs

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -51,45 +51,45 @@ pub struct CrateContext {
5151
pub link_meta: LinkMeta,
5252
pub drop_glues: RefCell<HashMap<ty::t, ValueRef>>,
5353
pub tydescs: RefCell<HashMap<ty::t, @tydesc_info>>,
54-
// Set when running emit_tydescs to enforce that no more tydescs are
55-
// created.
54+
/// Set when running emit_tydescs to enforce that no more tydescs are
55+
/// created.
5656
pub finished_tydescs: Cell<bool>,
57-
// Track mapping of external ids to local items imported for inlining
57+
/// Track mapping of external ids to local items imported for inlining
5858
pub external: RefCell<DefIdMap<Option<ast::NodeId>>>,
59-
// Backwards version of the `external` map (inlined items to where they
60-
// came from)
59+
/// Backwards version of the `external` map (inlined items to where they
60+
/// came from)
6161
pub external_srcs: RefCell<NodeMap<ast::DefId>>,
62-
// A set of static items which cannot be inlined into other crates. This
63-
// will pevent in IIItem() structures from being encoded into the metadata
64-
// that is generated
62+
/// A set of static items which cannot be inlined into other crates. This
63+
/// will pevent in IIItem() structures from being encoded into the metadata
64+
/// that is generated
6565
pub non_inlineable_statics: RefCell<NodeSet>,
66-
// Cache instances of monomorphized functions
66+
/// Cache instances of monomorphized functions
6767
pub monomorphized: RefCell<HashMap<mono_id, ValueRef>>,
6868
pub monomorphizing: RefCell<DefIdMap<uint>>,
69-
// Cache generated vtables
69+
/// Cache generated vtables
7070
pub vtables: RefCell<HashMap<(ty::t, mono_id), ValueRef>>,
71-
// Cache of constant strings,
71+
/// Cache of constant strings,
7272
pub const_cstr_cache: RefCell<HashMap<InternedString, ValueRef>>,
7373

74-
// Reverse-direction for const ptrs cast from globals.
75-
// Key is an int, cast from a ValueRef holding a *T,
76-
// Val is a ValueRef holding a *[T].
77-
//
78-
// Needed because LLVM loses pointer->pointee association
79-
// when we ptrcast, and we have to ptrcast during translation
80-
// of a [T] const because we form a slice, a [*T,int] pair, not
81-
// a pointer to an LLVM array type.
74+
/// Reverse-direction for const ptrs cast from globals.
75+
/// Key is an int, cast from a ValueRef holding a *T,
76+
/// Val is a ValueRef holding a *[T].
77+
///
78+
/// Needed because LLVM loses pointer->pointee association
79+
/// when we ptrcast, and we have to ptrcast during translation
80+
/// of a [T] const because we form a slice, a [*T,int] pair, not
81+
/// a pointer to an LLVM array type.
8282
pub const_globals: RefCell<HashMap<int, ValueRef>>,
8383

84-
// Cache of emitted const values
84+
/// Cache of emitted const values
8585
pub const_values: RefCell<NodeMap<ValueRef>>,
8686

87-
// Cache of external const values
87+
/// Cache of external const values
8888
pub extern_const_values: RefCell<DefIdMap<ValueRef>>,
8989

9090
pub impl_method_cache: RefCell<HashMap<(ast::DefId, ast::Name), ast::DefId>>,
9191

92-
// Cache of closure wrappers for bare fn's.
92+
/// Cache of closure wrappers for bare fn's.
9393
pub closure_bare_wrapper_cache: RefCell<HashMap<ValueRef, ValueRef>>,
9494

9595
pub lltypes: RefCell<HashMap<ty::t, Type>>,
@@ -104,9 +104,9 @@ pub struct CrateContext {
104104
pub int_type: Type,
105105
pub opaque_vec_type: Type,
106106
pub builder: BuilderRef_res,
107-
// Set when at least one function uses GC. Needed so that
108-
// decl_gc_metadata knows whether to link to the module metadata, which
109-
// is not emitted by LLVM's GC pass when no functions use GC.
107+
/// Set when at least one function uses GC. Needed so that
108+
/// decl_gc_metadata knows whether to link to the module metadata, which
109+
/// is not emitted by LLVM's GC pass when no functions use GC.
110110
pub uses_gc: bool,
111111
pub dbg_cx: Option<debuginfo::CrateDebugContext>,
112112
}

0 commit comments

Comments
 (0)