]> git.lizzy.rs Git - rust.git/log
rust.git
12 years agobuild: Fix logic around --enable-local-rust
Brian Anderson [Thu, 19 Apr 2012 22:46:09 +0000 (15:46 -0700)]
build: Fix logic around --enable-local-rust

12 years agoAnnotate FIXMEs (comments only)
Tim Chevalier [Thu, 19 Apr 2012 22:20:11 +0000 (15:20 -0700)]
Annotate FIXMEs (comments only)

12 years agoMove some functions from pprust to classify
Tim Chevalier [Thu, 19 Apr 2012 21:46:11 +0000 (14:46 -0700)]
Move some functions from pprust to classify

As per a FIXME in syntax::parse::classify, move predicates on exprs
and stmts into classify, out of pprust

12 years agoClean up FIXMEs in syntax::fold
Tim Chevalier [Thu, 19 Apr 2012 21:43:12 +0000 (14:43 -0700)]
Clean up FIXMEs in syntax::fold

Eta-reduce a function, fold over ty constrs, and annotate a FIXME.

12 years agoCleanup FIXMEs in syntax::ext::qquote
Tim Chevalier [Thu, 19 Apr 2012 21:26:45 +0000 (14:26 -0700)]
Cleanup FIXMEs in syntax::ext::qquote

Inline some one-off functions, add an error message, annotate a FIXME

12 years agoRemoved a FIXME from librustcsyntax/ext/build.rs
Tim Chevalier [Thu, 19 Apr 2012 20:51:23 +0000 (13:51 -0700)]
Removed a FIXME from librustcsyntax/ext/build.rs

I removed a FIXME about cleaning up function names because I
couldn't tell what needed cleaning up. If you know, please add a
FIXME and a corresponding issue tracker issue that explains the
problem!

12 years agoComments only: annotate FIXMEs in lexer
Tim Chevalier [Thu, 19 Apr 2012 22:24:49 +0000 (15:24 -0700)]
Comments only: annotate FIXMEs in lexer

12 years agoMerge pull request #2241 from jwise/master
Niko Matsakis [Thu, 19 Apr 2012 17:58:45 +0000 (10:58 -0700)]
Merge pull request #2241 from jwise/master

simple update of keywords.txt

12 years agocore: Move set_exit_status from sys to os
Brian Anderson [Thu, 19 Apr 2012 08:26:17 +0000 (01:26 -0700)]
core: Move set_exit_status from sys to os

12 years agocore: Move last_os_error from sys to os
Brian Anderson [Thu, 19 Apr 2012 08:23:00 +0000 (01:23 -0700)]
core: Move last_os_error from sys to os

12 years agocore: Improve docs
Brian Anderson [Thu, 19 Apr 2012 08:00:52 +0000 (01:00 -0700)]
core: Improve docs

12 years agodoc: Update keywords.txt with modern list of keywords derived from parser.
Joshua Wise [Thu, 19 Apr 2012 07:05:55 +0000 (00:05 -0700)]
doc: Update keywords.txt with modern list of keywords derived from parser.

12 years agort: Don't log in the stack switching failure path
Brian Anderson [Thu, 19 Apr 2012 01:43:42 +0000 (18:43 -0700)]
rt: Don't log in the stack switching failure path

The runtime is in an uncertain state here and, instead of thinking
about how to make the logger work correctly, let's just avoid it.

Currently, it ends up hitting an assert saying that we can't log on
the rust stack.

12 years agoAdd str/& component accessor and test.
Graydon Hoare [Thu, 19 Apr 2012 00:02:28 +0000 (17:02 -0700)]
Add str/& component accessor and test.

12 years agoFix [] on str to exclude the trailing null.
Graydon Hoare [Thu, 19 Apr 2012 00:02:00 +0000 (17:02 -0700)]
Fix [] on str to exclude the trailing null.

