Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 4c777b0

Browse files
committedAug 3, 2015
Revert an unneeded change.
1 parent 0a9c536 commit 4c777b0

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed
 

‎src/librustc_trans/trans/base.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -2778,7 +2778,7 @@ pub fn trans_crate(tcx: &ty::ctxt, analysis: ty::CrateAnalysis) -> CrateTranslat
27782778
}
27792779

27802780
let modules = shared_ccx.iter()
2781-
.map(|ccx| ModuleTranslation { llcx: ccx.llcx(), llmod: ccx.llmod(), name: None, })
2781+
.map(|ccx| ModuleTranslation { llcx: ccx.llcx(), llmod: ccx.llmod(), })
27822782
.collect();
27832783

27842784
let mut reachable: Vec<String> = shared_ccx.reachable().iter().filter_map(|id| {
@@ -2816,7 +2816,6 @@ pub fn trans_crate(tcx: &ty::ctxt, analysis: ty::CrateAnalysis) -> CrateTranslat
28162816
let metadata_module = ModuleTranslation {
28172817
llcx: shared_ccx.metadata_llcx(),
28182818
llmod: shared_ccx.metadata_llmod(),
2819-
name: Some("metadata".to_string()),
28202819
};
28212820
let formats = shared_ccx.tcx().dependency_formats.borrow().clone();
28222821
let no_builtins = attr::contains_name(&krate.attrs, "no_builtins");

‎src/librustc_trans/trans/mod.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,10 @@ mod type_;
5959
mod type_of;
6060
mod value;
6161

62-
#[derive(Clone)]
62+
#[derive(Copy, Clone)]
6363
pub struct ModuleTranslation {
6464
pub llcx: ContextRef,
6565
pub llmod: ModuleRef,
66-
pub name: Option<String>,
6766
}
6867

6968
unsafe impl Send for ModuleTranslation { }

0 commit comments

Comments
 (0)
Please sign in to comment.