Skip to content

Commit e65e171

Browse files
committed
Revert 6fdb81f, it is causing failures in
the bots.
1 parent 8dc5059 commit e65e171

File tree

2 files changed

+3
-21
lines changed

2 files changed

+3
-21
lines changed

src/comp/front/creader.rs

Lines changed: 3 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -22,29 +22,12 @@ type env = @rec(
2222

2323
// TODO: return something
2424
fn load_crate(ast.ident ident, vec[str] library_search_paths) -> @() {
25-
auto filename = os.dylib_filename(ident);
2625
for (str library_search_path in library_search_paths) {
27-
auto path = fs.connect(library_search_path, filename);
28-
auto pb = _str.buf(path);
29-
auto llmb = llvmext.LLVMRustCreateMemoryBufferWithContentsOfFile(pb);
30-
if ((llmb as int) != 0) {
31-
auto llof = mk_object_file(llmb);
32-
if ((llof.llof as int) != 0) {
33-
auto llsi = mk_section_iter(llof.llof);
34-
while ((llvmext.LLVMIsSectionIteratorAtEnd(llof.llof,
35-
llsi.llsi) as int) == 0) {
36-
// TODO: check name, pass contents off.
37-
38-
llvmext.LLVMMoveToNextSection(llsi.llsi);
39-
}
40-
}
41-
}
26+
auto path = fs.connect(library_search_path, ident);
27+
// TODO
4228
}
4329

44-
// TODO: write line number of "use" statement
45-
log #fmt("can't find a crate named '%s' (looked for '%s' in %s)",
46-
ident, filename, _str.connect(library_search_paths, ", "));
47-
fail;
30+
ret @();
4831
}
4932

5033
fn fold_view_item_use(&env e, &span sp, ast.ident ident,

src/comp/rustc.rc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ mod util {
4242
}
4343

4444
auth driver.rustc.main = impure;
45-
auth front.creader.load_crate = unsafe;
4645
auth middle.metadata = unsafe;
4746
auth middle.trans = unsafe;
4847
auth middle.trans.copy_args_to_allocas = impure;

0 commit comments

Comments
 (0)