Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information
Showing
2 changed files
with
22 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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() {} | ||
} | ||
} |