]> git.lizzy.rs Git - rust.git/log
rust.git
12 years agoMerge branch 'master' of github.com:paulstansifer/rust
Paul Stansifer [Thu, 26 Jul 2012 23:16:12 +0000 (16:16 -0700)]
Merge branch 'master' of github.com:paulstansifer/rust

Conflicts:
mk/docs.mk
src/libsyntax/ext/base.rs

12 years agoRegister snapshots.
Paul Stansifer [Thu, 26 Jul 2012 22:31:21 +0000 (15:31 -0700)]
Register snapshots.

12 years agoMake parsing about 0.3 seconds faster.
Eric Holk [Thu, 26 Jul 2012 02:13:58 +0000 (19:13 -0700)]
Make parsing about 0.3 seconds faster.

12 years ago3x faster typechecking
Eric Holk [Thu, 26 Jul 2012 01:00:29 +0000 (18:00 -0700)]
3x faster typechecking

12 years agoAdd #[inline(never)], and also fixed inlining on vec::push
Eric Holk [Thu, 26 Jul 2012 00:29:34 +0000 (17:29 -0700)]
Add #[inline(never)], and also fixed inlining on vec::push

12 years agoChange `#macro` to `macro_rules!` in some cases.
Paul Stansifer [Thu, 26 Jul 2012 17:14:01 +0000 (10:14 -0700)]
Change `#macro` to `macro_rules!` in some cases.

12 years agoAllow old-style syntax extensions to be called with new syntax.
Paul Stansifer [Fri, 13 Jul 2012 00:59:59 +0000 (17:59 -0700)]
Allow old-style syntax extensions to be called with new syntax.

