Logo
Explore Help
Register Sign In
rust-lang/rust
1
0
Fork 0
You've already forked rust
Code Issues Pull Requests Actions 2 Packages Projects Releases Wiki Activity
Files
master
rust/tests/rustdoc/intra-doc/raw-ident-self.rs

14 lines
287 B
Rust
Raw Permalink Normal View History

Fix warnings in rustdoc HTML tests Now that compiletest denies warnings in these tests, they need fixing!
2021-11-26 15:03:16 -08:00
#![deny(rustdoc::broken_intra_doc_links)]
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.
2020-12-02 10:07:29 -05:00
pub mod r#impl {
pub struct S;
impl S {
/// See [Self::b].
Update `tests/rustdoc` to new test syntax
2024-06-21 14:03:08 +02:00
//@ has raw_ident_self/impl/struct.S.html
//@ has - '//a[@href="struct.S.html#method.b"]' 'Self::b'
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.
2020-12-02 10:07:29 -05:00
pub fn a() {}
pub fn b() {}
}
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 760ms Template: 3ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API