]> git.lizzy.rs Git - rust.git/log
rust.git
11 years agoAdd spawn_conversation
Jesse Ruderman [Wed, 8 Aug 2012 20:38:26 +0000 (16:38 -0400)]
Add spawn_conversation

11 years agorustc: Strict enforcement of glue function types.
Elliott Slaughter [Mon, 6 Aug 2012 21:14:17 +0000 (14:14 -0700)]
rustc: Strict enforcement of glue function types.

Make all glue functions take values by alias to remove the need for
bitcasts at the top of every glue function. Use static type
information to produce the correct type for glue functions so that
LLVM can enforce the type system at call sites.

11 years agoIn decoder, rename class_member_id to item_def_id.
Michael Sullivan [Wed, 8 Aug 2012 18:46:06 +0000 (11:46 -0700)]
In decoder, rename class_member_id to item_def_id.

11 years agoxfail-pretty
Eric Holk [Wed, 8 Aug 2012 19:00:00 +0000 (12:00 -0700)]
xfail-pretty

11 years agoDon't add struct names to the value name space if there's no constructor
Tim Chevalier [Wed, 8 Aug 2012 18:52:23 +0000 (11:52 -0700)]
Don't add struct names to the value name space if there's no constructor

Closes #3149

11 years agoAdd a really optimistic fast path in receive. Gives about a 7% performance improvemen...
Eric Holk [Tue, 7 Aug 2012 23:54:00 +0000 (16:54 -0700)]
Add a really optimistic fast path in receive. Gives about a 7% performance improvement in msgsend-ring-pipes

11 years agoAdding some examples for my internship presentation.
Eric Holk [Tue, 7 Aug 2012 21:38:32 +0000 (14:38 -0700)]
Adding some examples for my internship presentation.

11 years agorefactor categorization out of borrowck into its own module.
Niko Matsakis [Wed, 8 Aug 2012 15:15:32 +0000 (08:15 -0700)]
refactor categorization out of borrowck into its own module.

first step towards #3148 and #3024.

11 years agoimprove borrowck error messages to explain regions better
Niko Matsakis [Wed, 8 Aug 2012 02:48:24 +0000 (19:48 -0700)]
improve borrowck error messages to explain regions better

11 years agonew test case demonstrating ability to return ptr to interior of option
Niko Matsakis [Tue, 7 Aug 2012 14:57:35 +0000 (07:57 -0700)]
new test case demonstrating ability to return ptr to interior of option

11 years agorustc: Resolve constructor expressions for variant structs
Patrick Walton [Wed, 8 Aug 2012 02:12:58 +0000 (19:12 -0700)]
rustc: Resolve constructor expressions for variant structs

11 years agorustc: Parse variant structs; add a trivial test case
Patrick Walton [Wed, 8 Aug 2012 01:54:44 +0000 (18:54 -0700)]
rustc: Parse variant structs; add a trivial test case

11 years agoAdd minor debug mode for measuring type sizes, helper for #3025.
Graydon Hoare [Wed, 8 Aug 2012 01:39:41 +0000 (18:39 -0700)]
Add minor debug mode for measuring type sizes, helper for #3025.

11 years agorustc: Box struct_defs
Patrick Walton [Wed, 8 Aug 2012 00:46:07 +0000 (17:46 -0700)]
rustc: Box struct_defs

11 years agoTranslate const structs.
Graydon Hoare [Wed, 8 Aug 2012 00:11:43 +0000 (17:11 -0700)]
Translate const structs.

11 years agoAdd 'static' to rust-mode.el.
Michael Sullivan [Tue, 7 Aug 2012 19:35:23 +0000 (12:35 -0700)]
Add 'static' to rust-mode.el.

11 years agoImplement static typeclass methods. Closes #3132.
Michael Sullivan [Thu, 2 Aug 2012 23:01:38 +0000 (16:01 -0700)]
Implement static typeclass methods. Closes #3132.

11 years agorustc: Cosmetic change to type_of to make control flow more obvious.
Elliott Slaughter [Tue, 7 Aug 2012 21:23:10 +0000 (14:23 -0700)]
rustc: Cosmetic change to type_of to make control flow more obvious.

11 years agorustc: Fix for type_of on recursive enum creating two types instead of one.
Elliott Slaughter [Tue, 7 Aug 2012 21:20:31 +0000 (14:20 -0700)]
rustc: Fix for type_of on recursive enum creating two types instead of one.

