diff --git a/docs/src/lib.rs b/docs/src/lib.rs index 718ae50ba1..2543219903 100644 --- a/docs/src/lib.rs +++ b/docs/src/lib.rs @@ -583,8 +583,8 @@ fn make_doc_link(scope: &mut Scope, interns: &Interns, doc_item: &str) -> String } Err(_) => { panic!( - "Could not find symbol in scope for module link : {}", - doc_item + "Tried to generate an automatic link in docs for symbol `{}`, but that symbol was not in scope in this module. Scope was: {:?}", + doc_item, scope ) } }