code: func checkAutoIncrementRef(name string, dependencies map[string]struct{}, tbInfo *model.TableInfo) error {
  	exists, autoIncrementColumn := hasAutoIncrementColumn(tbInfo)
  	if exists {
  		if _, found := dependencies[autoIncrementColumn]; found {
  			return ErrGeneratedColumnRefAutoInc.GenWithStackByArgs(name)
  		}
  	}
  	return nil
  }
docs: // checkAutoIncrementRef checks if an generated column depends on an auto-increment column and raises an error if so.
  // See https://dev.mysql.com/doc/refman/5.7/en/create-table-generated-columns.html for details.