Use item_name instead of pretty printing

Pretty printing would add a `r#` prefix to raw identifiers, which was
not correct. In general I think this change makes sense -
pretty-printing is for showing to the *user*, `item_name` is suitable to
pass to resolve.
This commit is contained in:
Joshua Nelson 2020-12-02 10:07:29 -05:00
parent 18aa5ee209
commit 4e7a2dcabb
2 changed files with 22 additions and 4 deletions

View file

@ -0,0 +1,13 @@
#![deny(broken_intra_doc_links)]
pub mod r#impl {
pub struct S;
impl S {
/// See [Self::b].
// @has raw_ident_self/impl/struct.S.html
// @has - '//a[@href="../../raw_ident_self/impl/struct.S.html#method.b"]' 'Self::b'
pub fn a() {}
pub fn b() {}
}
}