11 years agorustc: Move some more routines that operate on struct definitions out of line
Patrick Walton [Tue, 7 Aug 2012 23:46:19 +0000 (16:46 -0700)]
rustc: Move some more routines that operate on struct definitions out of line

11 years agolibsyntax: Break struct definitions out of classes internally in a few more places
Patrick Walton [Tue, 7 Aug 2012 23:08:09 +0000 (16:08 -0700)]
libsyntax: Break struct definitions out of classes internally in a few more places

11 years agoRegistor snapshots
Brian Anderson [Tue, 7 Aug 2012 23:03:58 +0000 (16:03 -0700)]
Registor snapshots

11 years agoTouch up semaphores; add another test
Ben Blum [Tue, 7 Aug 2012 22:42:33 +0000 (18:42 -0400)]
Touch up semaphores; add another test

11 years agolibsyntax: Allow users of the visitor to visit struct defs
Patrick Walton [Tue, 7 Aug 2012 22:54:59 +0000 (15:54 -0700)]
libsyntax: Allow users of the visitor to visit struct defs

11 years agorustc: Split out struct bodies into a separate "struct_def" type in the AST
Patrick Walton [Tue, 7 Aug 2012 22:34:07 +0000 (15:34 -0700)]
rustc: Split out struct bodies into a separate "struct_def" type in the AST

11 years agofix trailing whitespace
Ben Blum [Tue, 7 Aug 2012 22:20:02 +0000 (18:20 -0400)]
fix trailing whitespace

11 years agoAdd sync.rs with counting blocking semaphores
Ben Blum [Tue, 7 Aug 2012 22:03:30 +0000 (18:03 -0400)]
Add sync.rs with counting blocking semaphores

11 years agoRemove rust_cond_lock and sys::condition (rename to little_lock)
Ben Blum [Tue, 7 Aug 2012 18:42:30 +0000 (14:42 -0400)]
Remove rust_cond_lock and sys::condition (rename to little_lock)

11 years agoConst slices now work. Something odd about non-const cases though, see #3138.
Graydon Hoare [Tue, 7 Aug 2012 22:04:40 +0000 (15:04 -0700)]
Const slices now work. Something odd about non-const cases though, see #3138.

11 years agoAdd missing comma
Brian Anderson [Tue, 7 Aug 2012 21:34:00 +0000 (14:34 -0700)]
Add missing comma

11 years agorustc: Add stub support for struct variants to the AST
Patrick Walton [Tue, 7 Aug 2012 21:24:04 +0000 (14:24 -0700)]
rustc: Add stub support for struct variants to the AST

11 years agosyntax: Rename expr_alt to expr_match
Brian Anderson [Tue, 7 Aug 2012 20:35:51 +0000 (13:35 -0700)]
syntax: Rename expr_alt to expr_match

11 years agosyntax: Fix parsing of inherent traits
Brian Anderson [Tue, 7 Aug 2012 20:01:15 +0000 (13:01 -0700)]
syntax: Fix parsing of inherent traits

11 years agosyntax: Make match arm parsing more restrictive again
Brian Anderson [Tue, 7 Aug 2012 00:14:32 +0000 (17:14 -0700)]
syntax: Make match arm parsing more restrictive again

Require comma separators for all expression types except the plain block

11 years agoGenerate try_send versions for all the messages. Fixes #3128
Eric Holk [Tue, 7 Aug 2012 18:46:52 +0000 (11:46 -0700)]
Generate try_send versions for all the messages. Fixes #3128

11 years agoWorking on a macro for selecting from many pipes.
Eric Holk [Tue, 7 Aug 2012 17:14:35 +0000 (10:14 -0700)]
Working on a macro for selecting from many pipes.

11 years agoAdd a selectable implementation for *packet_header
Eric Holk [Tue, 7 Aug 2012 01:29:05 +0000 (18:29 -0700)]
Add a selectable implementation for *packet_header

11 years agoNifty macros for receiving from a protocol.
Eric Holk [Mon, 6 Aug 2012 21:51:53 +0000 (14:51 -0700)]
Nifty macros for receiving from a protocol.

11 years agoUse a proper protocol definition instead of the already-expanded code.
Eric Holk [Mon, 6 Aug 2012 21:34:53 +0000 (14:34 -0700)]
Use a proper protocol definition instead of the already-expanded code.

11 years agoChange task().future_result's argument mode
Ben Blum [Tue, 7 Aug 2012 18:26:03 +0000 (14:26 -0400)]
Change task().future_result's argument mode

