]> git.lizzy.rs Git - rust.git/log
rust.git
11 years agoconfigure: force clang when on freebsd.
Graydon Hoare [Wed, 14 Nov 2012 22:27:45 +0000 (14:27 -0800)]
configure: force clang when on freebsd.

11 years agoRevert "Convert libstd to use the Drop trait"
Brian Anderson [Wed, 14 Nov 2012 22:51:16 +0000 (14:51 -0800)]
Revert "Convert libstd to use the Drop trait"

This reverts commit 28c7a251514919a2d7bdf6c67b8edf5eed9043db.

11 years agorustc: Only strip out the main function when generating test executable, not lib
Brian Anderson [Wed, 7 Nov 2012 20:19:50 +0000 (12:19 -0800)]
rustc: Only strip out the main function when generating test executable, not lib

11 years agorustc: Generate test code when in the 'test' config
Brian Anderson [Wed, 7 Nov 2012 07:26:44 +0000 (23:26 -0800)]
rustc: Generate test code when in the 'test' config

11 years agoConvert libstd to use the Drop trait
Ben Striegel [Wed, 14 Nov 2012 02:38:18 +0000 (21:38 -0500)]
Convert libstd to use the Drop trait

11 years agoMove two fn assignability tests from compile-fail to run-pass
Brian Anderson [Wed, 14 Nov 2012 20:40:23 +0000 (12:40 -0800)]
Move two fn assignability tests from compile-fail to run-pass

11 years agoLong lines
Brian Anderson [Wed, 14 Nov 2012 19:49:59 +0000 (11:49 -0800)]
Long lines

11 years agoRemove obsolete const pattern test
Brian Anderson [Wed, 14 Nov 2012 19:43:28 +0000 (11:43 -0800)]
Remove obsolete const pattern test

11 years agolibrustc: Require the #[derivable] attribute, remove the significance of "impl Foo...
Patrick Walton [Wed, 14 Nov 2012 03:08:01 +0000 (19:08 -0800)]
librustc: Require the #[derivable] attribute, remove the significance of "impl Foo : Bar;", and allow only a subset of methods in a trait to be derived. r=brson

11 years agorustc: Implement let assignability. r=nmatsakis
Patrick Walton [Tue, 13 Nov 2012 22:07:26 +0000 (14:07 -0800)]
rustc: Implement let assignability. r=nmatsakis

11 years agorustc: Allow constants to be used in patterns. r=nmatsakis
Patrick Walton [Tue, 13 Nov 2012 06:10:15 +0000 (22:10 -0800)]
rustc: Allow constants to be used in patterns. r=nmatsakis

11 years agoTools should not be build prereqs of tests. Closes #3946
Brian Anderson [Tue, 13 Nov 2012 21:32:49 +0000 (13:32 -0800)]
Tools should not be build prereqs of tests. Closes #3946

11 years agolibrustc: Stop reexporting all of core in every crate. rs=really-bad-bug
Patrick Walton [Tue, 13 Nov 2012 23:43:54 +0000 (15:43 -0800)]
librustc: Stop reexporting all of core in every crate. rs=really-bad-bug

11 years agowhitespace police 2
Graydon Hoare [Tue, 13 Nov 2012 19:30:37 +0000 (11:30 -0800)]
whitespace police 2

11 years agowhitespace police
Graydon Hoare [Tue, 13 Nov 2012 19:16:19 +0000 (11:16 -0800)]
whitespace police

11 years agorustc: fix pp build breakage.
Graydon Hoare [Tue, 13 Nov 2012 18:53:45 +0000 (10:53 -0800)]
rustc: fix pp build breakage.

11 years agoAdd Chris Pressey to AUTHORS.txt
Brian Anderson [Tue, 13 Nov 2012 18:47:23 +0000 (10:47 -0800)]
Add Chris Pressey to AUTHORS.txt

