Logo
Explore Help
Register Sign In
rust-lang/rust
1
0
Fork 0
You've already forked rust
Code Issues Pull Requests Actions 1 Packages Projects Releases Wiki Activity
Files
1ea4851715893ee3f365a8ef09d47165e9a7864f
rust/src/test/rustdoc/primitive/primitive-generic-impl.rs

10 lines
244 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"]
// @has foo/primitive.i32.html '//div[@id="impl-ToString"]//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: 443ms 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