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:
binarycat 2025-06-20 11:09:45 -05:00
parent 255aa22082
commit 8d18f3d609
2 changed files with 13 additions and 0 deletions

View file

@ -15,6 +15,7 @@ use crate::iter::FusedIterator;
use crate::num::NonZero;
mod ascii_char;
#[doc(alias("AsciiChar"))]
#[unstable(feature = "ascii_char", issue = "110998")]
pub use ascii_char::AsciiChar as Char;

View file

@ -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' },
],
},
];