Skip to content

Commit 3406fc8

Browse files
committed
---
yaml --- r: 1672 b: refs/heads/master c: e65e171 h: refs/heads/master v: v3
1 parent 4038958 commit 3406fc8

File tree

3 files changed

+4
-22
lines changed

3 files changed

+4
-22
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: 8dc505905831a364d09270f5288781e6770b02e0
2+
refs/heads/master: e65e1716a7086c365214e1b1c551c4d16af933d5

trunk/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,

trunk/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)