File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
compiler/rustc_interface/src Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -128,7 +128,7 @@ pub struct BoxedResolver {
128
128
}
129
129
130
130
impl BoxedResolver {
131
- fn new < T > ( generator : T ) -> ( Result < ast:: Crate > , Self )
131
+ fn new < T > ( generator : T ) -> Result < ( ast:: Crate , Self ) >
132
132
where
133
133
T : :: std:: ops:: Generator <
134
134
Action ,
@@ -144,7 +144,7 @@ impl BoxedResolver {
144
144
_ => panic ! ( ) ,
145
145
} ;
146
146
147
- ( init, BoxedResolver { generator } )
147
+ init . map ( | init| ( init , BoxedResolver { generator } ) )
148
148
}
149
149
150
150
pub fn access < F : for < ' a > FnOnce ( & mut Resolver < ' a > ) -> R , R > ( & mut self , f : F ) -> R {
@@ -206,7 +206,7 @@ pub fn configure_and_expand(
206
206
// its contents but the results of name resolution on those contents. Hopefully we'll push
207
207
// this back at some point.
208
208
let crate_name = crate_name. to_string ( ) ;
209
- let ( result , resolver ) = BoxedResolver :: new ( static move |mut action| {
209
+ BoxedResolver :: new ( static move |mut action| {
210
210
let _ = action;
211
211
let sess = & * sess;
212
212
let resolver_arenas = Resolver :: arenas ( ) ;
@@ -248,8 +248,7 @@ pub fn configure_and_expand(
248
248
}
249
249
250
250
resolver. into_outputs ( )
251
- } ) ;
252
- result. map ( |k| ( k, resolver) )
251
+ } )
253
252
}
254
253
255
254
pub fn register_plugins < ' a > (
You can’t perform that action at this time.
0 commit comments