11 years agoRework task::try for new task_builder interface (close #3103)
Ben Blum [Tue, 7 Aug 2012 18:17:24 +0000 (14:17 -0400)]
Rework task::try for new task_builder interface (close #3103)

11 years agoAdd util::ignore
Ben Blum [Tue, 7 Aug 2012 18:16:51 +0000 (14:16 -0400)]
Add util::ignore

11 years agoReindent some match exprs to agree with rust-mode.el
Lindsey Kuper [Tue, 7 Aug 2012 17:41:48 +0000 (10:41 -0700)]
Reindent some match exprs to agree with rust-mode.el

11 years agoComments, minor refactoring, clean up wording of error messages
Lindsey Kuper [Tue, 7 Aug 2012 16:45:32 +0000 (09:45 -0700)]
Comments, minor refactoring, clean up wording of error messages

11 years agoAdd Alex Rønne Petersen to AUTHORS.txt
Brian Anderson [Tue, 7 Aug 2012 16:24:18 +0000 (09:24 -0700)]
Add Alex Rønne Petersen to AUTHORS.txt

11 years agoMerge pull request #3126 from alexrp/incoming
Brian Anderson [Tue, 7 Aug 2012 16:20:06 +0000 (09:20 -0700)]
Merge pull request #3126 from alexrp/incoming

Fix typo in tutorial: 'retern' -> 'return'

11 years agoxfail-fast issue-2242
Niko Matsakis [Tue, 7 Aug 2012 14:15:47 +0000 (07:15 -0700)]
xfail-fast issue-2242

11 years agoadd lint mode for deprecated pattern usage
Niko Matsakis [Tue, 7 Aug 2012 14:14:44 +0000 (07:14 -0700)]
add lint mode for deprecated pattern usage

11 years agomove borrowck tests to use ref, fix a few exposed shortcomings
Niko Matsakis [Tue, 7 Aug 2012 13:04:36 +0000 (06:04 -0700)]
move borrowck tests to use ref, fix a few exposed shortcomings

11 years agoFix typo in tutorial: 'retern' -> 'return'
alexrp [Tue, 7 Aug 2012 07:56:15 +0000 (09:56 +0200)]
Fix typo in tutorial: 'retern' -> 'return'

11 years agotest: Modernize and un-XFAIL issue-2242-d.rs (issue #2242)
Patrick Walton [Tue, 7 Aug 2012 04:40:49 +0000 (21:40 -0700)]
test: Modernize and un-XFAIL issue-2242-d.rs (issue #2242)

11 years agotest: Add a dvec indexing operator test, which serves as a test for #2615 (cross...
Patrick Walton [Tue, 7 Aug 2012 04:30:57 +0000 (21:30 -0700)]
test: Add a dvec indexing operator test, which serves as a test for #2615 (cross-crate operator overloading).

11 years agoAuto-deref the base expr in trans_method_callee
Tim Chevalier [Tue, 7 Aug 2012 02:16:44 +0000 (19:16 -0700)]
Auto-deref the base expr in trans_method_callee

(specifically in the method_trait case) -- if you wrote x.f()
and x has type @T for a trait T, x wasn't getting auto-deref'ed.

This was bad.

Closes #2935

11 years agofirst shot at integrating ref/value bindings into borrowck
Niko Matsakis [Tue, 7 Aug 2012 01:14:46 +0000 (18:14 -0700)]
first shot at integrating ref/value bindings into borrowck
(more needed)

11 years agorustc: Parse and stub (broken) typechecking for bounded function types
Patrick Walton [Tue, 7 Aug 2012 01:54:20 +0000 (18:54 -0700)]
rustc: Parse and stub (broken) typechecking for bounded function types

11 years agoFix log_syntax of unexpanded code.
Paul Stansifer [Tue, 7 Aug 2012 00:50:45 +0000 (17:50 -0700)]
Fix log_syntax of unexpanded code.

11 years agoDisallow multiple constructors or destructors in the same class
Tim Chevalier [Tue, 7 Aug 2012 00:44:07 +0000 (17:44 -0700)]
Disallow multiple constructors or destructors in the same class

Closes #2825

11 years agorustc: Implement pattern matching for structs
Patrick Walton [Tue, 7 Aug 2012 00:01:14 +0000 (17:01 -0700)]
rustc: Implement pattern matching for structs

11 years agoShorten lines, fix build breakage
Tim Chevalier [Tue, 7 Aug 2012 00:33:23 +0000 (17:33 -0700)]
Shorten lines, fix build breakage

11 years agoMove some decoder code to the right place.
Michael Sullivan [Mon, 6 Aug 2012 20:13:18 +0000 (13:13 -0700)]
Move some decoder code to the right place.

11 years agoMake 100 generations perf test sensitive to spawn failures
Ben Blum [Mon, 6 Aug 2012 21:15:44 +0000 (17:15 -0400)]
Make 100 generations perf test sensitive to spawn failures

11 years agoIn resolve, forbid duplicate value, type, and module items
Tim Chevalier [Mon, 6 Aug 2012 23:10:56 +0000 (16:10 -0700)]
In resolve, forbid duplicate value, type, and module items

Closes #3099

11 years agos/alt/match/... again.
Niko Matsakis [Mon, 6 Aug 2012 23:16:08 +0000 (16:16 -0700)]
s/alt/match/... again.

11 years agos/alt/match/
Niko Matsakis [Mon, 6 Aug 2012 23:13:52 +0000 (16:13 -0700)]
s/alt/match/

11 years agoemacs: add match as keyword
Niko Matsakis [Mon, 6 Aug 2012 23:12:46 +0000 (16:12 -0700)]
emacs: add match as keyword

11 years agomake `ref x` bindings produce region ptrs and fix various minor bugs
Niko Matsakis [Mon, 6 Aug 2012 14:20:23 +0000 (07:20 -0700)]
make `ref x` bindings produce region ptrs and fix various minor bugs

we now detect inconsistent modes, binding names, and various other errors.
typeck/trans integration is mostly done.

borrowck not so much.

more tests needed.

11 years agoConvert alt to match. Stop parsing alt
Brian Anderson [Mon, 6 Aug 2012 19:34:08 +0000 (12:34 -0700)]
Convert alt to match. Stop parsing alt

11 years agostd: URL paths can contain dashes
Brian Anderson [Mon, 6 Aug 2012 22:17:08 +0000 (15:17 -0700)]
std: URL paths can contain dashes

11 years agocore: Rename task::osmain to platform_thread. #3090
Brian Anderson [Mon, 6 Aug 2012 21:07:37 +0000 (14:07 -0700)]
core: Rename task::osmain to platform_thread. #3090

11 years agoEnabling pingpong benchmark.
Eric Holk [Mon, 6 Aug 2012 20:17:35 +0000 (13:17 -0700)]
Enabling pingpong benchmark.

11 years agoHandle interpolated paths in pattern parsing. Fixes #3007.
Eric Holk [Mon, 6 Aug 2012 20:09:10 +0000 (13:09 -0700)]
Handle interpolated paths in pattern parsing. Fixes #3007.

We might need to use is_ident_or_path in a for other places too.

11 years agoFill out rust docs for pipes some more.
Eric Holk [Mon, 6 Aug 2012 17:33:31 +0000 (10:33 -0700)]
Fill out rust docs for pipes some more.

11 years agorustc: Implement functional record update for structs
Patrick Walton [Mon, 6 Aug 2012 20:15:40 +0000 (13:15 -0700)]
rustc: Implement functional record update for structs

11 years agostd: Parse underscores in url paths
Brian Anderson [Mon, 6 Aug 2012 20:12:49 +0000 (13:12 -0700)]
std: Parse underscores in url paths

11 years agoAdd a test for issue #2312
Brian Anderson [Mon, 6 Aug 2012 18:08:52 +0000 (11:08 -0700)]
Add a test for issue #2312

11 years agoAdd missing =>
Eric Holk [Mon, 6 Aug 2012 16:55:53 +0000 (09:55 -0700)]
Add missing =>

11 years agoRefcount tasks in packets to avoid races.
Eric Holk [Sat, 4 Aug 2012 01:57:43 +0000 (18:57 -0700)]
Refcount tasks in packets to avoid races.

Revert "Once again, revert "Use pipes in compiletest""

Fixes #3098

11 years agoMore documentation on pipes, and moving assert in runtime.
Eric Holk [Fri, 3 Aug 2012 22:20:38 +0000 (15:20 -0700)]
More documentation on pipes, and moving assert in runtime.

11 years agosyntax: Stop parsing alts without arrows
Brian Anderson [Mon, 6 Aug 2012 05:09:57 +0000 (22:09 -0700)]
syntax: Stop parsing alts without arrows

11 years agoSwitch alts to use arrows
Brian Anderson [Sat, 4 Aug 2012 02:59:04 +0000 (19:59 -0700)]
Switch alts to use arrows

11 years agodoc: Update for alt arrows
Brian Anderson [Mon, 6 Aug 2012 05:07:22 +0000 (22:07 -0700)]
doc: Update for alt arrows

11 years agostd: Some fixes to url parsing
Brian Anderson [Sun, 5 Aug 2012 23:33:28 +0000 (16:33 -0700)]
std: Some fixes to url parsing

11 years agostd: URLs without schemes parse as errors. Closes #3112
Brian Anderson [Sun, 5 Aug 2012 20:48:26 +0000 (13:48 -0700)]
std: URLs without schemes parse as errors. Closes #3112

11 years agoFix closure pretty-print tests
Brian Anderson [Sun, 5 Aug 2012 00:41:04 +0000 (17:41 -0700)]
Fix closure pretty-print tests

11 years agoxfail-fast run-pass/trait-composition-trivial
Brian Anderson [Sun, 5 Aug 2012 00:37:30 +0000 (17:37 -0700)]
xfail-fast run-pass/trait-composition-trivial

11 years agorustc: Normalize region-bounded string slices properly
Patrick Walton [Sat, 4 Aug 2012 22:11:54 +0000 (15:11 -0700)]
rustc: Normalize region-bounded string slices properly

This prevents an LLVM assertion that will bite you if you try to put a static
string in an Error.

11 years agoTranslate const vecs, most of const slices. More for #2317.
Graydon Hoare [Sat, 4 Aug 2012 04:44:42 +0000 (21:44 -0700)]
Translate const vecs, most of const slices. More for #2317.

11 years agorustc: Merge fn& and fn in favor of fn&.
Patrick Walton [Sat, 4 Aug 2012 02:49:12 +0000 (19:49 -0700)]
rustc: Merge fn& and fn in favor of fn&.

This is a step on the way to moving the function "proto" sigil out front.

11 years agorustc: Translate repeated vector syntax
Patrick Walton [Sat, 4 Aug 2012 01:48:17 +0000 (18:48 -0700)]
rustc: Translate repeated vector syntax

11 years agoImplement &-expressions in consts. Part of #2317.
Graydon Hoare [Sat, 4 Aug 2012 01:07:45 +0000 (18:07 -0700)]
Implement &-expressions in consts. Part of #2317.

11 years agorustc: Parse and typecheck repeating vector expressions; e.g. [ 0, ..512 ]
Patrick Walton [Sat, 4 Aug 2012 01:01:30 +0000 (18:01 -0700)]
rustc: Parse and typecheck repeating vector expressions; e.g. [ 0, ..512 ]

11 years agort: expose rust_task refcounts to rustland
Ben Blum [Sat, 4 Aug 2012 01:00:23 +0000 (21:00 -0400)]
rt: expose rust_task refcounts to rustland

11 years agoAdd task-perf-linked-failure.rs
Ben Blum [Fri, 3 Aug 2012 23:26:25 +0000 (19:26 -0400)]
Add task-perf-linked-failure.rs

11 years agoFurther work on default methods in traits.
Lindsey Kuper [Fri, 3 Aug 2012 23:01:19 +0000 (16:01 -0700)]
Further work on default methods in traits.

And some trait-related code cleanup in typeck::collect.

11 years agovim: don't hilight "any"
Ben Blum [Fri, 3 Aug 2012 22:38:44 +0000 (18:38 -0400)]
vim: don't hilight "any"

11 years agolibsyntax: Fix trailing whitespace
Patrick Walton [Fri, 3 Aug 2012 22:24:11 +0000 (15:24 -0700)]
libsyntax: Fix trailing whitespace

11 years agoXfailing until the pipe race is fixed.
Eric Holk [Fri, 3 Aug 2012 22:22:33 +0000 (15:22 -0700)]
Xfailing until the pipe race is fixed.

11 years agoOnce again, revert "Use pipes in compiletest"
Eric Holk [Fri, 3 Aug 2012 22:22:01 +0000 (15:22 -0700)]
Once again, revert "Use pipes in compiletest"

This reverts commit 1d04b0ed5ac829594a412298cb9f9455d1a4d843.

11 years agotest: Add a trivial test that trait composition parses
Patrick Walton [Fri, 3 Aug 2012 22:03:19 +0000 (15:03 -0700)]
test: Add a trivial test that trait composition parses

11 years agorustc: Parse, serialize, and deserialize trait inheritance
Patrick Walton [Fri, 3 Aug 2012 22:02:01 +0000 (15:02 -0700)]
rustc: Parse, serialize, and deserialize trait inheritance