12 years agoFix asserts & short-read bug in isaac_seed (#2870)
Ben Blum [Wed, 25 Jul 2012 22:01:48 +0000 (18:01 -0400)]
Fix asserts & short-read bug in isaac_seed (#2870)

12 years agoFix os::env race (#2870)
Ben Blum [Wed, 25 Jul 2012 21:37:40 +0000 (17:37 -0400)]
Fix os::env race (#2870)

12 years agoMerge pull request #3014 from elliottslaughter/fix-failed-build-by-xfailing-tests
Graydon Hoare [Wed, 25 Jul 2012 21:50:02 +0000 (14:50 -0700)]
Merge pull request #3014 from elliottslaughter/fix-failed-build-by-xfailing-tests

Fix build by xfailing tests which produce irreducible CFGs.

12 years agoFix build by xfailing tests which produce irreducible CFGs.
Elliott Slaughter [Wed, 25 Jul 2012 21:42:37 +0000 (14:42 -0700)]
Fix build by xfailing tests which produce irreducible CFGs.

12 years agoPolymorphic protocols work well enough to do MapReduce.
Eric Holk [Wed, 25 Jul 2012 17:13:37 +0000 (10:13 -0700)]
Polymorphic protocols work well enough to do MapReduce.

I did some horrible things with type variable naming here. It should do the right thing in most cases, but we'll need to go through and make it correct someday.

12 years agoBounded protocols work well enough to compile core, but map reduce has too many type...
Eric Holk [Wed, 25 Jul 2012 01:00:08 +0000 (18:00 -0700)]
Bounded protocols work well enough to compile core, but map reduce has too many type parameters, so we have to get fancier.

12 years agoThread spans through the pipe compiler. They aren't perfect, but they make debugging...
Eric Holk [Tue, 24 Jul 2012 23:58:48 +0000 (16:58 -0700)]
Thread spans through the pipe compiler. They aren't perfect, but they make debugging far easier than core.rc:0:0.

Changed the is_bounded check, so we fail compiling core right now due to not supporting type parameters.

12 years agoMore purity to make it easier to borrow strings in format strings.
Eric Holk [Tue, 24 Jul 2012 19:11:29 +0000 (12:11 -0700)]
More purity to make it easier to borrow strings in format strings.

12 years agoAdded infrastructure to spin for a bit on recv. A spin count > 0 makes bench/pingpong...
Eric Holk [Tue, 24 Jul 2012 16:35:44 +0000 (09:35 -0700)]
Added infrastructure to spin for a bit on recv. A spin count > 0 makes bench/pingpong.rs about 10x faster, but makes msgsend-ring-pipes unbearably slow.

12 years agoAdded a benchmark of bounded vs unbounded. Bounded is 8-12% faster. The macros curren...
Eric Holk [Tue, 24 Jul 2012 05:14:43 +0000 (22:14 -0700)]
Added a benchmark of bounded vs unbounded. Bounded is 8-12% faster. The macros currently don't work without pretty printing first.

12 years agoCompiled a bounded version of pingpong.
Eric Holk [Tue, 24 Jul 2012 01:50:53 +0000 (18:50 -0700)]
Compiled a bounded version of pingpong.

There are some failures in the other pipe tests, but these seem to just be a matter of generalizing the library code.

Updating pipes library so all tests pass again

12 years agoGenerate buffer type for bounded protocols
Eric Holk [Mon, 23 Jul 2012 21:46:39 +0000 (14:46 -0700)]
Generate buffer type for bounded protocols

12 years agoRefactor the bounded pingpong example to avoid needing to generate unsafe code.
Eric Holk [Mon, 23 Jul 2012 20:50:12 +0000 (13:50 -0700)]
Refactor the bounded pingpong example to avoid needing to generate unsafe code.

Took some steps towards bounded codegen.

12 years agoAllow logging slices
Eric Holk [Mon, 23 Jul 2012 18:51:12 +0000 (11:51 -0700)]
Allow logging slices

12 years agoHand-written bounded pingpong implementation.
Eric Holk [Mon, 23 Jul 2012 18:28:38 +0000 (11:28 -0700)]
Hand-written bounded pingpong implementation.

12 years agoRefactoring pipes to allow implementing bounded protocols.
Eric Holk [Sat, 21 Jul 2012 02:06:32 +0000 (19:06 -0700)]
Refactoring pipes to allow implementing bounded protocols.

12 years agoStarted playing with macros to make receiving easier
Eric Holk [Wed, 18 Jul 2012 23:28:58 +0000 (16:28 -0700)]
Started playing with macros to make receiving easier

12 years agoTighten pipe exports, and refactor traits.
Eric Holk [Wed, 18 Jul 2012 22:03:46 +0000 (15:03 -0700)]
Tighten pipe exports, and refactor traits.

12 years ago(minor) remove config_notify from rustrt.def.in
Ben Blum [Wed, 25 Jul 2012 17:29:50 +0000 (13:29 -0400)]
(minor) remove config_notify from rustrt.def.in

12 years agominor rt cleanup
Ben Blum [Wed, 25 Jul 2012 17:24:00 +0000 (13:24 -0400)]
minor rt cleanup

12 years agoRemove notification channels in runtime (closes #1078)
Ben Blum [Wed, 25 Jul 2012 04:53:43 +0000 (00:53 -0400)]
Remove notification channels in runtime (closes #1078)

12 years agoHandle notification channels in task.rs
Ben Blum [Wed, 25 Jul 2012 04:47:25 +0000 (00:47 -0400)]
Handle notification channels in task.rs

12 years agoMerge pull request #3009 from elliottslaughter/utf8-idents-test-fix
Graydon Hoare [Wed, 25 Jul 2012 17:20:40 +0000 (10:20 -0700)]
Merge pull request #3009 from elliottslaughter/utf8-idents-test-fix

Fix test floating point comparison to tolerate imprecise FPUs.

12 years agoadjust deprecated_use not to warn about sugared closures
Niko Matsakis [Wed, 25 Jul 2012 17:19:28 +0000 (10:19 -0700)]
adjust deprecated_use not to warn about sugared closures

12 years agofix oversight in ty_decode.
Niko Matsakis [Wed, 25 Jul 2012 16:19:59 +0000 (09:19 -0700)]
fix oversight in ty_decode.

I thought this case would not come up.

12 years agoadd new deprecated_mode lint pass
Niko Matsakis [Wed, 25 Jul 2012 13:41:56 +0000 (06:41 -0700)]
add new deprecated_mode lint pass

It will warn you if you use the default mode for something that
is expensive to copy, and it will warn you if you use any explicit
mode other than copy.  So you should migrate over to using the
default mode for most things (and borrowed pointers when you don't
want to copy) and copy mode for things you really wanted to copy.

12 years agoavoid capture of bound regions when infering types for closure
Niko Matsakis [Tue, 24 Jul 2012 23:23:23 +0000 (16:23 -0700)]
avoid capture of bound regions when infering types for closure
expressions. cc #2981

12 years agocomment various region-related things better
Niko Matsakis [Tue, 24 Jul 2012 15:12:15 +0000 (08:12 -0700)]
comment various region-related things better

12 years agomake unique pointers inherit mutability from owner
Niko Matsakis [Fri, 20 Jul 2012 23:37:45 +0000 (16:37 -0700)]
make unique pointers inherit mutability from owner

12 years agofrom_fn and ref_set do not require copy bound
Niko Matsakis [Fri, 20 Jul 2012 23:37:06 +0000 (16:37 -0700)]
from_fn and ref_set do not require copy bound

12 years agorange() is pure
Niko Matsakis [Fri, 20 Jul 2012 23:36:42 +0000 (16:36 -0700)]
range() is pure

12 years agocorrect treatment of mutability for deref'd components
Niko Matsakis [Fri, 20 Jul 2012 03:13:00 +0000 (20:13 -0700)]
correct treatment of mutability for deref'd components

Fixes #2980

12 years agovim: Highlight "struct"
Patrick Walton [Wed, 25 Jul 2012 04:09:42 +0000 (21:09 -0700)]
vim: Highlight "struct"

12 years agorust_cond_lock acquire/release should be inside the atomically { .. }
Ben Blum [Wed, 25 Jul 2012 00:28:30 +0000 (20:28 -0400)]
rust_cond_lock acquire/release should be inside the atomically { .. }

12 years agoAdd 2-degree familial relations linked failure tests & fix secondborn behaviour
Ben Blum [Wed, 25 Jul 2012 00:18:11 +0000 (20:18 -0400)]
Add 2-degree familial relations linked failure tests & fix secondborn behaviour

12 years agoRemove rustllvm functions which have moved upstream.
Elliott Slaughter [Mon, 25 Jun 2012 16:54:12 +0000 (09:54 -0700)]
Remove rustllvm functions which have moved upstream.

12 years agoBump LLVM, clang and compiler-rt, integrating eds' work.
Graydon Hoare [Tue, 24 Jul 2012 23:42:11 +0000 (16:42 -0700)]
Bump LLVM, clang and compiler-rt, integrating eds' work.

12 years agoOnly initialize targets that are actually supported / linked to in RustWrapper
Zack Corr [Sat, 21 Jul 2012 07:20:45 +0000 (17:20 +1000)]
Only initialize targets that are actually supported / linked to in RustWrapper

12 years agoAllow 3.0, 3.1, 3.0svn and 3.1svn for llvm-root
Zack Corr [Sat, 21 Jul 2012 06:10:04 +0000 (16:10 +1000)]
Allow 3.0, 3.1, 3.0svn and 3.1svn for llvm-root

12 years agoAdd core::hash containing SipHash-2-4 implementation. Re: #1616 and #859.
Graydon Hoare [Tue, 24 Jul 2012 21:32:06 +0000 (14:32 -0700)]
Add core::hash containing SipHash-2-4 implementation. Re: #1616 and #859.

12 years agorustc: Write impl attributes into the metadata
Patrick Walton [Wed, 25 Jul 2012 00:06:32 +0000 (17:06 -0700)]
rustc: Write impl attributes into the metadata

12 years agotest: Add a max/min classes test case
Patrick Walton [Tue, 24 Jul 2012 23:39:26 +0000 (16:39 -0700)]
test: Add a max/min classes test case

12 years agorustc: Parse new-style impl declarations
Patrick Walton [Tue, 24 Jul 2012 23:38:24 +0000 (16:38 -0700)]
rustc: Parse new-style impl declarations

12 years agoFix test floating point comparison to tolerate imprecise FPUs.
Elliott Slaughter [Tue, 24 Jul 2012 22:48:18 +0000 (15:48 -0700)]
Fix test floating point comparison to tolerate imprecise FPUs.

12 years agorustc: Don't require that structs have constructors
Patrick Walton [Tue, 24 Jul 2012 22:29:14 +0000 (15:29 -0700)]
rustc: Don't require that structs have constructors

12 years agoChange yield() and wait_event() to be MUST_CHECK and return the killed flag. (closes...
Ben Blum [Tue, 24 Jul 2012 22:22:44 +0000 (18:22 -0400)]
Change yield() and wait_event() to be MUST_CHECK and return the killed flag. (closes #2875)

12 years agoChange task linked failure interface in manual
Ben Blum [Tue, 24 Jul 2012 22:04:26 +0000 (18:04 -0400)]
Change task linked failure interface in manual

12 years agoFix xfail comment
Eric Holk [Tue, 24 Jul 2012 21:56:59 +0000 (14:56 -0700)]
Fix xfail comment

12 years agoTest case for #3005
Eric Holk [Tue, 24 Jul 2012 21:55:38 +0000 (14:55 -0700)]
Test case for #3005

12 years agotiny runtime cleanup
Ben Blum [Tue, 24 Jul 2012 21:35:08 +0000 (17:35 -0400)]
tiny runtime cleanup

12 years agoRemove unsupervise
Ben Blum [Tue, 24 Jul 2012 21:31:43 +0000 (17:31 -0400)]
Remove unsupervise

12 years agotask.rs remove old builder interface
Ben Blum [Tue, 24 Jul 2012 20:45:49 +0000 (16:45 -0400)]
task.rs remove old builder interface

12 years agoAdd option::unwrap_expect
Ben Blum [Tue, 24 Jul 2012 19:46:40 +0000 (15:46 -0400)]
Add option::unwrap_expect

12 years agoFix more windows breakage.
Graydon Hoare [Tue, 24 Jul 2012 21:08:12 +0000 (14:08 -0700)]
Fix more windows breakage.

12 years agorustc: Translate struct literals
Patrick Walton [Tue, 24 Jul 2012 20:58:46 +0000 (13:58 -0700)]
rustc: Translate struct literals

12 years agoFix windows breakage.
Graydon Hoare [Tue, 24 Jul 2012 20:53:15 +0000 (13:53 -0700)]
Fix windows breakage.

12 years agoMerge pull request #3003 from elliottslaughter/free-cant-fail
Graydon Hoare [Tue, 24 Jul 2012 20:49:24 +0000 (13:49 -0700)]
Merge pull request #3003 from elliottslaughter/free-cant-fail

Don't emit invoke instructions inside landing pads.

12 years agoFix whitespace.
Graydon Hoare [Tue, 24 Jul 2012 20:21:25 +0000 (13:21 -0700)]
Fix whitespace.

12 years agoUpdate some str functions to slices, merge as_buf and unpack_slice.
Graydon Hoare [Tue, 24 Jul 2012 19:35:34 +0000 (12:35 -0700)]
Update some str functions to slices, merge as_buf and unpack_slice.

12 years agoAdd 'do atomically { .. }' for exclusives
Ben Blum [Tue, 24 Jul 2012 19:27:45 +0000 (15:27 -0400)]
Add 'do atomically { .. }' for exclusives

12 years agoDon't emit invoke instructions inside landing pads.
Elliott Slaughter [Mon, 23 Jul 2012 23:00:19 +0000 (16:00 -0700)]
Don't emit invoke instructions inside landing pads.

We can't throw an exception from inside a landing pad without
corrupting the exception handler, so we have no hope of dealing with
these exceptions anyway. See:

http://llvm.org/docs/ExceptionHandling.html#cleanups

Part of #2861.

12 years agoBugfix: enable transcription to deal with zero-repetition cases.
Paul Stansifer [Tue, 24 Jul 2012 18:44:32 +0000 (11:44 -0700)]
Bugfix: enable transcription to deal with zero-repetition cases.

12 years agoImprove an error message a little.
Paul Stansifer [Tue, 24 Jul 2012 18:44:17 +0000 (11:44 -0700)]
Improve an error message a little.

12 years agoBugfix: make the parser handle the case where zero repetitions occur, by handling...
Paul Stansifer [Mon, 23 Jul 2012 22:34:43 +0000 (15:34 -0700)]
Bugfix: make the parser handle the case where zero repetitions occur, by handling parse results on the basis of what names the matcher expects to bind, not on what names are actually bound.

12 years agoAdd `5.timesi() |idx| { ... }`
Paul Stansifer [Fri, 20 Jul 2012 22:33:18 +0000 (15:33 -0700)]
Add `5.timesi() |idx| { ... }`

12 years agoMake rustdoc deal with macros. Rustdoc still fails, though; we think it needs to...
Paul Stansifer [Wed, 18 Jul 2012 01:32:04 +0000 (18:32 -0700)]
Make rustdoc deal with macros. Rustdoc still fails, though; we think it needs to do an unparallelized, non-failure-ignoring resolve.

12 years agorustc: Typecheck struct literals
Patrick Walton [Tue, 24 Jul 2012 18:27:37 +0000 (11:27 -0700)]
rustc: Typecheck struct literals

12 years agoImport reader_util
Eric Holk [Tue, 24 Jul 2012 17:51:30 +0000 (10:51 -0700)]
Import reader_util

12 years agoTypos in tutorial
Tim Chevalier [Tue, 24 Jul 2012 16:42:58 +0000 (09:42 -0700)]
Typos in tutorial

12 years agorustc: Resolve struct names in struct literals
Patrick Walton [Tue, 24 Jul 2012 01:44:59 +0000 (18:44 -0700)]
rustc: Resolve struct names in struct literals

12 years agosyntax: Expect the closing brace after struct literals
Patrick Walton [Tue, 24 Jul 2012 01:49:34 +0000 (18:49 -0700)]
syntax: Expect the closing brace after struct literals

12 years agocall task::yield in comm::peek
Ted Horst [Wed, 18 Jul 2012 04:13:11 +0000 (23:13 -0500)]
call task::yield in comm::peek

12 years agoAdd to_str for hashmap.
Glenn Willen [Fri, 13 Jul 2012 07:01:26 +0000 (03:01 -0400)]
Add to_str for hashmap.

12 years agoSwitch reader to work with preallocated vecs
Erick Tryzelaar [Sat, 21 Jul 2012 04:49:20 +0000 (21:49 -0700)]
Switch reader to work with preallocated vecs

This closes #2901.

12 years agotests: Rename to avoid colliding with real rust-zmq.
Erick Tryzelaar [Sat, 21 Jul 2012 03:40:47 +0000 (20:40 -0700)]
tests: Rename to avoid colliding with real rust-zmq.

12 years agolibcore: whitespace cleanup.
Erick Tryzelaar [Sat, 21 Jul 2012 02:20:23 +0000 (19:20 -0700)]
libcore: whitespace cleanup.

12 years agolibcore: add vec memcpy and memmove fns
Erick Tryzelaar [Sat, 21 Jul 2012 02:20:13 +0000 (19:20 -0700)]
libcore: add vec memcpy and memmove fns

12 years agolibcore: add vec::{mut_view, const_view}.
Erick Tryzelaar [Sat, 21 Jul 2012 02:19:44 +0000 (19:19 -0700)]
libcore: add vec::{mut_view, const_view}.

12 years agolibcore: Modernize a docstring
Erick Tryzelaar [Sat, 21 Jul 2012 02:18:41 +0000 (19:18 -0700)]
libcore: Modernize a docstring

12 years agoConvert std::test to new task_builder interface
Ben Blum [Tue, 24 Jul 2012 00:00:43 +0000 (20:00 -0400)]
Convert std::test to new task_builder interface

12 years agoConvert bench and run-pass tests to new task_builder interface
Ben Blum [Mon, 23 Jul 2012 23:58:47 +0000 (19:58 -0400)]
Convert bench and run-pass tests to new task_builder interface

12 years agoConvert os/priv/uv to new task_builder interface
Ben Blum [Mon, 23 Jul 2012 23:53:22 +0000 (19:53 -0400)]
Convert os/priv/uv to new task_builder interface

12 years agoGet rid of task::future_task
Ben Blum [Mon, 23 Jul 2012 23:40:25 +0000 (19:40 -0400)]
Get rid of task::future_task

12 years agoAdd task::task_builder interface for improved spawning (related #2585)
Ben Blum [Mon, 23 Jul 2012 23:27:44 +0000 (19:27 -0400)]
Add task::task_builder interface for improved spawning (related #2585)

12 years agoMerge pull request #2998 from elliottslaughter/no-landing-pads
Graydon Hoare [Mon, 23 Jul 2012 23:47:35 +0000 (16:47 -0700)]
Merge pull request #2998 from elliottslaughter/no-landing-pads

Add debug flag to turn off landing pads.

12 years agorustc: Max/min classes: Add struct literal syntax
Patrick Walton [Mon, 23 Jul 2012 23:39:18 +0000 (16:39 -0700)]
rustc: Max/min classes: Add struct literal syntax

12 years agoAdding simple net::url module to parse and format urls.
Daniel Patterson [Mon, 9 Jul 2012 18:08:07 +0000 (14:08 -0400)]
Adding simple net::url module to parse and format urls.

12 years agoAdd Damian Gryski to AUTHORS
Tim Chevalier [Mon, 23 Jul 2012 21:43:11 +0000 (14:43 -0700)]
Add Damian Gryski to AUTHORS

12 years agoMerge pull request #3000 from dgryski/master
Tim Chevalier [Mon, 23 Jul 2012 21:39:08 +0000 (14:39 -0700)]
Merge pull request #3000 from dgryski/master

Fix formatting of multiline code blocks in asm-comments

12 years agoOops, xfail-win32 task-killjoin-rsrc
Ben Blum [Mon, 23 Jul 2012 21:35:28 +0000 (17:35 -0400)]
Oops, xfail-win32 task-killjoin-rsrc

12 years agoFix formatting of multi-line blocks in asm-comments
Damian Gryski [Mon, 23 Jul 2012 21:18:12 +0000 (23:18 +0200)]
Fix formatting of multi-line blocks in asm-comments

12 years agosyntax: Remove reference to typestate in a comment
Patrick Walton [Mon, 23 Jul 2012 20:24:58 +0000 (13:24 -0700)]
syntax: Remove reference to typestate in a comment

12 years agorustc: Make vtables use the coherence tables
Patrick Walton [Mon, 23 Jul 2012 17:11:10 +0000 (10:11 -0700)]
rustc: Make vtables use the coherence tables