File tree Expand file tree Collapse file tree 3 files changed +1
-13
lines changed Expand file tree Collapse file tree 3 files changed +1
-13
lines changed Original file line number Diff line number Diff line change @@ -367,7 +367,7 @@ impl<'a> AnalyzeContext<'a> {
367367 return Ok ( Disambiguated :: Unambiguous ( ent) ) ;
368368 } else if strict_ok_assoc_types. is_empty ( ) {
369369 // Do not disambiguate away to emtpy result
370- strict_ok_assoc_types = ok_return_type . clone ( ) ;
370+ strict_ok_assoc_types. clone_from ( & ok_return_type ) ;
371371 }
372372
373373 Ok ( Disambiguated :: Ambiguous (
Original file line number Diff line number Diff line change @@ -210,10 +210,6 @@ pub trait HasPrimaryIdent {
210210 fn primary_name ( & self ) -> & Symbol {
211211 & self . primary_ident ( ) . item
212212 }
213- /// The position of the primary name in the secondary unit declaration
214- fn primary_pos ( & self ) -> & SrcPos {
215- & self . primary_ident ( ) . pos
216- }
217213}
218214
219215impl HasPrimaryIdent for ArchitectureBody {
Original file line number Diff line number Diff line change @@ -306,8 +306,6 @@ pub trait Recover<T> {
306306 fn or_recover_until < F > ( self , ctx : & mut ParsingContext < ' _ > , cond : F ) -> DiagnosticResult < T >
307307 where
308308 F : Fn ( Kind ) -> bool ;
309-
310- fn log ( self , msgs : & mut dyn DiagnosticHandler ) ;
311309}
312310
313311impl < T > Recover < T > for DiagnosticResult < T > {
@@ -329,12 +327,6 @@ impl<T> Recover<T> for DiagnosticResult<T> {
329327 }
330328 }
331329 }
332-
333- fn log ( self , msgs : & mut dyn DiagnosticHandler ) {
334- if let Err ( err) = self {
335- msgs. push ( err)
336- }
337- }
338330}
339331
340332#[ cfg( test) ]
You can’t perform that action at this time.
0 commit comments