Commit Graph

4396 Commits

Author SHA1 Message Date
Robby Findler
f64438371f add a test case for check-expect expressions where the first position has an error
test case for commit 87a8f70148

related to PR 12943
(cherry picked from commit 2032aaf341)
2012-08-03 02:33:32 -04:00
Matthew Flatt
d68afc364d ffi/com: fix clean-up of type descriptors
Merge to v5.3
(cherry picked from commit 9b1db14328)
2012-07-30 11:11:30 -04:00
Vincent St-Amour
c9b834353a Fix type for add-between.
(cherry picked from commit b1577bd307)
2012-07-30 11:11:24 -04:00
Vincent St-Amour
5590615edb Fix parametric require/typed in typed/racket/base.
Closes PR12951.

Please merge to release.
(cherry picked from commit dd02f5eeda)
2012-07-30 11:11:20 -04:00
Ryan Culpepper
98a4002c64 syntax/parse: fix bug in specialized code for ellipsis patterns
The result of 'stx->list' is not always either a list or #f.

Merge to 5.3.
(cherry picked from commit e10951024f)
2012-07-30 11:11:12 -04:00
Eli Barzilay
751e20b3ea Adjust for new error mesage style.
(This is in part a temporary solution since the ",bt" command is now used
to show a backtrace as well as any "foo...:" hidden fields.)
(cherry picked from commit c2bea19d1b)
2012-07-30 11:11:01 -04:00
Matthew Flatt
7a49919608 fix for bytecode validator
Fix tchecking for a rest argument to a function that
is lifted by closure conversion so that one of its
arguments is a mutable local variable's location.

Also reject bytecode that would pass too many arguments
to a lifted function, since that would trigger an arity
error that might try to use a location as a value.

Merge to v5.3
(cherry picked from commit 9d6f0e96ba)
2012-07-27 00:02:56 -04:00
Matthew Flatt
2827a3e280 another repair to `subprocess' test
Merge to v5.3
(cherry picked from commit 100212cd53)
2012-07-26 13:03:32 -04:00
Matthew Flatt
09a51a9b35 fix a `subprocess' test
Merge to v5.3
(cherry picked from commit 8c10dc1579)
2012-07-26 11:57:02 -04:00
Matthew Flatt
76306744ba racket/port: possible repair for `read-bytes-evt'
Also restore and add some tests.

Merge to v5.3
(cherry picked from commit 70ef4e6e57)

Conflicts:
	collects/racket/port.rkt
2012-07-26 11:56:44 -04:00
Matthew Flatt
662ffe7b02 racket/port: fix `make-limited-input-port' handling of progress evts
Merge to v5.3
(cherry picked from commit ca3272bd45)

Conflicts:
	collects/racket/port.rkt
2012-07-26 11:52:10 -04:00
Matthew Flatt
c9d0319a11 add missing `super-new' from class100 conversion
Also, move relevant tests to a better place.

Merge to v5.3
(cherry picked from commit 289ae98c8e)
2012-07-24 12:28:32 -04:00
Matthew Flatt
214aeb4810 fix `subprocess' test
Merge to v5.3
(cherry picked from commit 22960b9c75)
2012-07-24 11:12:52 -04:00
Matthew Flatt
7ada2691b9 errortrace: fix profiling for phase >= 2 code
Closes PR 25050

Merge to v5.3
(cherry picked from commit 05495764ea)
2012-07-24 11:11:49 -04:00
Matthew Flatt
9b066fa1e4 fix `syntax-local-get-shadower' for submodules
Closes PR 12926, 12928

Merge to v5.3
(cherry picked from commit a0ba30d8e7)
2012-07-24 11:11:45 -04:00
James Swaine
b87b33da75 Add test to track performance of code inside a future over time
(cherry picked from commit ca360cdaed)
2012-07-24 11:11:41 -04:00
James Swaine
a79b122f5e Fix "dancing flags" issue with timeline ticks in future visualizer
(cherry picked from commit 6eed135d02)
2012-07-24 11:11:12 -04:00
James Swaine
57a4f9f2f3 Minor changes to future-visualizer/trace tests
(cherry picked from commit e4f50997ad)
2012-07-24 11:11:00 -04:00
James Swaine
10628ef0b9 Add unit tests for future-visualizer/trace
(cherry picked from commit 5214995967)
2012-07-24 11:10:54 -04:00
Matthew Flatt
ba09bf3541 fixes for submodules and `variable-reference->namespace'
Closes PR 12925

Merge to 5.3
(cherry picked from commit d95ec4d454)
2012-07-22 19:20:08 -04:00
Sam Tobin-Hochstadt
1832c2b712 Ensure that structs don't overlap with simple values.
Reported by Ray Racine.

Please merge to release.
(cherry picked from commit 4a90c6c1fe)
2012-07-20 15:29:47 -04:00
Matthew Flatt
fd7c2ad407 macro expander fix
Relevant to PR 12863

