File tree Expand file tree Collapse file tree 7 files changed +10
-11
lines changed Expand file tree Collapse file tree 7 files changed +10
-11
lines changed Original file line number Diff line number Diff line change @@ -2123,7 +2123,7 @@ impl ItemSection {
2123
2123
Self :: Unions => "Unions" ,
2124
2124
Self :: Enums => "Enums" ,
2125
2125
Self :: Functions => "Functions" ,
2126
- Self :: TypeDefinitions => "Type Definitions " ,
2126
+ Self :: TypeDefinitions => "Type Aliases " ,
2127
2127
Self :: Statics => "Statics" ,
2128
2128
Self :: Constants => "Constants" ,
2129
2129
Self :: Traits => "Traits" ,
Original file line number Diff line number Diff line change @@ -198,7 +198,7 @@ pub(super) fn print_item(
198
198
clean:: StructItem ( ..) => "Struct " ,
199
199
clean:: UnionItem ( ..) => "Union " ,
200
200
clean:: EnumItem ( ..) => "Enum " ,
201
- clean:: TypedefItem ( ..) => "Type Definition " ,
201
+ clean:: TypedefItem ( ..) => "Type Alias " ,
202
202
clean:: MacroItem ( ..) => "Macro " ,
203
203
clean:: ProcMacroItem ( ref mac) => match mac. kind {
204
204
MacroKind :: Bang => "Macro " ,
Original file line number Diff line number Diff line change @@ -499,7 +499,7 @@ function preLoadCss(cssUrl) {
499
499
block ( "static" , "static" , "Statics" ) ;
500
500
block ( "trait" , "traits" , "Traits" ) ;
501
501
block ( "fn" , "functions" , "Functions" ) ;
502
- block ( "type" , "types" , "Type Definitions " ) ;
502
+ block ( "type" , "types" , "Type Aliases " ) ;
503
503
block ( "foreigntype" , "foreign-types" , "Foreign Types" ) ;
504
504
block ( "keyword" , "keywords" , "Keywords" ) ;
505
505
block ( "traitalias" , "trait-aliases" , "Trait Aliases" ) ;
Original file line number Diff line number Diff line change 8
8
// @has - '//*[@class="item-name"]/a[@class="constant"]' 'AtomicU8'
9
9
// We also ensure we don't have another item displayed.
10
10
// @count - '//*[@id="main-content"]/*[@class="small-section-header"]' 2
11
- // @has - '//*[@id="main-content"]/*[@class="small-section-header"]' 'Type Definitions '
11
+ // @has - '//*[@id="main-content"]/*[@class="small-section-header"]' 'Type Aliases '
12
12
// @has - '//*[@id="main-content"]/*[@class="small-section-header"]' 'Constants'
13
13
14
14
mod other {
Original file line number Diff line number Diff line change @@ -104,7 +104,7 @@ pub mod glob_reexport {
104
104
// @count - '//*[@id="main-content"]/*[@class="small-section-header"]' 3
105
105
// @has - '//*[@id="main-content"]/*[@class="small-section-header"]' 'Re-exports'
106
106
// @has - '//*[@id="main-content"]/*[@class="small-section-header"]' 'Structs'
107
- // @has - '//*[@id="main-content"]/*[@class="small-section-header"]' 'Type Definitions '
107
+ // @has - '//*[@id="main-content"]/*[@class="small-section-header"]' 'Type Aliases '
108
108
109
109
// Now we check we have 1 re-export and 2 inlined items.
110
110
// If not item from a glob re-export is visible, we don't show the re-export.
@@ -135,9 +135,9 @@ pub mod doc_hidden_reexport {
135
135
// @has - '//a[@class="struct"]' 'Reexport'
136
136
// Check that the `#[doc(hidden)]` re-export's attributes are not taken into account.
137
137
// @has - '//*[@class="desc docblock-short"]' 'Visible. Original.'
138
+ /// Visible.
139
+ pub use self :: Bar3 as Reexport ;
138
140
/// Hidden.
139
141
#[ doc( hidden) ]
140
142
pub use crate :: private:: Bar3 ;
141
- /// Visible.
142
- pub use self :: Bar3 as Reexport ;
143
143
}
Original file line number Diff line number Diff line change 1
1
#![ crate_name = "foo" ]
2
-
3
2
#![ feature( rustc_attrs) ]
4
3
5
4
// @has 'foo/all.html'
9
8
// @has - '//*[@class="sidebar-elems"]//li' 'Functions'
10
9
// @has - '//*[@class="sidebar-elems"]//li' 'Traits'
11
10
// @has - '//*[@class="sidebar-elems"]//li' 'Macros'
12
- // @has - '//*[@class="sidebar-elems"]//li' 'Type Definitions '
11
+ // @has - '//*[@class="sidebar-elems"]//li' 'Type Aliases '
13
12
// @has - '//*[@class="sidebar-elems"]//li' 'Constants'
14
13
// @has - '//*[@class="sidebar-elems"]//li' 'Statics'
15
14
// @has - '//*[@class="sidebar-elems"]//li' 'Primitive Types'
@@ -26,7 +25,7 @@ pub fn foo() {}
26
25
pub trait Trait { }
27
26
#[ macro_export]
28
27
macro_rules! foo {
29
- ( ) => { }
28
+ ( ) => { } ;
30
29
}
31
30
pub type Type = u8 ;
32
31
pub const FOO : u8 = 0 ;
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ pub struct FooStruct;
30
30
// @matches 'foo/enum.FooEnum.html' '//h2[@class="location"]' 'FooEnum'
31
31
pub enum FooEnum { }
32
32
33
- // @matches 'foo/type.FooType.html' '//h1' 'Type Definition foo::FooType'
33
+ // @matches 'foo/type.FooType.html' '//h1' 'Type Alias foo::FooType'
34
34
// @matches 'foo/type.FooType.html' '//h2[@class="location"]' 'FooType'
35
35
pub type FooType = FooStruct ;
36
36
You can’t perform that action at this time.
0 commit comments