]> git.lizzy.rs Git - rust.git/log
rust.git
11 years agoAdd deprecated attribute.
Luqman Aden [Sun, 9 Dec 2012 07:26:12 +0000 (02:26 -0500)]
Add deprecated attribute.

11 years agoPrint out a more helpful type error message for do-blocks/for-loops
Tim Chevalier [Sat, 8 Dec 2012 05:14:20 +0000 (21:14 -0800)]
Print out a more helpful type error message for do-blocks/for-loops

If a do-block body has the wrong type, or a for-loop body has a
non-() type, suggest that the user might have meant the other one.

Closes #2817

r=brson

11 years agoClean the check-fast lib on windows
Brian Anderson [Sat, 8 Dec 2012 23:48:54 +0000 (15:48 -0800)]
Clean the check-fast lib on windows

11 years agodoc: Fix broken doc test. rs=bustage
Patrick Walton [Sat, 8 Dec 2012 19:47:03 +0000 (11:47 -0800)]
doc: Fix broken doc test. rs=bustage

11 years agoXfail broken tests
Tim Chevalier [Sat, 8 Dec 2012 07:42:26 +0000 (23:42 -0800)]
Xfail broken tests

11 years agotest: Fix borrowck-preserve-box-in-pat. rs=bustage
Patrick Walton [Sat, 8 Dec 2012 06:42:49 +0000 (22:42 -0800)]
test: Fix borrowck-preserve-box-in-pat. rs=bustage

11 years agotest: Fix borrowck-preserve-box-in-discr; more fallout from pattern bindings. rs...
Patrick Walton [Sat, 8 Dec 2012 06:00:55 +0000 (22:00 -0800)]
test: Fix borrowck-preserve-box-in-discr; more fallout from pattern bindings. rs=bustage

11 years agotest: Remove alt-implicit-copy.rs test. Incompatible with current borrow check semant...
Patrick Walton [Sat, 8 Dec 2012 05:59:38 +0000 (21:59 -0800)]
test: Remove alt-implicit-copy.rs test. Incompatible with current borrow check semantics. rs=bustage

11 years agotest: Fix some busted run-pass tests, fallout from the pattern bindings change. rs...
Patrick Walton [Sat, 8 Dec 2012 05:56:46 +0000 (21:56 -0800)]
test: Fix some busted run-pass tests, fallout from the pattern bindings change. rs=bustage

11 years agolibcore: Fix Windows-only pattern in run.rs. rs=bustage
Patrick Walton [Sat, 8 Dec 2012 05:52:39 +0000 (21:52 -0800)]
libcore: Fix Windows-only pattern in run.rs. rs=bustage

11 years agoAdd test for #2995
Tim Chevalier [Sat, 8 Dec 2012 05:40:15 +0000 (21:40 -0800)]
Add test for #2995

11 years agoAdd test case for #2828
Tim Chevalier [Sat, 8 Dec 2012 05:29:16 +0000 (21:29 -0800)]
Add test case for #2828

11 years agoMake short flags with a single-char arg work in getopts
Tim Chevalier [Sat, 8 Dec 2012 03:53:45 +0000 (19:53 -0800)]
Make short flags with a single-char arg work in getopts

