Skip to content

Commit 8d0b435

Browse files
committed
fix compatibility layer
broken by racket/racket@c29c4a3
1 parent 5b2509e commit 8d0b435

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

compatibility-lib/mzlib/private/contract-struct.rkt

+7-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,12 @@
22

33
(require (for-syntax racket/base
44
racket/contract/private/helpers
5-
racket/struct-info)
5+
racket/struct-info
6+
(rename-in syntax/private/boundmap
7+
;; the private version of the library
8+
;; (the one without contracts)
9+
;; has these old, wrong names in it.
10+
[make-module-identifier-mapping make-free-identifier-mapping]))
611
racket/contract/private/guts
712
racket/contract/private/misc)
813

@@ -41,7 +46,7 @@
4146
(rev-selector-id ...)
4247
(mutator-id ...)
4348
super-id)
44-
(extract-struct-info (lookup-struct-info (syntax struct-name) stx))])
49+
(extract-struct-info (lookup-struct-info (syntax struct-name) (make-free-identifier-mapping) stx))])
4550
(unless (= (length (syntax->list (syntax (rev-selector-id ...))))
4651
(length (syntax->list (syntax (args ...)))))
4752
(raise-syntax-error 'struct/c

0 commit comments

Comments
 (0)