12 years agosyntax: Put the main parser interface in mod parse
Brian Anderson [Wed, 18 Apr 2012 06:34:48 +0000 (23:34 -0700)]
syntax: Put the main parser interface in mod parse

12 years agosyntax: Begin moving functions from mod parser to mod classify
Brian Anderson [Wed, 18 Apr 2012 05:02:00 +0000 (22:02 -0700)]
syntax: Begin moving functions from mod parser to mod classify

12 years agosyntax: Move some functions from parser to token
Brian Anderson [Wed, 18 Apr 2012 04:14:40 +0000 (21:14 -0700)]
syntax: Move some functions from parser to token

12 years agosyntax: Extract prec mod from parser mod
Brian Anderson [Wed, 18 Apr 2012 03:41:04 +0000 (20:41 -0700)]
syntax: Extract prec mod from parser mod

12 years agoRequire values to be copyable when cast
Marijn Haverbeke [Wed, 18 Apr 2012 15:08:32 +0000 (17:08 +0200)]
Require values to be copyable when cast

Closes #2222

12 years agoRemove tri.rs and four.rs
Marijn Haverbeke [Wed, 18 Apr 2012 15:05:52 +0000 (17:05 +0200)]
Remove tri.rs and four.rs

Closes #1892

12 years agoFix oversight in type_use.rs
Marijn Haverbeke [Wed, 18 Apr 2012 14:11:12 +0000 (16:11 +0200)]
Fix oversight in type_use.rs

Closes #2053

12 years agoDescribe new for construct in the tutorial
Marijn Haverbeke [Wed, 18 Apr 2012 13:41:33 +0000 (15:41 +0200)]
Describe new for construct in the tutorial

Closes #2141

12 years agoStop duplicating non-generic resource destructors
Marijn Haverbeke [Wed, 18 Apr 2012 11:46:21 +0000 (13:46 +0200)]
Stop duplicating non-generic resource destructors

Closes #2177

12 years agoAdd a needs_drop intrinsic
Marijn Haverbeke [Wed, 18 Apr 2012 11:15:02 +0000 (13:15 +0200)]
Add a needs_drop intrinsic

Closes #2055

12 years agoFix use of wrong block context in return-from-loop code
Marijn Haverbeke [Wed, 18 Apr 2012 11:00:18 +0000 (13:00 +0200)]
Fix use of wrong block context in return-from-loop code

Closes #2142

12 years agosyntax: Add explicit exports in parser mods
Brian Anderson [Wed, 18 Apr 2012 02:34:44 +0000 (19:34 -0700)]
syntax: Add explicit exports in parser mods

12 years agoImplement slice-borrowing on estr-uniq and str values.
Graydon Hoare [Tue, 17 Apr 2012 22:07:38 +0000 (15:07 -0700)]
Implement slice-borrowing on estr-uniq and str values.

12 years agosyntax: Remove extra 'mut' from bad word table
Brian Anderson [Tue, 17 Apr 2012 21:22:47 +0000 (14:22 -0700)]
syntax: Remove extra 'mut' from bad word table

12 years agonew debug flag, new test
Niko Matsakis [Tue, 17 Apr 2012 17:05:28 +0000 (10:05 -0700)]
new debug flag, new test

12 years agorepair LUB/GLB of free/scope regions, and enable test
Niko Matsakis [Tue, 17 Apr 2012 15:40:06 +0000 (08:40 -0700)]
repair LUB/GLB of free/scope regions, and enable test

12 years agochange printout to be what users will expect
Niko Matsakis [Tue, 17 Apr 2012 15:39:58 +0000 (08:39 -0700)]
change printout to be what users will expect

12 years agoalong long lines if they contain error msgs
Niko Matsakis [Tue, 17 Apr 2012 15:39:41 +0000 (08:39 -0700)]
along long lines if they contain error msgs

12 years agoetc: Modernize the indenter
Patrick Walton [Tue, 17 Apr 2012 15:01:17 +0000 (08:01 -0700)]
etc: Modernize the indenter