This looks like a big patch, but it's mostly just modernization.
The real change is in the fn called `getopts`, the line
                       if arg_follows && j < curlen {

Minor bugfix, no review.

Closes #2822

11 years agolibrustc: De-mode pattern bindings. r=nmatsakis
Patrick Walton [Sat, 8 Dec 2012 03:34:57 +0000 (19:34 -0800)]
librustc: De-mode pattern bindings. r=nmatsakis

11 years agolibsyntax: Fix parsing of module-qualified structure patterns. rs=bugfix
Patrick Walton [Sat, 8 Dec 2012 03:09:25 +0000 (19:09 -0800)]
libsyntax: Fix parsing of module-qualified structure patterns. rs=bugfix

11 years agoFix windows installer license file
Brian Anderson [Sat, 8 Dec 2012 02:45:27 +0000 (18:45 -0800)]
Fix windows installer license file

11 years agolibrustc: Implement "&mut [T]" as an expression. r=brson
Patrick Walton [Sat, 8 Dec 2012 00:26:52 +0000 (16:26 -0800)]
librustc: Implement "&mut [T]" as an expression. r=brson

11 years agoFix pretty-printing of trait constraints
Brian Anderson [Sat, 8 Dec 2012 01:55:34 +0000 (17:55 -0800)]
Fix pretty-printing of trait constraints

11 years agoLong lines
Brian Anderson [Sat, 8 Dec 2012 00:48:55 +0000 (16:48 -0800)]
Long lines

11 years agoTrait constraints are separated by space, not comma
Brian Anderson [Fri, 7 Dec 2012 23:09:59 +0000 (15:09 -0800)]
Trait constraints are separated by space, not comma

11 years agoRemove impl_id from trait_ref. Unused
Brian Anderson [Fri, 7 Dec 2012 03:12:25 +0000 (19:12 -0800)]
Remove impl_id from trait_ref. Unused

11 years agoAdd an auto-slice-and-ref step to method lookup. Allows ~[T] to work with explicit...
Brian Anderson [Fri, 7 Dec 2012 00:29:17 +0000 (16:29 -0800)]
Add an auto-slice-and-ref step to method lookup. Allows ~[T] to work with explicit self

11 years agoMerge pull request #4101 from brson/bound-default-methods
Brian Anderson [Fri, 7 Dec 2012 23:10:57 +0000 (15:10 -0800)]
Merge pull request #4101 from brson/bound-default-methods

Call default methods on bound typarams more correctly

11 years agoLong lines
Brian Anderson [Fri, 7 Dec 2012 23:08:09 +0000 (15:08 -0800)]
Long lines

11 years agoAdd :load command to REPL that can compile and load external libraries
Brian Leibig [Fri, 7 Dec 2012 00:52:10 +0000 (19:52 -0500)]
Add :load command to REPL that can compile and load external libraries

11 years agodoc: fix busted doctest, r=burningtree.
Graydon Hoare [Fri, 7 Dec 2012 22:40:56 +0000 (14:40 -0800)]
doc: fix busted doctest, r=burningtree.

11 years agosyntax: try to fix pattern printing yet again, r=burningtree.
Graydon Hoare [Fri, 7 Dec 2012 22:39:29 +0000 (14:39 -0800)]
syntax: try to fix pattern printing yet again, r=burningtree.

11 years agoUpdate dist rules for license changes harder
Brian Anderson [Fri, 7 Dec 2012 22:39:40 +0000 (14:39 -0800)]
Update dist rules for license changes harder

11 years agoUpdate dist rules for license changes
Brian Anderson [Fri, 7 Dec 2012 22:37:01 +0000 (14:37 -0800)]
Update dist rules for license changes

11 years agosyntax: try to fix pattern printing harder, r=burningtree.
Graydon Hoare [Fri, 7 Dec 2012 20:52:01 +0000 (12:52 -0800)]
syntax: try to fix pattern printing harder, r=burningtree.

11 years agosyntax: pretty print bind_by_value patterns as "copy", r=burningtree.
Graydon Hoare [Fri, 7 Dec 2012 20:29:46 +0000 (12:29 -0800)]
syntax: pretty print bind_by_value patterns as "copy", r=burningtree.

11 years agobench: fix nbody bugs, r=burningtree.
Graydon Hoare [Fri, 7 Dec 2012 20:21:30 +0000 (12:21 -0800)]
bench: fix nbody bugs, r=burningtree.

11 years agoRELEASES: tweak description of new quoter.
Graydon Hoare [Fri, 7 Dec 2012 19:21:31 +0000 (11:21 -0800)]
RELEASES: tweak description of new quoter.

11 years agosyntax: stage0-guard uses of #ast, rewrite as quote_foo! in stage1,2.
Graydon Hoare [Fri, 7 Dec 2012 00:19:50 +0000 (16:19 -0800)]
syntax: stage0-guard uses of #ast, rewrite as quote_foo! in stage1,2.

11 years agosyntax: fix missing push in item macro expansion
Graydon Hoare [Fri, 7 Dec 2012 00:19:05 +0000 (16:19 -0800)]
syntax: fix missing push in item macro expansion

11 years agosyntax: Permit splicing anything into a quote that implements ToTokens.
Graydon Hoare [Fri, 7 Dec 2012 00:18:41 +0000 (16:18 -0800)]
syntax: Permit splicing anything into a quote that implements ToTokens.

11 years agosyntax: fix quote_type! to quote_ty!
Graydon Hoare [Thu, 6 Dec 2012 19:09:46 +0000 (11:09 -0800)]
syntax: fix quote_type! to quote_ty!

11 years agosyntax: point quote tokens at the site of quote-using-extension invocation.
Graydon Hoare [Thu, 6 Dec 2012 19:01:58 +0000 (11:01 -0800)]
syntax: point quote tokens at the site of quote-using-extension invocation.

11 years agosyntax: fix the accidental binding of interner state between parse and quote.
Graydon Hoare [Wed, 5 Dec 2012 01:06:10 +0000 (17:06 -0800)]
syntax: fix the accidental binding of interner state between parse and quote.

11 years agosyntax: fix a pp bug on foreign mods.
Graydon Hoare [Wed, 5 Dec 2012 01:05:42 +0000 (17:05 -0800)]
syntax: fix a pp bug on foreign mods.

11 years agoRevert "Print copy patterns correctly"
Tim Chevalier [Fri, 7 Dec 2012 06:36:02 +0000 (22:36 -0800)]
Revert "Print copy patterns correctly"

This reverts commit ea6819637382e7f8979766b954dd2a1922d0dee0.

11 years agoPrint copy patterns correctly
Tim Chevalier [Fri, 7 Dec 2012 03:45:26 +0000 (19:45 -0800)]
Print copy patterns correctly

11 years agomake bblum happy
Tim Chevalier [Fri, 7 Dec 2012 03:27:44 +0000 (19:27 -0800)]
make bblum happy

11 years agoTest cases, some xfailed
Tim Chevalier [Fri, 7 Dec 2012 02:32:13 +0000 (18:32 -0800)]
Test cases, some xfailed

11 years agoRemove obsolete comment
Tim Chevalier [Fri, 7 Dec 2012 02:32:01 +0000 (18:32 -0800)]
Remove obsolete comment

11 years agoDocument pattern ranges a little more
Tim Chevalier [Fri, 7 Dec 2012 01:29:36 +0000 (17:29 -0800)]
Document pattern ranges a little more

Patches for further documentation of them welcome, but this
is good enough for now.

Closes #1107

11 years agoRemove compile-fail test from run-pass
Tim Chevalier [Fri, 7 Dec 2012 05:48:18 +0000 (21:48 -0800)]
Remove compile-fail test from run-pass

11 years agoXfail trait-inheritance-overloading-xc-exe
Tim Chevalier [Fri, 7 Dec 2012 05:48:44 +0000 (21:48 -0800)]
Xfail trait-inheritance-overloading-xc-exe

Issue #4135

11 years agoRemove hack to not use type_use on x86
Brian Anderson [Fri, 7 Dec 2012 03:45:32 +0000 (19:45 -0800)]
Remove hack to not use type_use on x86

11 years agolibrustc: Propagate type uses correctly from method calls to the containing functions...
Patrick Walton [Fri, 7 Dec 2012 03:10:25 +0000 (19:10 -0800)]
librustc: Propagate type uses correctly from method calls to the containing functions. rs=bugfix

This adds a new script, `monodebug.pl`. It can be used to diagnose problems stemming from incorrect combining of monomorphic generic instantiations.

11 years agoUse fuzzy_eq in run-pass/intrinsics-math.rs
Brian Anderson [Fri, 7 Dec 2012 02:55:10 +0000 (18:55 -0800)]
Use fuzzy_eq in run-pass/intrinsics-math.rs

11 years agoxfail-fast static-fn-inline-xc. needs aux-build
Brian Anderson [Fri, 7 Dec 2012 02:44:26 +0000 (18:44 -0800)]
xfail-fast static-fn-inline-xc. needs aux-build

11 years agoRename std::ebml::Reader => std::ebml::reader, same for writer
Tim Chevalier [Fri, 7 Dec 2012 00:13:54 +0000 (16:13 -0800)]
Rename std::ebml::Reader => std::ebml::reader, same for writer

Closes #4076

11 years agoAdd various test cases, mostly xfailed
Tim Chevalier [Fri, 7 Dec 2012 00:13:40 +0000 (16:13 -0800)]
Add various test cases, mostly xfailed

11 years agoRemove bogus FIXME, closes #2889
Tim Chevalier [Thu, 6 Dec 2012 23:26:37 +0000 (15:26 -0800)]
Remove bogus FIXME, closes #2889

11 years agotest: Fix compilation of benchmarks for moves-based-on-type. rs=bustage
Patrick Walton [Thu, 6 Dec 2012 23:56:52 +0000 (15:56 -0800)]
test: Fix compilation of benchmarks for moves-based-on-type. rs=bustage

11 years agotest: Fix shootout-mandelbrot.rs. rs=bustage
Patrick Walton [Thu, 6 Dec 2012 23:36:26 +0000 (15:36 -0800)]
test: Fix shootout-mandelbrot.rs. rs=bustage

11 years agoRemove previous x86 data corruption workaround. #4054
Brian Anderson [Thu, 6 Dec 2012 23:25:43 +0000 (15:25 -0800)]
Remove previous x86 data corruption workaround. #4054

11 years agoTurn off type_use on x86. #4127
Brian Anderson [Thu, 6 Dec 2012 23:09:51 +0000 (15:09 -0800)]
Turn off type_use on x86. #4127

11 years agoAdd Jimmy Lu to AUTHORS
Tim Chevalier [Thu, 6 Dec 2012 23:16:57 +0000 (15:16 -0800)]
Add Jimmy Lu to AUTHORS

11 years agoMerge pull request #4089 from BeyondSora/incoming
Tim Chevalier [Thu, 6 Dec 2012 23:16:08 +0000 (15:16 -0800)]
Merge pull request #4089 from BeyondSora/incoming

Add option validation to configure

11 years agoBe a bit more explicit about the nature of macro RHSes.
Paul Stansifer [Thu, 6 Dec 2012 04:58:39 +0000 (23:58 -0500)]
Be a bit more explicit about the nature of macro RHSes.

11 years agoMention statement macros also in release notes, for completeness.
Paul Stansifer [Thu, 6 Dec 2012 04:49:48 +0000 (23:49 -0500)]
Mention statement macros also in release notes, for completeness.

11 years agoUpdate macro tutorial to recognize item/statement macros and be clearer
Paul Stansifer [Thu, 6 Dec 2012 04:48:28 +0000 (23:48 -0500)]
Update macro tutorial to recognize item/statement macros and be clearer
about invocation location vs. interpolation location.

11 years agotest: Fix busted test. rs=bustage
Patrick Walton [Thu, 6 Dec 2012 22:53:21 +0000 (14:53 -0800)]
test: Fix busted test. rs=bustage

11 years agoEleminate pattern warnings
Brian Anderson [Thu, 6 Dec 2012 22:11:11 +0000 (14:11 -0800)]
Eleminate pattern warnings

11 years agotest: Fix more compile-fail bustage. rs=bustage
Patrick Walton [Thu, 6 Dec 2012 20:12:55 +0000 (12:12 -0800)]
test: Fix more compile-fail bustage. rs=bustage

11 years agoFix dist deps harder
Brian Anderson [Thu, 6 Dec 2012 20:08:58 +0000 (12:08 -0800)]
Fix dist deps harder

11 years agoFix dist deps
Brian Anderson [Thu, 6 Dec 2012 19:55:56 +0000 (11:55 -0800)]
Fix dist deps

11 years agotest: Fix some compile-fail bustage. rs=bustage
Patrick Walton [Thu, 6 Dec 2012 19:08:23 +0000 (11:08 -0800)]
test: Fix some compile-fail bustage. rs=bustage

11 years agotest: Fix some run-fail bustage. rs=bustage
Patrick Walton [Thu, 6 Dec 2012 18:26:11 +0000 (10:26 -0800)]
test: Fix some run-fail bustage. rs=bustage

11 years agotest: Fix some more run-pass bustage. rs=clownshoes
Patrick Walton [Thu, 6 Dec 2012 17:28:16 +0000 (09:28 -0800)]
test: Fix some more run-pass bustage. rs=clownshoes

11 years agolibrustc: Fix handling of `~` and `@` unary operators in mode computation. Closes...
Patrick Walton [Thu, 6 Dec 2012 06:57:58 +0000 (22:57 -0800)]
librustc: Fix handling of `~` and `@` unary operators in mode computation. Closes #4114. rs=bugfix

11 years agodoc: Add some stuff to RELEASES.txt for 0.5. rs=doc-only
Patrick Walton [Thu, 6 Dec 2012 05:04:14 +0000 (21:04 -0800)]
doc: Add some stuff to RELEASES.txt for 0.5. rs=doc-only

11 years agolibrustc: Implement "-Z no-monomorphic-collapse" as a debugging tool to diagnose...
Patrick Walton [Thu, 6 Dec 2012 04:45:58 +0000 (20:45 -0800)]
librustc: Implement "-Z no-monomorphic-collapse" as a debugging tool to diagnose mysterious crashes we're seeing. rs=debug-tool

11 years agolibrustc: Fix type_use to not treat i1* arguments as interchangeable with i8* argumen...
Patrick Walton [Thu, 6 Dec 2012 04:21:29 +0000 (20:21 -0800)]
librustc: Fix type_use to not treat i1* arguments as interchangeable with i8* arguments. Closes #3917. rs=bugfix

11 years agoFix test
Brian Anderson [Thu, 6 Dec 2012 04:14:33 +0000 (20:14 -0800)]
Fix test

11 years agoStart 0.5 release notes
Brian Anderson [Thu, 6 Dec 2012 03:29:11 +0000 (19:29 -0800)]
Start 0.5 release notes

11 years agoConvert Num to explicit self
Brian Anderson [Thu, 6 Dec 2012 03:22:48 +0000 (19:22 -0800)]
Convert Num to explicit self

11 years agolibrustc: Move the "legality of move bindings" check from typechecking to alt checkin...
Patrick Walton [Thu, 6 Dec 2012 03:01:14 +0000 (19:01 -0800)]
librustc: Move the "legality of move bindings" check from typechecking to alt checking. rs=refactoring

11 years agolibrustc: Make a context including the method map in check_alt, in preparation for...
Patrick Walton [Thu, 6 Dec 2012 02:27:04 +0000 (18:27 -0800)]
librustc: Make a context including the method map in check_alt, in preparation for moving check_legality_of_move_bindings there. rs=refactoring

11 years agoLong lines
Brian Anderson [Thu, 6 Dec 2012 02:10:45 +0000 (18:10 -0800)]
Long lines

11 years agoFix cross-crate inlining of static functions
Brian Anderson [Sun, 2 Dec 2012 23:45:20 +0000 (15:45 -0800)]
Fix cross-crate inlining of static functions

11 years agotest: Fix float imprecision error on intrinsics-math
Patrick Walton [Thu, 6 Dec 2012 01:54:12 +0000 (17:54 -0800)]
test: Fix float imprecision error on intrinsics-math

11 years agotest: Fix alt-implicit-copy-unique. rs=me
Patrick Walton [Thu, 6 Dec 2012 01:38:21 +0000 (17:38 -0800)]
test: Fix alt-implicit-copy-unique. rs=me

11 years agotest: More bustage fixes. rs=me
Patrick Walton [Thu, 6 Dec 2012 01:36:51 +0000 (17:36 -0800)]
test: More bustage fixes. rs=me

11 years agotest: More run-pass test fixes
Patrick Walton [Thu, 6 Dec 2012 00:51:32 +0000 (16:51 -0800)]
test: More run-pass test fixes

11 years agolibcore: Fix some more coretest bustage. rs=bustage
Patrick Walton [Wed, 5 Dec 2012 23:30:00 +0000 (15:30 -0800)]
libcore: Fix some more coretest bustage. rs=bustage

11 years agolibrustc: Hook borrow check loan checking up to the moves-based-on-type infrastructur...
Patrick Walton [Wed, 5 Dec 2012 23:06:54 +0000 (15:06 -0800)]
librustc: Hook borrow check loan checking up to the moves-based-on-type infrastructure. rs=helps-unbreak-the-build

11 years agoAdd Michael Arntzenius to AUTHORS.txt
Brian Anderson [Wed, 5 Dec 2012 20:04:50 +0000 (12:04 -0800)]
Add Michael Arntzenius to AUTHORS.txt

11 years agoMerge remote-tracking branch 'rntz/tuple-iterbytes'
Brian Anderson [Wed, 5 Dec 2012 19:58:35 +0000 (11:58 -0800)]
Merge remote-tracking branch 'rntz/tuple-iterbytes'

Conflicts:
src/libcore/to_bytes.rs

11 years agotest: Fix a bunch of test cases. rs=burning
Patrick Walton [Wed, 5 Dec 2012 19:40:47 +0000 (11:40 -0800)]
test: Fix a bunch of test cases. rs=burning

11 years agolibrustc: Long lines. rs=rustbot
Patrick Walton [Wed, 5 Dec 2012 05:13:02 +0000 (21:13 -0800)]
librustc: Long lines. rs=rustbot

11 years agoMerge remote-tracking branch 'luqmana/incoming'
Brian Anderson [Wed, 5 Dec 2012 02:49:50 +0000 (18:49 -0800)]
Merge remote-tracking branch 'luqmana/incoming'

Conflicts:
src/librustc/middle/typeck/check.rs

11 years agolibrustc: Shot in the dark to try to unbreak Windows. rs=me
Patrick Walton [Wed, 5 Dec 2012 00:03:50 +0000 (16:03 -0800)]
librustc: Shot in the dark to try to unbreak Windows. rs=me

11 years agolibrustc: Implement moves based on type. r=nmatsakis
Patrick Walton [Tue, 4 Dec 2012 23:38:04 +0000 (15:38 -0800)]
librustc: Implement moves based on type. r=nmatsakis

11 years agolibrustc: Remove bogus ValueMode. rs=tree-on-fire
Patrick Walton [Tue, 4 Dec 2012 23:09:40 +0000 (15:09 -0800)]
librustc: Remove bogus ValueMode. rs=tree-on-fire

11 years agolibrustc: Implement explicit self for Add and Index; add a hack in the borrow checker...
Patrick Walton [Wed, 28 Nov 2012 21:51:50 +0000 (13:51 -0800)]
librustc: Implement explicit self for Add and Index; add a hack in the borrow checker to support this. r=nmatsakis

11 years agolibrustc: Remove all legacy pattern bindings from libsyntax and librustc. rs=refactoring
Patrick Walton [Tue, 4 Dec 2012 18:50:00 +0000 (10:50 -0800)]
librustc: Remove all legacy pattern bindings from libsyntax and librustc. rs=refactoring

11 years agocore: rename box to managed. Close #4079.
Graydon Hoare [Tue, 4 Dec 2012 01:45:19 +0000 (17:45 -0800)]
core: rename box to managed. Close #4079.