code: func WarnsAndErrsToProto(warns []string, errs []error) (diags []*proto.Diagnostic) {
  	for _, w := range warns {
  		diags = AppendProtoDiag(diags, w)
  	}
  
  	for _, e := range errs {
  		diags = AppendProtoDiag(diags, e)
  	}
  
  	return diags
  }
docs: // WarnsAndErrorsToProto converts the warnings and errors return by the legacy
  // provider to protobuf diagnostics.