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:
parent
255aa22082
commit
8d18f3d609
2 changed files with 13 additions and 0 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
12
tests/rustdoc-js-std/doc-alias-use.js
Normal file
12
tests/rustdoc-js-std/doc-alias-use.js
Normal 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' },
|
||||
],
|
||||
},
|
||||
];
|
||||
Loading…
Add table
Add a link
Reference in a new issue