File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -839,8 +839,8 @@ impl<'a> ParserState<'a> {
839839
840840 fn read_template_name ( & mut self ) -> Result < Name < ' a > > {
841841 // Templates have their own context for backreferences.
842- let saved_memorized_names = mem:: replace ( & mut self . memorized_names , vec ! [ ] ) ;
843- let saved_memorized_types = mem:: replace ( & mut self . memorized_types , vec ! [ ] ) ;
842+ let saved_memorized_names = mem:: take ( & mut self . memorized_names ) ;
843+ let saved_memorized_types = mem:: take ( & mut self . memorized_types ) ;
844844 let name = self . read_unqualified_name ( false ) ?; // how does wine deal with ??$?DM@std@@YA?AV?$complex@M@0@ABMABV10@@Z
845845 let template_params = self . read_params ( ) ?;
846846 let _ = mem:: replace ( & mut self . memorized_names , saved_memorized_names) ;
@@ -1303,7 +1303,7 @@ impl<'a> ParserState<'a> {
13031303 return Ok ( Type :: TemplateParameterWithIndex ( n) ) ;
13041304 }
13051305 if self . consume ( b"$BY" ) {
1306- return Ok ( self . read_array ( ) ? ) ;
1306+ return self . read_array ( ) ;
13071307 }
13081308 if self . consume ( b"$Q" ) {
13091309 return Ok ( Type :: RValueRef ( Box :: new ( self . read_pointee ( ) ?) , sc) ) ;
You can’t perform that action at this time.
0 commit comments