Skip to content

Commit f8f28e2

Browse files
committed
rustdoc: Add a test that we can tolerate missing external crates
1 parent 4e44437 commit f8f28e2

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/rustdoc/astsrv.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,11 +221,17 @@ fn srv_should_resolve_non_existant_imports() {
221221
}
222222

223223
#[test]
224-
fn srv_sholud_resolve_non_existant_uses() {
224+
fn srv_should_resolve_non_existant_uses() {
225225
let source = "use forble; fn a() { }";
226226
mk_srv_from_str(source);
227227
}
228228

229+
#[test]
230+
fn should_ignore_external_import_paths_that_dont_exist() {
231+
let source = "use forble; import forble::bippy;";
232+
mk_srv_from_str(source);
233+
}
234+
229235
fn exec<T>(
230236
srv: srv,
231237
f: fn~(ctxt: ctxt) -> T

0 commit comments

Comments
 (0)