12 years agorewrite region resolution so it takes place in typeck
Niko Matsakis [Mon, 16 Apr 2012 05:06:19 +0000 (22:06 -0700)]
rewrite region resolution so it takes place in typeck

12 years agoMerge pull request #2224 from tedhorst/cleandsym
Brian Anderson [Tue, 17 Apr 2012 01:27:04 +0000 (18:27 -0700)]
Merge pull request #2224 from tedhorst/cleandsym

properly clean .dSYM directories

12 years agoproperly clean .dSYM directories
Ted Horst [Tue, 17 Apr 2012 00:44:40 +0000 (19:44 -0500)]
properly clean .dSYM directories

12 years agoGet explicit unique estrs working.
Graydon Hoare [Mon, 16 Apr 2012 23:17:51 +0000 (16:17 -0700)]
Get explicit unique estrs working.

12 years agorustc: Resolve external impls defined in yet other crates. Issue #2196
Brian Anderson [Mon, 16 Apr 2012 21:58:58 +0000 (14:58 -0700)]
rustc: Resolve external impls defined in yet other crates. Issue #2196

12 years agotest: Add xfailed test for #2196
Brian Anderson [Mon, 16 Apr 2012 20:51:40 +0000 (13:51 -0700)]
test: Add xfailed test for #2196

12 years agoAdd Evan McClanahan to AUTHORS.txt
Brian Anderson [Mon, 16 Apr 2012 20:01:30 +0000 (13:01 -0700)]
Add Evan McClanahan to AUTHORS.txt

12 years agoMerge pull request #2184 from evanmcc/local_rust
Brian Anderson [Mon, 16 Apr 2012 19:59:51 +0000 (12:59 -0700)]
Merge pull request #2184 from evanmcc/local_rust

add the configure option --enable-local-rust to pull rust from your environment

12 years agorustc: -L also indicates the location of native libraries
Brian Anderson [Sat, 14 Apr 2012 04:38:15 +0000 (21:38 -0700)]
rustc: -L also indicates the location of native libraries

-L currently specifies paths to search for Rust crates

Building crates that use native libraries is difficult. When the
library is located somewhere unexpected there is no way
to tell rustc additional paths to look in.

If libclang is located at `.` then rustc is not going to
know that and linking will fail.

To get around that I often end up inserting

    #[link_args = "-L."] native mod m { }

into other crates to get them to build.

Now you just `rustc -L .` and it builds.

This doesn't do any rpathing so it's still up to somebody else
to put the library somewhere it will be found or use LD_LIBRARY_PATH

This feature comes with a single, XFAILed test, because I could
not think of a way to test it. Odd.

12 years agocore: Factor out uint/u8/16/32/64 mods into uint-template
Brian Anderson [Sun, 15 Apr 2012 05:07:45 +0000 (22:07 -0700)]
core: Factor out uint/u8/16/32/64 mods into uint-template

12 years agocore: Factor out int/i8/16/32/64 mods into int-template
Brian Anderson [Sun, 15 Apr 2012 00:21:10 +0000 (17:21 -0700)]
core: Factor out int/i8/16/32/64 mods into int-template

12 years agocore: Add extension methods for is_null, is_not_null
Brian Anderson [Mon, 16 Apr 2012 04:46:29 +0000 (21:46 -0700)]
core: Add extension methods for is_null, is_not_null

12 years agoAdd Alexander Stavonin to AUTHORS.txt
Brian Anderson [Sun, 15 Apr 2012 23:20:34 +0000 (16:20 -0700)]
Add Alexander Stavonin to AUTHORS.txt

12 years agoMerge pull request #2211 from astavonin/master
Brian Anderson [Sun, 15 Apr 2012 23:18:39 +0000 (16:18 -0700)]
Merge pull request #2211 from astavonin/master

export buf_len from ptr

