@@ -521,14 +521,18 @@ impl Handler {
521521    } 
522522
523523    /// Construct a builder at the `Warning` level at the given `span` and with the `msg`. 
524- /// Cancel the builder if warnings cannot be emitted 
524+ /// 
525+ /// The builder will be canceled if warnings cannot be emitted. 
525526pub  fn  struct_span_warn ( & self ,  span :  impl  Into < MultiSpan > ,  msg :  & str )  -> DiagnosticBuilder < ' _ >  { 
526527        let  mut  result = self . struct_warn ( msg) ; 
527528        result. set_span ( span) ; 
528529        result
529530    } 
530531
531532    /// Construct a builder at the `Warning` level at the given `span` and with the `msg`. 
533+ /// 
534+ /// This will "force" the warning meaning it will not be canceled even 
535+ /// if warnings cannot be emitted. 
532536pub  fn  struct_span_force_warn ( 
533537        & self , 
534538        span :  impl  Into < MultiSpan > , 
@@ -564,7 +568,8 @@ impl Handler {
564568    } 
565569
566570    /// Construct a builder at the `Warning` level with the `msg`. 
567- /// Cancel the builder if warnings cannot be emitted 
571+ /// 
572+ /// The builder will be canceled if warnings cannot be emitted. 
568573pub  fn  struct_warn ( & self ,  msg :  & str )  -> DiagnosticBuilder < ' _ >  { 
569574        let  mut  result = DiagnosticBuilder :: new ( self ,  Level :: Warning ,  msg) ; 
570575        if  !self . flags . can_emit_warnings  { 
@@ -574,6 +579,9 @@ impl Handler {
574579    } 
575580
576581    /// Construct a builder at the `Warning` level with the `msg`. 
582+ /// 
583+ /// This will "force" a warning meaning it will not be canceled even 
584+ /// if warnings cannot be emitted. 
577585pub  fn  struct_force_warn ( & self ,  msg :  & str )  -> DiagnosticBuilder < ' _ >  { 
578586        DiagnosticBuilder :: new ( self ,  Level :: Warning ,  msg) 
579587    } 
0 commit comments