-
-
Notifications
You must be signed in to change notification settings - Fork 103
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
Automated Resyntax fixes #1391
Conversation
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`
(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") |
There was a problem hiding this comment.
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
[(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))] |
There was a problem hiding this comment.
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.
I'm closing this one because it didn't meet my quality standards. For details, see the linked Resyntax issues above. |
This is an automated change generated by Resyntax.
Pass 1
Applied 2 fixes to
typed-racket-lib/typed-racket/rep/prop-rep.rkt
tidy-require
: Keep imports inrequire
sorted and grouped by phase, with collections before files.sort-with-keyed-comparator-to-sort-by-key
: Thissort
expression can be replaced with a simpler, equivalent expression.Applied 2 fixes to
typed-racket-lib/typed-racket/types/match-expanders.rkt
tidy-require
: Keep imports inrequire
sorted and grouped by phase, with collections before files.define-simple-macro-to-define-syntax-parse-rule
: Thedefine-simple-macro
form has been renamed todefine-syntax-parse-rule
.Applied 1 fix to
typed-racket-lib/typed-racket/typecheck/tc-app/utils.rkt
tidy-require
: Keep imports inrequire
sorted and grouped by phase, with collections before files.Summary
Fixed 5 issues in 3 files.
tidy-require
sort-with-keyed-comparator-to-sort-by-key
define-simple-macro-to-define-syntax-parse-rule