11 years agolibrustc: Implement deriving with a unit return type. r=tjc
Patrick Walton [Tue, 13 Nov 2012 01:38:41 +0000 (17:38 -0800)]
librustc: Implement deriving with a unit return type. r=tjc

11 years agorustc: add new token-tree based quasiquoter.
Graydon Hoare [Fri, 9 Nov 2012 01:00:55 +0000 (17:00 -0800)]
rustc: add new token-tree based quasiquoter.

11 years agorustc: Remove the case of foo![...] as invocation syntax. foo!(...) and foo!{......
Graydon Hoare [Wed, 7 Nov 2012 23:30:28 +0000 (15:30 -0800)]
rustc: Remove the case of foo![...] as invocation syntax. foo!(...) and foo!{...} only.

11 years agoRevert "`m1!{...}` is now forbidden. Use `m1!(...)` instead."
Graydon Hoare [Wed, 7 Nov 2012 23:16:58 +0000 (15:16 -0800)]
Revert "`m1!{...}` is now forbidden. Use `m1!(...)` instead."

This reverts commit 89bbaff84fed6e6796c82f5a9fd200e693d47beb.

11 years agocleanup: convert some remaining #foo invocations to foo! form.
Graydon Hoare [Wed, 7 Nov 2012 21:41:02 +0000 (13:41 -0800)]
cleanup: convert some remaining #foo invocations to foo! form.

11 years agorustc: Make static methods not leak out of traits. r=brson
Patrick Walton [Mon, 12 Nov 2012 20:15:08 +0000 (12:15 -0800)]
rustc: Make static methods not leak out of traits. r=brson

11 years agoMerge remote-tracking branch 'catseye/tutorial-grammar-fixes'
Brian Anderson [Tue, 13 Nov 2012 02:09:20 +0000 (18:09 -0800)]
Merge remote-tracking branch 'catseye/tutorial-grammar-fixes'

11 years agoMerge pull request #3954 from burg/result-chain
Brian Anderson [Tue, 13 Nov 2012 02:05:29 +0000 (18:05 -0800)]
Merge pull request #3954 from burg/result-chain

Fix Result::chain, Result::chain_err to not require Copy bounds.

11 years agoFix Result::chain, Result::chain_err to not require Copy bounds.
Brian J. Burg [Tue, 13 Nov 2012 01:53:08 +0000 (17:53 -0800)]
Fix Result::chain, Result::chain_err to not require Copy bounds.

11 years agorustc: Implement floating point literal inference. r=nmatsakis
Patrick Walton [Thu, 8 Nov 2012 02:40:34 +0000 (18:40 -0800)]
rustc: Implement floating point literal inference. r=nmatsakis

11 years agoMinor grammatical edits; use preferred nomenclature consistently.
Cat's Eye Technologies [Sun, 11 Nov 2012 16:19:40 +0000 (16:19 +0000)]
Minor grammatical edits; use preferred nomenclature consistently.

11 years agoAdd a test for multiple main functions
Brian Anderson [Wed, 7 Nov 2012 20:30:51 +0000 (12:30 -0800)]
Add a test for multiple main functions

11 years agoxfail-fast run-pass/pub-use-xcrate
Brian Anderson [Fri, 9 Nov 2012 03:02:25 +0000 (19:02 -0800)]
xfail-fast run-pass/pub-use-xcrate

11 years agostd: Eliminate copy warning
Brian Anderson [Fri, 9 Nov 2012 01:14:02 +0000 (17:14 -0800)]
std: Eliminate copy warning

11 years agoWhitespace
Brian Anderson [Fri, 9 Nov 2012 01:11:44 +0000 (17:11 -0800)]
Whitespace

11 years agorustc: Fix cross-crate reexports. #3908. r=pcwalton
Brian Anderson [Fri, 9 Nov 2012 00:52:21 +0000 (16:52 -0800)]
rustc: Fix cross-crate reexports. #3908. r=pcwalton

11 years agoChange option::expect to not require a Copy bound, and move instead.
Brian J. Burg [Fri, 9 Nov 2012 00:25:22 +0000 (16:25 -0800)]
Change option::expect to not require a Copy bound, and move instead.

11 years agoMerge pull request #3923 from am0d/master
Brian Anderson [Thu, 8 Nov 2012 20:35:14 +0000 (12:35 -0800)]
Merge pull request #3923 from am0d/master

Fixes issue #3891

11 years agoAttempt to fix tools.mk under cross-compile
Brian Anderson [Thu, 8 Nov 2012 03:47:24 +0000 (19:47 -0800)]
Attempt to fix tools.mk under cross-compile

11 years agoFix whitespace issues from previous commits.
a_m0d [Thu, 8 Nov 2012 04:49:01 +0000 (23:49 -0500)]
Fix whitespace issues from previous commits.

Also added test for #3891.

11 years agorustc: Support irrefutable patterns in function arguments. r=nmatsakis
Patrick Walton [Wed, 7 Nov 2012 02:41:06 +0000 (18:41 -0800)]
rustc: Support irrefutable patterns in function arguments. r=nmatsakis

11 years agorustc: Autovivify modules even when a type def is present in resolve. Closes #3931...
Patrick Walton [Wed, 7 Nov 2012 22:27:07 +0000 (14:27 -0800)]
rustc: Autovivify modules even when a type def is present in resolve. Closes #3931. rs=nasty-bug

11 years agoFix make install rules for new libraries
Brian Anderson [Wed, 7 Nov 2012 22:05:37 +0000 (14:05 -0800)]
Fix make install rules for new libraries

11 years agoFix install target for new libraries
Brian Anderson [Wed, 7 Nov 2012 08:45:42 +0000 (00:45 -0800)]
Fix install target for new libraries

11 years agoRename src/rustc to src/librustc. Use the driver crate
Brian Anderson [Wed, 7 Nov 2012 03:44:58 +0000 (19:44 -0800)]
Rename src/rustc to src/librustc. Use the driver crate

11 years agorustc: Long lines
Patrick Walton [Wed, 7 Nov 2012 21:48:09 +0000 (13:48 -0800)]
rustc: Long lines

11 years agorustc: Implement the Drop trait. r=brson
Patrick Walton [Tue, 6 Nov 2012 01:50:01 +0000 (17:50 -0800)]
rustc: Implement the Drop trait. r=brson

11 years agolibstd: Implement a thread pool. r=brson
Patrick Walton [Thu, 1 Nov 2012 01:29:44 +0000 (18:29 -0700)]
libstd: Implement a thread pool. r=brson

11 years agoMerge pull request #3932 from z0w0/mutptr
Brian Anderson [Wed, 7 Nov 2012 06:56:12 +0000 (22:56 -0800)]
Merge pull request #3932 from z0w0/mutptr

Implement Ptr trait for mutable unsafe pointers. Closes #3926.

11 years agoImplement Ptr trait for mutable unsafe pointers. Closes #3926.
Zack Corr [Wed, 7 Nov 2012 06:24:29 +0000 (16:24 +1000)]
Implement Ptr trait for mutable unsafe pointers. Closes #3926.

11 years agorustc: reuse const vals, translate fn paths as consts. Close #2530.
Graydon Hoare [Wed, 7 Nov 2012 01:13:52 +0000 (17:13 -0800)]
rustc: reuse const vals, translate fn paths as consts. Close #2530.

11 years agoFix trailing whitespace issues
a_m0d [Wed, 7 Nov 2012 00:16:01 +0000 (19:16 -0500)]
Fix trailing whitespace issues

11 years agoAdd end_of_file handling to TcpBufferedSocket.
a_m0d [Fri, 2 Nov 2012 03:29:46 +0000 (23:29 -0400)]
Add end_of_file handling to TcpBufferedSocket.

This fixes #3891.

Also removed debug!(...) statement from socket destructor which causes a
crash when the logging level is set to debug.

11 years agoCleanup how we handle proto in types, remove unsound subtyping
Niko Matsakis [Mon, 5 Nov 2012 04:41:00 +0000 (20:41 -0800)]
Cleanup how we handle proto in types, remove unsound subtyping

Fixes #1896 which was never truly fixed, just masked.
The given tests would have failed had they used `~fn()` and
not `@fn()`.  They now result in compilation errors.

Fixes #2978.

Necessary first step for #2202, #2263.

11 years agort: Remove shape code
Brian Anderson [Mon, 5 Nov 2012 21:43:32 +0000 (13:43 -0800)]
rt: Remove shape code

11 years agorustc: Stop declaring unused upcalls
Brian Anderson [Mon, 5 Nov 2012 20:36:53 +0000 (12:36 -0800)]
rustc: Stop declaring unused upcalls

11 years agorustc: Implement deriving involving generic bounded traits. r=brson
Patrick Walton [Fri, 2 Nov 2012 23:03:47 +0000 (16:03 -0700)]
rustc: Implement deriving involving generic bounded traits. r=brson

11 years agorustc: Implement parsing and typechecking for "once fn"
Patrick Walton [Fri, 2 Nov 2012 20:33:51 +0000 (13:33 -0700)]
rustc: Implement parsing and typechecking for "once fn"

11 years agoMake std::rl unsafe. #3921
Brian Anderson [Mon, 5 Nov 2012 19:20:44 +0000 (11:20 -0800)]
Make std::rl unsafe. #3921

11 years agoMerge pull request #3919 from dbp/install-fix
Brian Anderson [Mon, 5 Nov 2012 04:38:05 +0000 (20:38 -0800)]
Merge pull request #3919 from dbp/install-fix

make: change to LIB prefixed for fuzzer, carge, rustdoc, rusti uninstall

11 years agomake: change to LIB prefixed for fuzzer, carge, rustdoc, rusti uninstall
Daniel Patterson [Mon, 5 Nov 2012 04:33:50 +0000 (23:33 -0500)]
make: change to LIB prefixed for fuzzer, carge, rustdoc, rusti uninstall

11 years agorusti: main must be public
Brian Anderson [Mon, 5 Nov 2012 01:51:57 +0000 (17:51 -0800)]
rusti: main must be public

11 years agorusti's crate type is 'lib'
Brian Anderson [Mon, 5 Nov 2012 01:48:47 +0000 (17:48 -0800)]
rusti's crate type is 'lib'

11 years agoFix rusti check targets some more
Brian Anderson [Mon, 5 Nov 2012 01:25:46 +0000 (17:25 -0800)]
Fix rusti check targets some more

11 years agoAdd missing rusti check targets
Brian Anderson [Mon, 5 Nov 2012 01:17:04 +0000 (17:17 -0800)]
Add missing rusti check targets

11 years agoLibrarify rusti, etc.
Brian Anderson [Mon, 5 Nov 2012 00:22:05 +0000 (16:22 -0800)]
Librarify rusti, etc.

11 years agoFix tidy for new linenoise
Brian Anderson [Sun, 4 Nov 2012 22:35:04 +0000 (14:35 -0800)]
Fix tidy for new linenoise

11 years agoUse 0.5 crates in rusti
Brian Anderson [Sun, 4 Nov 2012 22:16:13 +0000 (14:16 -0800)]
Use 0.5 crates in rusti

11 years agoLong lines
Brian Anderson [Sun, 4 Nov 2012 22:06:51 +0000 (14:06 -0800)]
Long lines

11 years agoMerge remote-tracking branch 'brson/repl'
Brian Anderson [Sun, 4 Nov 2012 21:42:39 +0000 (13:42 -0800)]
Merge remote-tracking branch 'brson/repl'

Conflicts:
mk/install.mk
src/rt/rustrt.def.in

11 years agoUse a linenoise with win32 support
Brian Anderson [Sun, 4 Nov 2012 21:23:41 +0000 (13:23 -0800)]
Use a linenoise with win32 support

11 years agoMerge pull request #3916 from Dretch/iofix
Brian Anderson [Sun, 4 Nov 2012 20:51:34 +0000 (12:51 -0800)]
Merge pull request #3916 from Dretch/iofix

More methods/docs/tests for core::io

11 years agoAdd more doc-comments for Reader, ReaderUtil, Writer and WriterUtil (loosely associat...
Gareth Daniel Smith [Sun, 4 Nov 2012 18:11:37 +0000 (18:11 +0000)]
Add more doc-comments for Reader, ReaderUtil, Writer and WriterUtil (loosely associated with issue #2004).

11 years agoAdd size-specific int reading methods to ReaderUtil to match the existing int writing...
Gareth Daniel Smith [Sun, 4 Nov 2012 10:14:49 +0000 (10:14 +0000)]
Add size-specific int reading methods to ReaderUtil to match the existing int writing methods in WriterUtil (for issue #2004).

11 years agoMove rusti::rl to std::rl
Zack Corr [Sun, 4 Nov 2012 05:40:57 +0000 (15:40 +1000)]
Move rusti::rl to std::rl

11 years agoRemove linenoise files from the tidy check
Zack Corr [Sun, 4 Nov 2012 01:39:14 +0000 (11:39 +1000)]
Remove linenoise files from the tidy check

11 years agolibrary-tool-conversion: update tests.mk for librustdoc and libcargo
Daniel Patterson [Mon, 22 Oct 2012 21:50:16 +0000 (17:50 -0400)]
library-tool-conversion: update tests.mk for librustdoc and libcargo

11 years agolibrary-ifying of tools - turning cargo, rustdoc, fuzzer, into libraries, as per...
Daniel Patterson [Thu, 4 Oct 2012 00:32:30 +0000 (20:32 -0400)]
library-ifying of tools - turning cargo, rustdoc, fuzzer, into libraries, as per #3543

11 years agoRemove the last use of rustrt::rust_compare_and_swap_ptr
Tim Chevalier [Sat, 3 Nov 2012 20:38:16 +0000 (13:38 -0700)]
Remove the last use of rustrt::rust_compare_and_swap_ptr

Closes #3527

r=brson

11 years agoRemove stage0 stuff that was awaiting snapshot
Tim Chevalier [Sat, 3 Nov 2012 20:23:01 +0000 (13:23 -0700)]
Remove stage0 stuff that was awaiting snapshot

and re-register snapshots

Just removing unneeded code, no review

11 years agoMerge pull request #3912 from Dretch/iofix
Tim Chevalier [Sat, 3 Nov 2012 20:44:31 +0000 (13:44 -0700)]
Merge pull request #3912 from Dretch/iofix

Fix a bug where .write([]) would always fail.

11 years agoFix a bug where .write([]) would always fail.
Gareth Daniel Smith [Sat, 3 Nov 2012 18:48:02 +0000 (18:48 +0000)]
Fix a bug where .write([]) would always fail.

11 years agoRevert "Register snapshots"
Tim Chevalier [Sat, 3 Nov 2012 07:22:29 +0000 (00:22 -0700)]
Revert "Register snapshots"

This reverts commit 04671b250d3a19d9220de53a0f6834bc5aaffee4.

11 years agoRegister snapshots
Tim Chevalier [Sat, 3 Nov 2012 07:14:47 +0000 (00:14 -0700)]
Register snapshots

11 years agosyntax: Fold macros in default methods. Closes #3911
Brian Anderson [Sat, 3 Nov 2012 06:11:36 +0000 (23:11 -0700)]
syntax: Fold macros in default methods. Closes #3911

11 years agorustc: Refactor vtable lookup to use a vtable context, so that it can be called outsi...
Patrick Walton [Sat, 3 Nov 2012 00:57:17 +0000 (17:57 -0700)]
rustc: Refactor vtable lookup to use a vtable context, so that it can be called outside a function. rs=refactor

11 years agorustc: Eliminate the necessity of having an expr in order to call lookup_vtables...
Patrick Walton [Sat, 3 Nov 2012 00:03:35 +0000 (17:03 -0700)]
rustc: Eliminate the necessity of having an expr in order to call lookup_vtables(). rs=#rust

Automatically-generated derived methods don't have exprs and need to call this function.

11 years agoAdd xfailed test for #3908
Brian Anderson [Fri, 2 Nov 2012 22:57:47 +0000 (15:57 -0700)]
Add xfailed test for #3908

11 years agoAdd xfailed test for #3907
Brian Anderson [Fri, 2 Nov 2012 22:37:21 +0000 (15:37 -0700)]
Add xfailed test for #3907

11 years agoFix #1996 (pending snapshot)
Tim Chevalier [Thu, 1 Nov 2012 23:47:24 +0000 (16:47 -0700)]
Fix #1996 (pending snapshot)

Change int to uint in some extfmt code. Remove the #[cfg(stage0)] code
after a snapshot.

11 years agotest: Fix error messages in compile-fail tests. rs=rustbot
Patrick Walton [Fri, 2 Nov 2012 17:43:15 +0000 (10:43 -0700)]
test: Fix error messages in compile-fail tests. rs=rustbot

11 years agolibcore: Implement a memory-safe "each_val" for data in aliasable, mutable locations
Patrick Walton [Wed, 31 Oct 2012 23:02:16 +0000 (16:02 -0700)]
libcore: Implement a memory-safe "each_val" for data in aliasable, mutable locations

11 years agorustc: Implement ~Trait. r=nmatsakis
Patrick Walton [Wed, 31 Oct 2012 22:09:26 +0000 (15:09 -0700)]
rustc: Implement ~Trait. r=nmatsakis

11 years agorustc: Implement dereference via unary '*' for structs. r=nmatsakis
Patrick Walton [Wed, 31 Oct 2012 01:31:47 +0000 (18:31 -0700)]
rustc: Implement dereference via unary '*' for structs. r=nmatsakis

11 years agorustc: Implement translation of pattern matching for tuple structs and unit-like...
Patrick Walton [Tue, 30 Oct 2012 22:53:06 +0000 (15:53 -0700)]
rustc: Implement translation of pattern matching for tuple structs and unit-like structs. r=nmatsakis

11 years agorustc: Implement typechecking, exhaustiveness checking, and borrow checking for patte...
Patrick Walton [Fri, 2 Nov 2012 16:56:09 +0000 (09:56 -0700)]
rustc: Implement typechecking, exhaustiveness checking, and borrow checking for pattern matching of tuple structs. r=nmatsakis

Conflicts:

src/rustc/middle/typeck/check/alt.rs

11 years agocore: peek returns false for terminated pipes. Closes #3905
Brian Anderson [Fri, 2 Nov 2012 07:30:13 +0000 (00:30 -0700)]
core: peek returns false for terminated pipes. Closes #3905

11 years agoxfail issue-2061
Brian Anderson [Fri, 2 Nov 2012 00:13:59 +0000 (17:13 -0700)]
xfail issue-2061

11 years agoLong lines
Brian Anderson [Thu, 1 Nov 2012 23:39:32 +0000 (16:39 -0700)]
Long lines

11 years agoAdd run-fail test for #2061
Tim Chevalier [Thu, 1 Nov 2012 23:20:45 +0000 (16:20 -0700)]
Add run-fail test for #2061

11 years agoSupport #[cfg] on methods
Brian Anderson [Thu, 1 Nov 2012 22:48:37 +0000 (15:48 -0700)]
Support #[cfg] on methods

11 years agoTests for #1896
Tim Chevalier [Thu, 1 Nov 2012 22:14:36 +0000 (15:14 -0700)]
Tests for #1896

11 years agoAdding xfailed test for #3874
Tim Chevalier [Thu, 1 Nov 2012 22:14:31 +0000 (15:14 -0700)]
Adding xfailed test for #3874