@@ -99,13 +99,13 @@ fn collect_public_types(krate: &str) -> impl Iterator<Item = (Vec<String>, ast::
99
99
if CRATES . get ( krate) . is_none ( ) {
100
100
eprintln ! ( "Parsing crate {krate}" ) ;
101
101
std:: process:: Command :: new ( "rustup" )
102
- . args ( [ "install" , "nightly-2024-07-23 " ] )
102
+ . args ( [ "install" , "nightly-2025-02-17 " ] )
103
103
. output ( )
104
104
. expect ( "failed to install nightly" ) ;
105
105
let output = std:: process:: Command :: new ( "rustup" )
106
106
. args ( [
107
107
"run" ,
108
- "nightly-2024-07-23 " ,
108
+ "nightly-2025-02-17 " ,
109
109
"cargo" ,
110
110
"rustdoc" ,
111
111
"-p" ,
@@ -186,8 +186,8 @@ fn collect_public_types(krate: &str) -> impl Iterator<Item = (Vec<String>, ast::
186
186
return ;
187
187
}
188
188
match & item. inner {
189
- ItemEnum :: Import ( import) => {
190
- if !import. glob {
189
+ ItemEnum :: Use ( import) => {
190
+ if !import. is_glob {
191
191
path. push ( import. name . clone ( ) ) ;
192
192
}
193
193
@@ -235,7 +235,7 @@ fn collect_public_types(krate: &str) -> impl Iterator<Item = (Vec<String>, ast::
235
235
. iter ( )
236
236
. map ( |id| & external_crate. index [ id] )
237
237
. find ( |item| match & item. inner {
238
- ItemEnum :: Import ( import) => {
238
+ ItemEnum :: Use ( import) => {
239
239
if import. name . as_str ( ) == segment {
240
240
path. pop ( ) ;
241
241
true
@@ -272,11 +272,10 @@ fn collect_public_types(krate: &str) -> impl Iterator<Item = (Vec<String>, ast::
272
272
if let ItemEnum :: Impl ( inner) = & krate. index [ id] . inner {
273
273
let mut trait_name = None ;
274
274
if let Some ( path) = & inner. trait_ {
275
- let name = & path. name ;
276
- if IGNORED_TRAITS . contains ( name. as_str ( ) ) {
275
+ if IGNORED_TRAITS . contains ( path. path . as_str ( ) ) {
277
276
continue ;
278
277
}
279
- trait_name = Some ( & * path. name ) ;
278
+ trait_name = Some ( path. path . as_str ( ) ) ;
280
279
}
281
280
for id in & inner. items {
282
281
recurse (
@@ -302,11 +301,10 @@ fn collect_public_types(krate: &str) -> impl Iterator<Item = (Vec<String>, ast::
302
301
if let ItemEnum :: Impl ( inner) = & krate. index [ id] . inner {
303
302
let mut trait_name = None ;
304
303
if let Some ( path) = & inner. trait_ {
305
- let name = & path. name ;
306
- if IGNORED_TRAITS . contains ( name. as_str ( ) ) {
304
+ if IGNORED_TRAITS . contains ( path. path . as_str ( ) ) {
307
305
continue ;
308
306
}
309
- trait_name = Some ( & * path. name ) ;
307
+ trait_name = Some ( path. path . as_str ( ) ) ;
310
308
}
311
309
for id in & inner. items {
312
310
recurse (
0 commit comments