Merge to v5.3
(cherry picked from commit d3677524b8)
2012-07-20 14:33:36 -04:00
Matthew Flatt
51712648c3 another `namespace-attach-module' repair for submodules
Merge to v5.3
(cherry picked from commit a45d13b52a)
2012-07-20 14:32:59 -04:00
Robby Findler
f5ff23c00c bring back drscheme/private/number-snip.ss since it may
appear in saved wxme format files

also, improve the testing support for testing snip loading
(before this, the testing infrastructure could let one test
"leak" into another one in a way that could mask failures)

please include in release branch
(cherry picked from commit b342009e71)
2012-07-19 12:53:36 -04:00
Robby Findler
4e872ea198 fixed repl-test-misc.rkt for the error message changes
please include on the release branch
(cherry picked from commit ef5c2b825f)
2012-07-19 12:53:28 -04:00
Eli Barzilay
6e878f99fd Disable the #:before-first' and #:after-last' functionality in `add-between'.
Leave it working in splicing mode.  I prefer doing that over always
splicing them, since that would make a less uniform interface, so I
rather keep all options open.  There is no longer a `#:nothing' keyword,
which is the main point of this downgrade.

(See mailing list discussion on "no-argument" for the reason.)
(cherry picked from commit 6565538b09)
2012-07-19 12:53:20 -04:00
Robby Findler
7f96a5c228 module lang test now up to date with error message changes
please include in release branch
(cherry picked from commit 17594ec804)
2012-07-19 12:52:55 -04:00
Robby Findler
d53e53f837 adjusted the repl test suite for the new error messages
and the change to the racket/gui load-handler

(unfortunately, there is still another problem that keeps
the test suite from passing)

please merge to the release branch
(cherry picked from commit d8204b1624)
2012-07-19 12:52:50 -04:00
Robby Findler
4d15bcbaca bring the language test up to date with the latest error messages
include in the release branch, please
(cherry picked from commit 8744cd7811)
2012-07-19 12:52:43 -04:00
Ryan Culpepper
8992b82e04 Revert "Moved some mzlib library implementations to racket"
This reverts commit 403aaac7d4.

Conflicts:
	collects/racket/place.rkt
2012-07-19 12:51:14 -04:00
Ryan Culpepper
88a2382ecd Revert "Fix unit test broken by mzlib movement"
This reverts commit 3158acd61d.
2012-07-19 12:49:21 -04:00
Matthew Flatt
5e4866e54c fill in one more corner of submodules and `namespace-attach-module'
When submodules are not independently loaded, then pull submodule
declarations along when attaching a module to a namespace.
2012-07-17 10:16:32 -06:00
Matthew Flatt
c8f4ac6ae4 submodules: make .zo path stick for consistent independent loading
When a module is loaded from bytecode and then the value of
`use-compiled-file-paths' changes, an attempt to load a submodule
would fail, because source isn't used if the main module is
already declared, and the bytecode code is not used according to
`use-compiled-file-paths'. Make the bytecode path stick when it
is used once, so that submodule loads succeed, and make it work
even with `namespace-module-attach'.

The module-attach part of this protocol requires a change to the
API of a module name resolver: the notification mode gets two
arguments, instead of one, where the second argument is an
environment.
2012-07-17 09:47:05 -06:00
James Swaine
b987be068e Move racket/future/visualizer, racket/future/trace --> future-visualizer, future-visualizer/trace 2012-07-16 12:23:46 -05:00
Matthew Flatt
a605183a0a more submodule repairs for `raco exe' 2012-07-16 10:02:13 -06:00
Eric Dobson
9dac995e36 Fix things broken by bad rebasing. 2012-07-15 19:21:26 -04:00
Eric Dobson
1df6165e9f Clean up of typechecking for heterogeneous vectors and structs. 2012-07-15 19:21:26 -04:00
Eric Dobson
779291c795 Remove special cases for - and fx- in tc-app.rkt. 2012-07-15 19:21:26 -04:00
Matthew Flatt
55a8445b0b allow test to run if GL is unavailable 2012-07-15 10:36:36 -06:00
Matthew Flatt
73e901a262 fix optimizer bug
The lambda-lifting transformation needs to iterate to a fixpoint
where each lambda's added arguments and order are known. The
check for whether something changed was formerly just the number
of added arguments, but that's not good enough, because a binding
might get lifted away while another one acquires an extra argument.
The right test is to check the count and original bindings for the
added arguments.

Closes PR 12910
2012-07-15 10:32:45 -06:00
Sam Tobin-Hochstadt
8c659d50ed Properly handle quoted constants with bad expected types.
Closes PR 12874.
2012-07-14 23:06:13 -04:00
Sam Tobin-Hochstadt
1dca82784b Handle arbitrary recursive contracts generated from Rec types. 2012-07-14 22:45:08 -04:00
Sam Tobin-Hochstadt
2aaeec4520 Improve type of values when applied to one argument.
Closes PR 12846.
2012-07-14 22:45:08 -04:00
Sam Tobin-Hochstadt
ccf79943ab Fix special case for expected unions of vectors.
Closes PR 12845.
2012-07-14 21:56:44 -04:00
Sam Tobin-Hochstadt
2500dad8f1 Don't shortcut simple letrec forms that aren't lambdas.
Closes PR 12841.
2012-07-14 21:36:56 -04:00
Sam Tobin-Hochstadt
9e097866bf Vector fixes.
- Allow indexing into a VectorTop, with result `Any`.
- Don't use special typing rules for applications when the operator
  has an annotation or instantiation.

Closes PR 12887.
Closes PR 12888.
2012-07-14 21:30:26 -04:00
Sam Tobin-Hochstadt
f40c7f11a6 Mutable data at typed boundaries can't have flat contracts.
Closes PR 12884.
2012-07-14 20:43:35 -04:00
Matthew Flatt
e430463ea4 another submodule expansion repair
Relevant to PR 12902
2012-07-13 09:38:44 -06:00
Matthew Flatt
f729c6441c racket/draw: fix gl-context<%> locking
The optional arguments for `call-as-current' for `gl-context<%>'
were not implemented, and the locking implementation didn't match
the documentation in other ways.
2012-07-13 07:45:21 -06:00
Sam Tobin-Hochstadt
2dd9a43d1b Fix tests for new type name declaration. 2012-07-12 17:41:12 -04:00