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
a7c25b29575c17434406b69773f8c2961af343b3
rust/src/test/rustdoc/primitive/primitive-generic-impl.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

9 lines
249 B
Rust
Raw 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
#![feature(rustdoc_internals)]
Remove unnecessary use of `include!` in rustdoc test Using `include!` shouldn't affect the test. It was only added because: > I replicated how it was performed in libstd. Since it's the main > target of this fix, I thought it was the best way. <https://github.com/rust-lang/rust/pull/52827/files#r207647331> But it's unnecessary and adds unnecessary indirection.
2021-11-26 15:31:38 -08:00
#![crate_name = "foo"]
rustdoc: Add more semantic information to impl ids Instead of generating `#impl`, `#impl-1`, etc., generate IDs like `#impl-Foo<M>`. Co-authored-by: Noah Lev <camelidcamel@gmail.com>
2022-01-10 15:35:55 -06:00
// @has foo/primitive.i32.html '//*[@id="impl-ToString-for-i32"]//h3[@class="code-header in-band"]' 'impl<T> ToString for T'
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
Fix primitive blanket impls not showing up
2018-07-29 16:30:39 +02:00
#[doc(primitive = "i32")]
/// Some useless docs, wouhou!
mod i32 {}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 494ms Template: 2ms
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