mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-26 13:01:27 +03:00
add doc(alias("AsciiChar")) to core::ascii::Char
Added it to the reexported, which is intended rustdoc behavior, but is apparently untested, so I also added a test for it.
This commit is contained in:
@@ -15,6 +15,7 @@
|
||||
use crate::num::NonZero;
|
||||
|
||||
mod ascii_char;
|
||||
#[doc(alias("AsciiChar"))]
|
||||
#[unstable(feature = "ascii_char", issue = "110998")]
|
||||
pub use ascii_char::AsciiChar as Char;
|
||||
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
// AsciiChar has a doc alias on its reexport and we
|
||||
// want to make sure that actually works correctly,
|
||||
// since apperently there are no other tests for this.
|
||||
|
||||
const EXPECTED = [
|
||||
{
|
||||
'query': 'AsciiChar',
|
||||
'others': [
|
||||
{ 'path': 'core::ascii', 'name': 'Char' },
|
||||
],
|
||||
},
|
||||
];
|
||||
Reference in New Issue
Block a user