@@ -10,8 +10,10 @@ use crate::directives::DirectiveLine;
1010/// The value of an `aux-crate` directive.
1111#[ derive( Clone , Debug , Default ) ]
1212pub struct AuxCrate {
13+ /// Contains `--extern` modifiers, if any. See the tracking issue for more
14+ /// info: https://github.com/rust-lang/rust/issues/98405
1315 /// With `aux-crate: noprelude:foo=bar.rs` this will be `noprelude`.
14- pub extern_opts : Option < String > ,
16+ pub extern_modifiers : Option < String > ,
1517 /// With `aux-crate: foo=bar.rs` this will be `foo`.
1618 /// With `aux-crate: noprelude:foo=bar.rs` this will be `foo`.
1719 pub name : String ,
@@ -79,9 +81,9 @@ fn parse_aux_crate(r: String) -> AuxCrate {
7981 let mut parts = r. trim ( ) . splitn ( 2 , '=' ) ;
8082 let opts_and_name = parts. next ( ) . expect ( "missing aux-crate name (e.g. log=log.rs)" ) . to_string ( ) ;
8183 let path = parts. next ( ) . expect ( "missing aux-crate value (e.g. log=log.rs)" ) . to_string ( ) ;
82- let ( opts , name) = match opts_and_name. split_once ( ':' ) {
84+ let ( modifiers , name) = match opts_and_name. split_once ( ':' ) {
8385 None => ( None , opts_and_name) ,
8486 Some ( ( opts, name) ) => ( Some ( opts. to_string ( ) ) , name. to_string ( ) ) ,
8587 } ;
86- AuxCrate { extern_opts : opts , name, path }
88+ AuxCrate { extern_modifiers : modifiers , name, path }
8789}
0 commit comments