Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automated Resyntax fixes #1391

Closed
wants to merge 1 commit into from
Closed

Automated Resyntax fixes #1391

wants to merge 1 commit into from

Conversation

resyntax-ci[bot]
Copy link
Contributor

@resyntax-ci resyntax-ci bot commented Sep 20, 2024

This is an automated change generated by Resyntax.

Pass 1

Applied 2 fixes to typed-racket-lib/typed-racket/rep/prop-rep.rkt

  • Line 3, tidy-require: Keep imports in require sorted and grouped by phase, with collections before files.
  • Line 146, sort-with-keyed-comparator-to-sort-by-key: This sort expression can be replaced with a simpler, equivalent expression.

Applied 2 fixes to typed-racket-lib/typed-racket/types/match-expanders.rkt

  • Line 3, tidy-require: Keep imports in require sorted and grouped by phase, with collections before files.
  • Line 78, define-simple-macro-to-define-syntax-parse-rule: The define-simple-macro form has been renamed to define-syntax-parse-rule.

Applied 1 fix to typed-racket-lib/typed-racket/typecheck/tc-app/utils.rkt

  • Line 3, tidy-require: Keep imports in require sorted and grouped by phase, with collections before files.

Summary

Fixed 5 issues in 3 files.

  • Fixed 3 occurrences of tidy-require
  • Fixed 1 occurrence of sort-with-keyed-comparator-to-sort-by-key
  • Fixed 1 occurrence of define-simple-macro-to-define-syntax-parse-rule

This is an automated change generated by Resyntax.

#### Pass 1

Applied 2 fixes to [`typed-racket-lib/typed-racket/rep/prop-rep.rkt`](../blob/HEAD/typed-racket-lib/typed-racket/rep/prop-rep.rkt)

  * Line 3, `tidy-require`: Keep imports in `require` sorted and grouped by phase, with collections before files.
  * Line 146, `sort-with-keyed-comparator-to-sort-by-key`: This `sort` expression can be replaced with a simpler, equivalent expression.

Applied 2 fixes to [`typed-racket-lib/typed-racket/types/match-expanders.rkt`](../blob/HEAD/typed-racket-lib/typed-racket/types/match-expanders.rkt)

  * Line 3, `tidy-require`: Keep imports in `require` sorted and grouped by phase, with collections before files.
  * Line 78, `define-simple-macro-to-define-syntax-parse-rule`: The `define-simple-macro` form has been renamed to `define-syntax-parse-rule`.

Applied 1 fix to [`typed-racket-lib/typed-racket/typecheck/tc-app/utils.rkt`](../blob/HEAD/typed-racket-lib/typed-racket/typecheck/tc-app/utils.rkt)

  * Line 3, `tidy-require`: Keep imports in `require` sorted and grouped by phase, with collections before files.

## Summary

Fixed 5 issues in 3 files.

  * Fixed 3 occurrences of `tidy-require`
  * Fixed 1 occurrence of `sort-with-keyed-comparator-to-sort-by-key`
  * Fixed 1 occurrence of `define-simple-macro-to-define-syntax-parse-rule`
Comment on lines +3 to +12
(require racket/lazy-require
racket/match
(contract-req)
(only-in racket/unsafe/ops unsafe-fx<=)
"../utils/utils.rkt"
"core-rep.rkt"
"fme-utils.rkt"
"rep-utils.rkt"
"free-variance.rkt"
"core-rep.rkt"
"object-rep.rkt"
racket/match
racket/lazy-require
(only-in racket/unsafe/ops unsafe-fx<=))
"rep-utils.rkt")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change is busted, see jackfirth/resyntax#316

Comment on lines +81 to +90
[(Mu-unsafe: (Union: (== -Null) (list (pair-matcher elem-t (B: 0)))))
(define elem-t* (instantiate-type elem-t t))
(cond
[simple? (and (equal? elem-t elem-t*) elem-t)]
[else elem-t*])]
[(Union: (== -Null) (list (pair-matcher hd-t tl-t)))
(cond
[(listof-pred? tl-t)
=> (λ (lst-t) (and (equal? hd-t lst-t) hd-t))]
=>
(λ (lst-t) (and (equal? hd-t lst-t) hd-t))]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The define-simple-macro migration rule shouldn't have bothered with these formatting changes. Filed jackfirth/resyntax#317.

@jackfirth
Copy link
Contributor

I'm closing this one because it didn't meet my quality standards. For details, see the linked Resyntax issues above.

@jackfirth jackfirth closed this Sep 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant