Skip to content

error: unresolved import #2915

Closed
Closed
@jesse99

Description

@jesse99

I know that there are a multitude of resolve tickets, but after grabbing commit 57e160b (which I think is 0.3) I am completely unable to build https://github.com/jesse99/rparse

I get the following:

rustc --test -o bin/test-rparse src/rparse.rc
error: failed to resolve imports
src/rparse.rs:8:7: 8:15 error: unresolved import
src/rparse.rs:8 import misc::*;
                       ^~~~~~~~
src/misc.rs:4:7: 4:16 error: unresolved import
src/misc.rs:4 import types::*;
                     ^~~~~~~~~
src/types.rs:3:7: 3:31 error: unresolved import
src/types.rs:3 import result = result::result;
                      ^~~~~~~~~~~~~~~~~~~~~~~~
src/tests/test_parsers.rs:1:7: 1:23 error: unresolved import
src/tests/test_parsers.rs:1 import test_helpers::*;
                                   ^~~~~~~~~~~~~~~~
src/tests/test_primitives.rs:2:7: 2:10 error: unresolved import
src/tests/test_primitives.rs:2 import io;
                                      ^~~
src/tests/test_expr.rs:2:7: 2:23 error: unresolved import
src/tests/test_expr.rs:2 import test_helpers::*;
                                ^~~~~~~~~~~~~~~~
src/tests/test_xml.rs:4:7: 4:22 error: unresolved import
src/tests/test_xml.rs:4 import to_str::to_str;
                               ^~~~~~~~~~~~~~~
src/tests/test_c99_parser.rs:1:7: 1:23 error: unresolved import
src/tests/test_c99_parser.rs:1 import test_helpers::*;
                                      ^~~~~~~~~~~~~~~~
src/tests/test_helpers.rs:2:7: 2:10 error: unresolved import
src/tests/test_helpers.rs:2 import io;
                                   ^~~
error: aborting due to 10 previous errors
make: *** [bin/test-rparse] Error 101
exited with code 2

I haven't made any progress whatsoever with these errors. Not sure what's going on. Maybe there is a problem with my code somewhere, but "unresolved import" is certainly not helping me find anything. Note that the code did build a week or two ago (when brson went through all the cargo packages and fixed them up).

I also tried head as of evening Friday, Jul 13 PST with the same results.

Metadata

Metadata

Assignees

Labels

A-resolveArea: Name/path resolution done by `rustc_resolve` specifically

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions