Skip to content

Commit 311a970

Browse files
committed
auto merge of #16090 : epdtry/rust/doesnt-use-gc, r=alexcrichton
2 parents 8cda74c + 36872d5 commit 311a970

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/librustc/middle/trans/context.rs

-5
Original file line numberDiff line numberDiff line change
@@ -121,10 +121,6 @@ pub struct CrateContext {
121121
/// Holds the LLVM values for closure IDs.
122122
pub unboxed_closure_vals: RefCell<DefIdMap<ValueRef>>,
123123

124-
/// Set when at least one function uses GC. Needed so that
125-
/// decl_gc_metadata knows whether to link to the module metadata, which
126-
/// is not emitted by LLVM's GC pass when no functions use GC.
127-
pub uses_gc: bool,
128124
pub dbg_cx: Option<debuginfo::CrateDebugContext>,
129125

130126
pub eh_personality: RefCell<Option<ValueRef>>,
@@ -230,7 +226,6 @@ impl CrateContext {
230226
opaque_vec_type: Type::from_ref(ptr::mut_null()),
231227
builder: BuilderRef_res(llvm::LLVMCreateBuilderInContext(llcx)),
232228
unboxed_closure_vals: RefCell::new(DefIdMap::new()),
233-
uses_gc: false,
234229
dbg_cx: dbg_cx,
235230
eh_personality: RefCell::new(None),
236231
intrinsics: RefCell::new(HashMap::new()),

0 commit comments

Comments
 (0)