提交 f8f28e29 编写于 作者: B Brian Anderson

rustdoc: Add a test that we can tolerate missing external crates

上级 4e444371
......@@ -221,11 +221,17 @@ fn srv_should_resolve_non_existant_imports() {
}
#[test]
fn srv_sholud_resolve_non_existant_uses() {
fn srv_should_resolve_non_existant_uses() {
let source = "use forble; fn a() { }";
mk_srv_from_str(source);
}
#[test]
fn should_ignore_external_import_paths_that_dont_exist() {
let source = "use forble; import forble::bippy;";
mk_srv_from_str(source);
}
fn exec<T>(
srv: srv,
f: fn~(ctxt: ctxt) -> T
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册