12 years agosyntax: Remove unused lexer field
Brian Anderson [Sun, 15 Apr 2012 12:13:10 +0000 (05:13 -0700)]
syntax: Remove unused lexer field

12 years agosyntax: Cleanup in diagnostic
Brian Anderson [Sun, 15 Apr 2012 11:40:05 +0000 (04:40 -0700)]
syntax: Cleanup in diagnostic

12 years agosyntax: Limit exports in codemap
Brian Anderson [Sun, 15 Apr 2012 11:34:51 +0000 (04:34 -0700)]
syntax: Limit exports in codemap

12 years agosyntax: Some minor lexer refactoring
Brian Anderson [Sun, 15 Apr 2012 11:19:52 +0000 (04:19 -0700)]
syntax: Some minor lexer refactoring

12 years agosyntax: lexer doesn't need to store the src length
Brian Anderson [Sun, 15 Apr 2012 11:02:25 +0000 (04:02 -0700)]
syntax: lexer doesn't need to store the src length

12 years agosyntax: lexer doesn't need a codemap
Brian Anderson [Sun, 15 Apr 2012 10:57:24 +0000 (03:57 -0700)]
syntax: lexer doesn't need a codemap

12 years agosyntax: Limit exports from lexer
Brian Anderson [Sun, 15 Apr 2012 10:49:59 +0000 (03:49 -0700)]
syntax: Limit exports from lexer

12 years agosyntax: Eliminate token's dependency on lexer
Brian Anderson [Sun, 15 Apr 2012 10:44:32 +0000 (03:44 -0700)]
syntax: Eliminate token's dependency on lexer

12 years agosyntax: Move comment-extraction code to its own module
Brian Anderson [Sun, 15 Apr 2012 10:27:24 +0000 (03:27 -0700)]
syntax: Move comment-extraction code to its own module

12 years agosyntax: Cleanup attr module. Closes #1545
Brian Anderson [Sun, 15 Apr 2012 08:07:47 +0000 (01:07 -0700)]
syntax: Cleanup attr module. Closes #1545

12 years agoForbid deinitializing upvars in typestate
Tim Chevalier [Sat, 17 Mar 2012 21:39:15 +0000 (14:39 -0700)]
Forbid deinitializing upvars in typestate

Closes #1965.

12 years agoexport buf_len from ptr
Alexander Stavonin [Sun, 15 Apr 2012 07:40:47 +0000 (16:40 +0900)]
export buf_len from ptr

12 years agoRegister snapshots
Brian Anderson [Sun, 15 Apr 2012 04:36:57 +0000 (21:36 -0700)]
Register snapshots

12 years agoimplement evec/estr subtyping/lub/glb/etc
Niko Matsakis [Sun, 15 Apr 2012 01:45:03 +0000 (18:45 -0700)]
implement evec/estr subtyping/lub/glb/etc

12 years agocore: Use tilde-fences in docs
Brian Anderson [Sat, 14 Apr 2012 22:40:18 +0000 (15:40 -0700)]
core: Use tilde-fences in docs

Backtick fences don't work for some reason

12 years agoMerge pull request #2205 from grahame/floatstrfixes
Brian Anderson [Sat, 14 Apr 2012 19:25:45 +0000 (12:25 -0700)]
Merge pull request #2205 from grahame/floatstrfixes

add inf/-inf/NaN parsing to float::from_str

12 years agoadd inf/-inf/NaN parsing to float::from_str
Grahame Bowland [Sat, 14 Apr 2012 18:21:57 +0000 (02:21 +0800)]
add inf/-inf/NaN parsing to float::from_str

add tests for "inf"/"-inf"/"NaN" conversion
add tests for "-0." -> -0., "0." -> 0.

12 years agotest: Simulate abstract methods with template modules
Brian Anderson [Sat, 14 Apr 2012 09:14:05 +0000 (02:14 -0700)]
test: Simulate abstract methods with template modules

