This website requires JavaScript.
Explore
Help
Register
Sign In
mikros
/
rust
Watch
1
Star
0
Fork
0
You've already forked rust
Code
Issues
Pull Requests
Packages
Projects
Releases
Wiki
Activity
0e3ee39c41
rust
/
src
/
test
/
compile-fail
/
bad-module.rs
6 lines
96 B
Rust
Raw
Normal View
History
Unescape
Escape
Stop showing a 'cyclic import' message for unresolved imports This only happened for single-length import paths, because the import was being looked up in its own scope.
2011-05-24 13:58:38 -05:00
// error-pattern: unresolved import: vec
Improve nonexistent-module error message The error message for (for example) "import vec;" without "use std;" was "cyclic import", which was misleading because there were no cycles. I changed it to "cyclic import or nonexistent module", which doesn't break existing tests.
2011-05-24 12:46:48 -05:00
import
vec
;
fn
main
(
)
{
Stop showing a 'cyclic import' message for unresolved imports This only happened for single-length import paths, because the import was being looked up in its own scope.
2011-05-24 13:58:38 -05:00
auto
foo
=
vec
::
len
(
[
]
)
;
Improve nonexistent-module error message The error message for (for example) "import vec;" without "use std;" was "cyclic import", which was misleading because there were no cycles. I changed it to "cyclic import or nonexistent module", which doesn't break existing tests.
2011-05-24 12:46:48 -05:00
}
Reference in New Issue
Copy Permalink