12 years agotest: Add a test for interesting module template polymorphism
Brian Anderson [Sat, 14 Apr 2012 06:27:03 +0000 (23:27 -0700)]
test: Add a test for interesting module template polymorphism

12 years agorustc: Don't hardcode -lm
Brian Anderson [Sat, 14 Apr 2012 04:28:19 +0000 (21:28 -0700)]
rustc: Don't hardcode -lm

It does not appear to serve a purpose

12 years agointegrate simple notion of borrowing into trans
Niko Matsakis [Sat, 14 Apr 2012 02:07:47 +0000 (19:07 -0700)]
integrate simple notion of borrowing into trans

12 years agostore into the borrowings table
Niko Matsakis [Fri, 13 Apr 2012 21:52:11 +0000 (14:52 -0700)]
store into the borrowings table

12 years agonew borrowing tests (not all passing)
Niko Matsakis [Fri, 13 Apr 2012 20:36:39 +0000 (13:36 -0700)]
new borrowing tests (not all passing)

12 years agoadd initial code re: slices to borrowing, improve ty_to_str
Niko Matsakis [Fri, 13 Apr 2012 20:35:57 +0000 (13:35 -0700)]
add initial code re: slices to borrowing, improve ty_to_str

12 years agoTrivial change to force a doc rebuild.
Graydon Hoare [Sat, 14 Apr 2012 02:50:51 +0000 (19:50 -0700)]
Trivial change to force a doc rebuild.

12 years agoadd test for issue #1466 that runs with CC ZEAL enabled.
Niko Matsakis [Fri, 13 Apr 2012 16:19:23 +0000 (09:19 -0700)]
add test for issue #1466 that runs with CC ZEAL enabled.

Fixes #1466. (Unable to reproduce)

12 years agoadd option exec-env to set env variables during test execution
Niko Matsakis [Fri, 13 Apr 2012 16:19:07 +0000 (09:19 -0700)]
add option exec-env to set env variables during test execution

12 years agouse find not echo; this also brings fuzzer under the iron fist of tidy.py!
Niko Matsakis [Fri, 13 Apr 2012 18:59:17 +0000 (11:59 -0700)]
use find not echo; this also brings fuzzer under the iron fist of tidy.py!

12 years agofirst stab at type checking for borrow: not integrated into trans
Niko Matsakis [Fri, 13 Apr 2012 04:59:33 +0000 (21:59 -0700)]
first stab at type checking for borrow: not integrated into trans

12 years agochange to use && mode (can't move from upvar)
Niko Matsakis [Fri, 13 Apr 2012 04:58:32 +0000 (21:58 -0700)]
change to use && mode (can't move from upvar)

relevant to #1965

12 years agoRevert "libstd: Handle test results in serial"
Haitao Li [Fri, 13 Apr 2012 10:34:45 +0000 (18:34 +0800)]
Revert "libstd: Handle test results in serial"

This reverts commit 828d0677c4d6d9cc955f9b90e8b28039f69ff8b8.

12 years agoRevert "libstd: Colorify test results when run in parallel"
Haitao Li [Fri, 13 Apr 2012 10:34:41 +0000 (18:34 +0800)]
Revert "libstd: Colorify test results when run in parallel"

This reverts commit 7b3cb05311ef7d671b0bf92b041112ef141dc188.

12 years agoAnnotate FIXMEs in syntax::ast and syntax::ast_util
Tim Chevalier [Fri, 13 Apr 2012 08:46:56 +0000 (01:46 -0700)]
Annotate FIXMEs in syntax::ast and syntax::ast_util

The main non-comment change was to change simple_path to path,
as per a FIXME in ast.

12 years agoAnnotate FIXMEs in core::vec
Tim Chevalier [Fri, 13 Apr 2012 06:38:53 +0000 (23:38 -0700)]
Annotate FIXMEs in core::vec

12 years agoAnnotate FIXMEs in core::task
Tim Chevalier [Fri, 13 Apr 2012 06:38:25 +0000 (23:38 -0700)]
Annotate FIXMEs in core::task

12 years agoRemove or annotate FIXMEs in core::str
Tim Chevalier [Fri, 13 Apr 2012 04:46:41 +0000 (21:46 -0700)]
Remove or annotate FIXMEs in core::str

Trimmed exports in core::str::unsafe. Annotated other FIXMEs.

Also moved the test for str::unsafe::from_buf_len inside str_unsafe
since it's no longer exported. If it's not good to do that, let me
know.

12 years agoAdd a run-fail test for result::get, get rid of a FIXME. Also some random other tests...
Tim Chevalier [Fri, 13 Apr 2012 03:24:07 +0000 (20:24 -0700)]
Add a run-fail test for result::get, get rid of a FIXME. Also some random other tests, mostly xfailed.

12 years agorustc: Fix handling of - and _ in lint pass
Brian Anderson [Fri, 13 Apr 2012 01:11:23 +0000 (18:11 -0700)]
rustc: Fix handling of - and _ in lint pass

12 years agotest: Add test for #1763
Brian Anderson [Fri, 13 Apr 2012 00:12:48 +0000 (17:12 -0700)]
test: Add test for #1763

12 years agoSupport general warnings and errors in lint pass via flags and attrs. Close #1543.
Graydon Hoare [Fri, 13 Apr 2012 00:30:52 +0000 (17:30 -0700)]
Support general warnings and errors in lint pass via flags and attrs. Close #1543.

12 years agolibstd: Colorify test results when run in parallel
Haitao Li [Wed, 11 Apr 2012 12:46:12 +0000 (20:46 +0800)]
libstd: Colorify test results when run in parallel

Closes #782

12 years agolibstd: Handle test results in serial
Haitao Li [Wed, 11 Apr 2012 12:39:15 +0000 (20:39 +0800)]
libstd: Handle test results in serial

Issue #782

12 years agorustc: Long lines
Brian Anderson [Thu, 12 Apr 2012 04:32:05 +0000 (21:32 -0700)]
rustc: Long lines

12 years agotest: Add compile-fail test for shadowing in-scope enums
Brian Anderson [Thu, 12 Apr 2012 04:28:25 +0000 (21:28 -0700)]
test: Add compile-fail test for shadowing in-scope enums

12 years agorustc: Fix typo in error message
Brian Anderson [Thu, 12 Apr 2012 04:25:32 +0000 (21:25 -0700)]
rustc: Fix typo in error message

12 years agoTest that a class can implement an interface defined in a different crate
Tim Chevalier [Thu, 12 Apr 2012 01:48:26 +0000 (18:48 -0700)]
Test that a class can implement an interface defined in a different crate

12 years agoBreak up make tidy even more
Brian Anderson [Thu, 12 Apr 2012 01:17:42 +0000 (18:17 -0700)]
Break up make tidy even more

12 years agobreakup tidy command
Niko Matsakis [Thu, 12 Apr 2012 00:38:23 +0000 (17:38 -0700)]
breakup tidy command

12 years agorewrite lookup_method(), lookup_method_inner(), and lookup_method_inner_()
Niko Matsakis [Wed, 11 Apr 2012 23:27:11 +0000 (16:27 -0700)]
rewrite lookup_method(), lookup_method_inner(), and lookup_method_inner_()

12 years agorefactor fixup_self
Niko Matsakis [Wed, 11 Apr 2012 20:10:35 +0000 (13:10 -0700)]
refactor fixup_self

12 years agofirst attempt at an assignability check
Niko Matsakis [Wed, 11 Apr 2012 00:16:48 +0000 (17:16 -0700)]
first attempt at an assignability check

12 years agosimplify demand module
Niko Matsakis [Wed, 11 Apr 2012 16:14:09 +0000 (09:14 -0700)]
simplify demand module