Commit Graph

1648 Commits

Author SHA1 Message Date
Ben Blum 06c42b77d3 vim rustFuncCall contains rustAssert 2012-07-17 20:03:14 -04:00
Michael Sullivan 0442fd32ee Fix problem in combine-tests.py. 2012-07-14 12:00:02 -07:00
Michael Sullivan eb411d1b8f Make combine-tests.py work with ~str. 2012-07-14 11:33:49 -07:00
Ben Blum ebb33f2c28 vim: swap 'cont' for 'again' 2012-07-14 01:30:51 -04:00
Tim Chevalier fe77e962a8 Forbid TODO in tidy
Forbid TODO as either a sneaky or an accidental way of evading the
requirement to annotate FIXMEs with issue numbers.

Of course, there are many other ways to evade this requirement,
but one should draw the line somewhere...
2012-07-12 19:06:08 -07:00
Graydon Hoare 18da7fef88 Merge remote-tracking branch 'origin/dist-snap' into incoming 2012-07-12 17:14:55 -07:00
Michael Sullivan 1c62f5ff74 Get rid of all of the remaining /~s in the code base. 2012-07-12 15:13:18 -07:00
Graydon Hoare aa7b3cc929 Fix some version numbers. 2012-07-11 09:09:08 -07:00
Ben Blum 2ffa9b6bd9 vim: add optional rustFuncCall (default disabled) 2012-07-11 12:07:06 -04:00
Michael Sullivan a83ed81f77 Get rid of some remaining uses of old style vecs. 2012-07-10 16:32:53 -07:00
Ben Blum f9cb04f6fa vim: hilight option, either, libc types+constants 2012-07-06 22:30:50 -04:00
Michael Sullivan 23c73360ca Fix the indenter script to know about the annoying ~ in the front of log strings. 2012-07-06 15:55:56 -07:00
Graydon Hoare ceac155211 For #2229, recognize 'again' in place of 'cont', final change pending snapshot. 2012-07-06 15:46:39 -07:00
Ben Blum efb3227fb3 vim: add 'new' keyword 2012-07-03 18:39:58 -04:00
Brian Anderson 43def0677a tutorial: More updates for closures 2012-07-02 16:32:19 -07:00
Brian Anderson 47f43da376 Merge branch 'doc-comments' 2012-07-02 15:31:33 -07:00
Brian Anderson 569467eb0d Merge remote-tracking branch 'Dretch/prettydocs'
Conflicts:
	src/compiletest/errors.rs
	src/libsyntax/parse/attr.rs
	src/libsyntax/parse/comments.rs
	src/test/compile-fail/ambig_impl_unify.rs
	src/test/compile-fail/assign-super.rs
	src/test/compile-fail/bad-for-loop.rs
	src/test/compile-fail/bad-var-env-capture-in-block-arg.rs
	src/test/compile-fail/block-arg-as-stmt-with-value.rs
	src/test/compile-fail/borrowck-assign-comp-idx.rs
	src/test/compile-fail/borrowck-lend-flow.rs
	src/test/compile-fail/borrowck-loan-blocks-move-cc.rs
	src/test/compile-fail/borrowck-loan-blocks-mut-uniq.rs
	src/test/compile-fail/borrowck-loan-rcvr.rs
	src/test/compile-fail/borrowck-loan-vec-content.rs
	src/test/compile-fail/borrowck-mut-vec-as-imm-slice-bad.rs
	src/test/compile-fail/cap-clause-with-stack-closure.rs
	src/test/compile-fail/do1.rs
	src/test/compile-fail/do2.rs
	src/test/compile-fail/empty-vec-trailing-comma.rs
	src/test/compile-fail/evec-subtyping.rs
	src/test/compile-fail/issue-1896.rs
	src/test/compile-fail/issue-2149.rs
	src/test/compile-fail/issue-2150.rs
	src/test/compile-fail/issue-2487-b.rs
	src/test/compile-fail/kindck-implicit-close-over-mut-var.rs
	src/test/compile-fail/liveness-issue-2163.rs
	src/test/compile-fail/liveness-use-in-index-lvalue.rs
	src/test/compile-fail/no-reuse-move-arc.rs
	src/test/compile-fail/no-send-res-ports.rs
	src/test/compile-fail/non-const.rs
	src/test/compile-fail/pure-higher-order.rs
	src/test/compile-fail/pure-loop-body.rs
	src/test/compile-fail/regions-addr-of-upvar-self.rs
	src/test/compile-fail/regions-escape-loop-via-vec.rs
	src/test/compile-fail/regions-scoping.rs
	src/test/compile-fail/seq-args.rs
	src/test/compile-fail/tstate-unsat-in-called-fn-expr.rs
	src/test/compile-fail/tstate-unsat-in-fn-expr.rs
	src/test/compile-fail/vec-add.rs
	src/test/compile-fail/vec-concat-bug.rs
	src/test/compile-fail/vector-no-ann.rs
2012-07-02 15:23:41 -07:00
Ben Blum 67b9d82847 vim syntax: add drop & rustString contains rustTodo 2012-07-02 18:00:43 -04:00
Ben Blum 510af4dadb vim syntax: don't hilight foo::<T>() like a module 2012-07-02 16:03:44 -04:00
Ben Blum dc93814bf9 minor updates to vim config files 2012-07-02 15:48:59 -04:00
Erick Tryzelaar c74b3fd634 Treat "do" as a keyword in vim 2012-07-02 09:06:30 -07:00
Brian Anderson 129de96023 Add 'do' to rust-mode 2012-07-01 23:09:22 -07:00
Ben Striegel ba6f71f1b8 Properly highlight nested comments in vim
Prior to this commit, every block comment /* */ required two closing tags for
every opening tag in order to terminate the highlighting. Setting and testing
for a variable was the culprit, though I'm not certain why, but they appear to
just be boilerplate lines from whatever pcwalton based this file upon. I've
looked at other officially-distributed vim highlighting files and none seem to
do the test that this commit removes, so I'm fairly certain it didn't provide
anything vital. And now comment highlighting works!
2012-06-30 14:17:17 -07:00
Brian Anderson e2c70161f0 Fix combine-tests.py for new vec syntax 2012-06-30 13:59:54 -07:00
Gareth Daniel Smith 29eb788b1f make script executable 2012-06-30 12:31:24 +01:00
Gareth Daniel Smith 0b653ab953 initial draft of fix for issue #2498:
1. make /// ... and //! ... and /** ... */ and /*! ... */ into sugar for #[doc = ...] attributes.
2. add a script in etc/ to help converting doc-attributes to doc-comments
3. add some functions to core::str to help with (1)
2012-06-30 11:54:54 +01:00
Ben Blum d7823de5e2 update rust.vim to hilight foo::bar and more 2012-06-28 21:11:54 -04:00
Ben Blum 571d866c0d Update vim mode for asserts and #[attributes] 2012-06-28 18:11:54 -04:00
Graydon Hoare d3c6119a7a More keyword paring and migration in runtime, docs, code modes. 2012-06-27 13:30:49 -07:00
Brian Anderson 007b9d9acd Update combine-tests.py for new vec syntax 2012-06-25 21:38:27 -07:00
Graydon Hoare 312faf31df Tag all remaining FIXMEs with bugs. Install rule in tidy script to enforce this. 2012-06-21 16:44:10 -07:00
Kevin Cantu 1e33612729 Add libsyntax to the Python script for making a snapshot 2012-05-31 11:15:00 -07:00
Kevin Cantu 7dcbaedd32 Rename librustsyntax to libsyntax
Per issue #2418.
2012-05-31 11:15:00 -07:00
Paul Stansifer a16cb376ac Update reserved words for syntax highlighters (vim is still behind, though) 2012-05-23 16:23:11 -07:00
Tycho Sci 16848becaa vim: Fix syntax of number literals
To follow [3.5.2.2 Number literals] in the reference manual.
2012-05-05 11:43:07 +09:00
Tycho Sci bbf73bdfc6 vim: Link rustTodo to Todo for highlighting 2012-05-05 10:20:27 +09:00
Tycho Sci 1e44e04a9d vim: Update syntax for number/float literals 2012-05-03 17:12:46 +09:00
Tycho Sci 94b0edc606 vim: Highlight Todo in comments 2012-05-03 17:02:41 +09:00
Tycho Sci 55de232426 vim: Highlight identifiers 2012-05-03 17:01:33 +09:00
Brian Anderson 30385022c1 build: No tidy for test files. Closes #2271 2012-04-30 16:33:45 -07:00
Niko Matsakis 30d563839e Various regions fixes. 2012-04-23 08:02:59 -07:00
Niko Matsakis 2b5ad256f5 along long lines if they contain error msgs 2012-04-17 12:02:36 -07:00
Patrick Walton f9eca218e1 etc: Modernize the indenter 2012-04-17 08:01:17 -07:00
Niko Matsakis 35a93e61d4 rewrite region resolution so it takes place in typeck 2012-04-16 19:48:00 -07:00
Evan McClanahan 2c93b1b2df add the option --enable-local-rust to pull rust from your environment
rather than the snapshots.

make sure to get all of the files.

update to add nmatsakis' requested feature of pointing to a
different rustc install root.

usage: --enable-local-rust to enable
--local-rust-root="/path/to/rustc/" to change the path, which defaults to
"/usr/local/"

Tested on OS X and Linux, likely broken on windows.
2012-04-10 20:32:40 -07:00
Niko Matsakis f1afb0b3e2 utilities for indented logs 2012-04-05 21:16:28 -07:00
Brian Anderson 1ad62def6a build: Cleanup of test summary printing 2012-04-04 13:40:50 -07:00
Grahame Bowland 5cc050b265 Logfile output from tests; summarise in make check
Add an optional --logfile argument to std::test::test_main and to
compiletest.

Use this features and the new 'check-summary.py' script to
summarise all the tests performed by the 'check' target. This is
a short term fix for #2075.
2012-04-04 11:52:27 -07:00
Brian Anderson f4b293f0e3 rt: Fix the 0 bytes lost issue
This is a workaround for #1815. libev uses realloc(0) to
free the loop, which valgrind doesn't like. We have suppressions
to make valgrind ignore them.

Valgrind also has a sanity check when collecting allocation backtraces
that the stack pointer must be at least 512 bytes into the stack (at
least 512 bytes of frames must have come before). When this is not
the case it doesn't collect the backtrace.

Unfortunately, with our spaghetti stacks that valgrind check triggers
sometimes and we don't get the backtrace for the realloc(0), it
fails to be suppressed, and it gets reported as 0 bytes lost
from a malloc with no backtrace.

This fixes the issue by alloca'ing 512 bytes before calling uv_loop_delete
2012-04-03 17:08:33 -07:00
Niko Matsakis 704ca046a1 update make glob from .so to .dylib 2012-04-03 11:54:24 -07:00
Brian Anderson c8dc6fcb4c Revert "rt: Remove lock_held_by_current_thread"
Adds back the ability to make assertions about locks, but only under the
--enable-debug configuration

This reverts commit b247de6458.

Conflicts:

	src/rt/rust_sched_loop.cpp
2012-03-31 19:51:29 -07:00
Brian Anderson 14e9f58b50 build: Add librustsyntax to snapshots 2012-03-29 14:42:31 -07:00
Grahame Bowland 232c771105 python scripts run with Python 2.4 (for RHEL5) 2012-03-28 11:29:47 -07:00
Brian Anderson 42f2810eca emacs: Make 'mut' a keyword 2012-03-27 15:10:25 -07:00
Jacob Parker f5c91d10dd Fixed vim highlighting for \' (and other) escapes in char literals 2012-03-25 16:26:48 -04:00
Marijn Haverbeke 1b81c5112a Remove last vestiges of old-style intrinsics
Closes #2048
2012-03-23 16:08:01 +01:00
Marijn Haverbeke 52d618a99a Revert removal of intrinsics
Oops. We can't do this yet until the next snapshot.
2012-03-23 12:51:20 +01:00
Marijn Haverbeke f5024692d4 Remove support for the old-style intrinsics
Closes #2042
Closes #1981
2012-03-23 12:21:55 +01:00
Brian Anderson 57281f52e5 test: Begin running the language ref examples. Mostly xfailed 2012-03-20 18:59:21 -07:00
Brian Anderson a0cbf638ee doc: Switch the tutorial to pandoc's method of tagging code blocks
Instead of '## tag', it's '~~~ {.tag}'
2012-03-20 18:59:21 -07:00
Brian Anderson b247de6458 rt: Remove lock_held_by_current_thread 2012-03-18 17:03:35 -07:00
Erick Tryzelaar da91b60343 Add loop to the vim keyword list. 2012-03-16 17:05:29 +01:00
Niko Matsakis d365ec5c7d kill old serialization code 2012-03-15 18:30:10 -04:00
Marijn Haverbeke 959adff2fa Suppress valgrind error in dynamic linker
This was happening when running the rustdoc tests. The test proceeded
fine after that, and the code looks like it is running before anything
we generate, so I assume it is spurious.
2012-03-15 15:08:30 +01:00
Graydon Hoare 6f5853f5a1 Libc/os/run/rand/io reorganization. Close #1373. Close #1638.
- Move io, run and rand to core.
 - Remove incorrect ctypes module (use libc).
 - Remove os-specific modules for os and fs.
 - Split fs between core::path and core::os.
2012-03-12 20:08:29 -07:00
Graydon Hoare 7f55e7d087 Add a couple more missing pieces to libc and os. 2012-03-09 16:38:23 -08:00
Marijn Haverbeke e71703db02 Properly serialize is_last_use values
They were all normalized to the same thing by the serializer.
2012-03-08 21:29:07 +01:00
Patrick Walton c09e339133 etc: Allow a build dir to be specified in gen-astencode, for out of tree builds 2012-03-08 10:32:36 -08:00
Brian Anderson 32f7818e7f etc: Add more helgrind suppressions for i686 2012-03-05 19:39:57 -08:00
Brian Anderson 43f9f4d54a etc: Add helgrind suppressions for libunwind 2012-03-05 19:39:55 -08:00
Tim Chevalier 481d27a65d Update paths in gen-astencode 2012-03-03 17:49:15 -08:00
Graydon Hoare dafd649806 First cut at consolidated core::os module built on core::libc. 2012-03-02 18:46:13 -08:00
Brian Anderson fdc5b53c6e etc: Add helgrind suppressions for random locking order in rust_port_selector 2012-03-02 17:59:12 -08:00
Brian Anderson c76739072c etc: Add some helgrind suppressions for uv 2012-03-02 17:22:31 -08:00
Brian Anderson 9ec94f714a etc: Add more lock_and_signal helgrind suppressions 2012-03-02 15:21:48 -08:00
Brian Anderson 3923c8ee89 etc: Add helgrind suppression for lock_held_by_current_thread 2012-03-02 14:08:02 -08:00
Niko Matsakis 6473a87cec restructure to better support method inlining 2012-03-02 06:47:25 -08:00
Niko Matsakis def72bda47 retool inline encoding to handle methods, fix tests 2012-03-02 06:47:25 -08:00
Brian Anderson 81a0745361 etc: Remove rustdoc script 2012-02-29 23:45:51 -08:00
Niko Matsakis 2dd5b3ace6 optionally enforce local variable mutability 2012-02-29 19:31:15 -08:00
Erick Tryzelaar b9948baf78 vim: add "to" as a keyword. 2012-02-28 18:00:50 -08:00
Graydon Hoare 324ecb58a7 Add libc module to libcore and utility file to help generate it. 2012-02-27 18:34:42 -08:00
Niko Matsakis 13781f3d8d retool serializer to be built by stage0 rustc 2012-02-24 21:14:34 -08:00
Niko Matsakis f3ca50c9ca Encode/decode AST into metadata, re-instantiate inlined items 2012-02-24 20:46:27 -08:00
Niko Matsakis be9914625b allow snapshot to be specified in make command line 2012-02-24 20:46:27 -08:00
Brian Anderson 050b8bfdf8 Revert "etc: Add helgrind suppression for lock_held_by_current_thread"
This reverts commit d44ca0923a.
2012-02-23 18:27:40 -08:00
Brian Anderson d44ca0923a etc: Add helgrind suppression for lock_held_by_current_thread
I have some confidence that this function is correct now, but helgrind still
doesn't like it because it's not lock-protected.
2012-02-23 17:29:06 -08:00
Erick Tryzelaar 4a3d551b85 vim: fix indenting enums and macros
Now vim indenting goes from:

fn main() {
    enum t {
a: int,
   b: int
    }
#error("hello world");
}

to:

fn main() {
    enum t {
        a: int,
        b: int
    }
    #error("hello world");
}
2012-02-19 13:08:32 -08:00
Brian Anderson e7024e9dd2 build: Start downloading FreeBSD snaps from the official server 2012-02-13 12:44:41 -08:00
Brian Anderson 486d07a5bc build: Temporarily retrieve FreeBSD snapshots from jyyou's server 2012-02-13 01:22:42 -05:00
Niko Matsakis 0263039ca0 use absolute names when pretty-printing types 2012-02-10 20:48:28 -08:00
Niko Matsakis 5d57fa3403 update ebml interface 2012-02-10 20:48:28 -08:00
Erick Tryzelaar 1a7aa20eab vim: block is no longer a keyword. 2012-02-05 19:42:56 -08:00
Niko Matsakis 5163606d06 platform-specific valgrind suppression 2012-02-05 09:07:23 -08:00
Niko Matsakis 33f4a98388 correct to use enum keyword 2012-02-03 13:58:50 -08:00
Brian Anderson bda40e2e4a rt: Fix intrinsics bustage
intrinsics.cpp and the file to generate the ll had bitrotted.
2012-02-02 18:10:23 -08:00
Graydon Hoare c485301d21 Update libuv. 2012-02-02 17:39:47 -08:00
Graydon Hoare f7d756fcac Remove NSIS package, obsolete (and hazardous). 2012-01-31 11:46:47 -08:00
Graydon Hoare 0bf992969f Merge pull request #1669 from graydon/inno-setup
Add Inno Setup installer script rather than NSIS
2012-01-26 18:16:30 -08:00
unknown fe57a7e582 Add Inno Setup installer script rather than NSIS 2012-01-25 16:02:53 -08:00
Brian Anderson 7857dcb88c rustdoc: Add a script for running rustdoc output through markdown/pandoc 2012-01-23 15:16:14 -08:00
tim 1290e4181c Added a `src/etc/vim/ftdetect` directory and file.
Previously, in order to get vim's syntax highlighting,  you needed
to manually `:setf rust` on every file. Now vim will recognize *.rs
files as rust. This is a little nicer.
2012-01-21 15:02:17 -06:00
Haitao Li 4d757b9e9f Remove keyword multitable generator script
The script was used for generating a easy to read Rust keywords table in
texinfo format.
2012-01-21 19:23:52 +08:00
Brian Anderson 327c8bc733 build: Run tutorial tests 2012-01-20 19:56:06 -08:00
Graydon Hoare f49d781dc0 Fix formatting. 2012-01-20 16:12:25 -08:00
Graydon Hoare 32c9f7e8cf Merge pull request #1585 from mbrubeck/master
Update the keyword lists in rust.md and syntax.vim
2012-01-20 16:13:45 -08:00
Matt Brubeck 155601eefe Update the keyword lists in rust.md and syntax.vim
Add new keywords "enum" and "of", and remove old keywords "auth", "chan",
"log_err", "tag", and "task".

Also add reserved words to the syntax file, to help Vim users avoid using them
as identifiers.
2012-01-20 16:08:51 -08:00
Kevin Cantu 62bef762a3 Add a Python script which downloads only the latest Linux snapshots (derived from other scripts here) 2012-01-20 04:23:07 -08:00
Brian Anderson 2d9910383e rust-mode: tag -> enum. Closes #1577 2012-01-20 01:04:50 -08:00
Graydon Hoare 874390831a Fix a bunch of broken internal links in the docs. Add a hokey link checker. 2012-01-19 17:50:21 -08:00
Brian Anderson b4fc99e09e dist: Add bin directory to system PATH in win32 installer 2012-01-17 14:07:17 -08:00
Graydon Hoare 92671d6a30 Python! 2012-01-17 12:54:23 -08:00
Graydon Hoare 2a42092e70 Long line, grumble. 2012-01-17 12:51:31 -08:00
Graydon Hoare 65e3c35c8d Merge pull request #1548 from grahame/fix-interrupted-downloads
don't leave files that will not checksum if download is interrupted
2012-01-17 12:43:30 -08:00
Brian Anderson 4ac44492c4 dist: Add the uninstaller to the win32 control panel 2012-01-17 11:36:21 -08:00
Brian Anderson 943fcf6cdf dist: Make the win32 uninstaller work 2012-01-17 11:19:38 -08:00
Grahame Bowland ca8fe6446b don't leave files that will not checksum if download is interrupted 2012-01-17 22:41:11 +08:00
Marijn Haverbeke 936c933fd8 Move emacs mode into tree 2012-01-16 12:44:24 +01:00
Brian Anderson b93ed36555 Merge pull request #1521 from grahame/master
Simple update of the vim syntax file
2012-01-14 18:49:58 -08:00
Brian Anderson 9e40e43e74 build: Build libraries in the bin directory on win32 2012-01-14 13:43:04 -08:00
Grahame Bowland 2b5bd7cd6d Update vim syntax with new keywords 2012-01-14 23:11:33 +08:00
Graydon Hoare 4f9e1ba80b More doc porting. 2012-01-13 15:43:12 -08:00
Brian Anderson dcac427795 Revert "build: Build libraries in the bin directory on win32"
This reverts commit 23e0d16b5f.
2012-01-12 20:06:45 -08:00
Brian Anderson d95de0dd95 Merge remote-tracking branch 'brson/win32' 2012-01-12 19:25:27 -08:00
Graydon Hoare fefdb63c4c Begin shift over to using pandoc, markdown and llnextgen for reference manual. Fix man page URL while at it. 2012-01-12 19:10:30 -08:00
Brian Anderson 23e0d16b5f build: Build libraries in the bin directory on win32 2012-01-12 13:59:05 -08:00
Marijn Haverbeke 46664c1af2 Properly fix check-fast script 2012-01-11 22:10:43 +01:00
Marijn Haverbeke 8a3d1eeb42 Try to adjust check-fast script to std::io changes 2012-01-11 21:55:55 +01:00
Niko Matsakis a366a9eece report unicode decode failures nicely 2012-01-06 22:40:32 -08:00
Graydon Hoare a2acb052ca Simplify NSIS package script. 2012-01-05 17:03:02 -08:00
Stefan Plantikow 494ad4e601 Merge branch 'master' into kmath 2012-01-05 16:25:51 +01:00
Stefan Plantikow a16acc0c10 added preliminary support for per-architecture generation of math constants (for porting) 2012-01-05 05:25:20 +01:00
Jyun-Yan You 274fc1b59c fix link error 2012-01-01 20:18:55 -08:00
Graydon Hoare ca7d389e1d Of course there were overlong lines. 2011-12-29 17:30:43 -08:00
Graydon Hoare 1cd132eef0 Teach unicode script to emit canonical and compat decomp mappings. Annoyingly large encoding. 2011-12-29 17:24:04 -08:00
Graydon Hoare ac13f0da9e Add support to libcore for encoded-in-rust unicode character properties, at least. Add script to compute them from unicode.org. 2011-12-23 18:48:08 -08:00
Graydon Hoare 1bc6e72b97 Remove cargo from snapshot file-list again; overestimated. 2011-12-19 13:42:33 -08:00
Erick Tryzelaar f9df32adac vim comment highlighting can contain comments. 2011-12-19 07:27:17 -08:00
Graydon Hoare c758e11fd3 Install and snapshot cargo by default. 2011-12-16 19:37:27 -08:00
Graydon Hoare 4f826b34cb Update build machinery to build and install librustc everywhere (including snapshots). 2011-12-16 17:21:28 -08:00
Graydon Hoare 202260f19e Attempt to fix windows builder. 2011-12-13 12:32:00 -08:00
Graydon Hoare 548fe0eda9 Register new snapshots and teach snapshot script to deal with extracting new-style versioned snapshots. 2011-12-13 10:54:48 -08:00
Haitao Li 2ba317ddb2 build: Temp hack to make transition to new snapshot 2011-12-12 16:15:29 -08:00
Haitao Li 03d1644acc Update snapshot scripts to pick up the versioned libraries 2011-12-12 16:15:29 -08:00
Graydon Hoare 501c514e89 Register new snapshots (containing libcore auto-importing it now). 2011-12-07 16:36:56 -08:00
Graydon Hoare e4aa73c0f9 Change snapshot script to pick up host libcore as well. 2011-12-07 15:34:16 -08:00
Graydon Hoare a3f48d3fe1 Merge branch 'master' of github.com:graydon/rust 2011-12-07 11:52:38 -08:00
Graydon Hoare 1652b921fa Fix condition in snapshot script. Argv is never 2 long, it can be 3 or 4. 2011-12-06 17:50:21 -08:00
Niko Matsakis 7bf41392b6 correct the use of 'sed -i' 2011-12-05 15:12:36 -08:00
Stefan Plantikow 1b7f1415d6 build: added CFG_INSTALL_SNAP for automatically activating test snapshots
This is only guaranteed to work when building in the top-level dir
2011-12-02 12:23:50 -08:00
Brian Anderson 7476a39e47 stdlib: Implement some preliminary libuv bindings
std::uv is intended to be low-level, exactly mirroring the C API.
Difficult to continue the implementation now without scheduler
improvements.
2011-12-01 10:24:21 -08:00
Niko Matsakis 4f92204765 make check-fast work 2011-11-29 12:51:11 -08:00
Niko Matsakis 6e55426c8c tweak to get windows test-running correct 2011-11-29 12:51:10 -08:00
Niko Matsakis 89a4f8c751 fix to new model where triple is explicit 2011-11-29 12:51:10 -08:00
Niko Matsakis 44ccc36d93 update snapshot scripts 2011-11-29 12:51:10 -08:00
Niko Matsakis 9c12c7c7f5 basic builds function 2011-11-29 12:51:07 -08:00
Brian Anderson 75ce03dd77 Use new mod syntax in check-fast driver 2011-11-24 16:18:26 -08:00
Haitao Li 2ac63801d2 doc: Build keywords multitable automatically
Keywords are now listed in a plain text file. They're sorted in
column-major order and rendered as a texinfo multitable in rust.texi.

Fixes issue #1216.
2011-11-23 21:11:18 +01:00
Erick Tryzelaar ab265586eb Re-add libuv as a submodule. 2011-11-08 19:01:47 -08:00
Brian Anderson 061d2c2f77 Make task_sleep an intrinsic. 2011-11-08 15:58:08 -08:00
Brian Anderson fdeb5ba304 Upgrade libuv to f1859eb841be2fe48512bc10e64556383f408b01 2011-11-07 19:24:25 -08:00
Niko Matsakis f05761ddb3 enable intrinsics for multiple arch 2011-11-02 14:13:22 -07:00
Niko Matsakis 20946e6970 start going back to an i386 build 2011-11-02 14:13:22 -07:00
Niko Matsakis 8011e3fabb hack around on makefiles trying to get a 64 bit build
right now there are many temporary hacks, search for NDM to find them
2011-11-02 14:13:22 -07:00
Brian Anderson df12749b36 Register snapshots 2011-10-31 15:19:01 -07:00
Brian Anderson bd33951b1c Update snapshot scripts for new stdlib name 2011-10-31 14:43:43 -07:00
Matt Brubeck 0bf10d84e2 Update keyword list in vim/syntax/rust.vim
Removed: iter, each, put, macro, meta, syntax, port, spawn
Added: block, copy
2011-10-29 20:50:17 -07:00
Brian Anderson b916c57021 Update src/etc/gyp-uv
Make instructions more accurate. Make the sed commands work on linux.
2011-10-22 17:38:27 -07:00
Niko Matsakis 9476692b52 move ctags.rust into src/etc 2011-10-12 13:57:32 -07:00
Brian Anderson 79e9f7a015 Make windows package uninstallable 2011-10-07 14:09:29 -07:00
Brian Anderson fed56b07ba Make windows packaging work again 2011-10-07 13:48:20 -07:00
Brian Anderson 00a81a22a8 Add more valgrind suppressions for __libc_freeres
Somehow these started showing up on the tinderbox
2011-10-05 16:21:56 -07:00
Brian Anderson de6d07abf9 Register snapshots and finish filesystem reorg 2011-09-29 23:33:44 -07:00
Brian Anderson b569e9c657 Update snapshot scripts for the new regime 2011-09-29 22:58:34 -07:00
Patrick Walton 3be6cf7ab2 vim: Add `pure` to the list of keywords 2011-09-29 18:18:37 -07:00
Brian Anderson 15e34deba3 Eliminate glue.o. Closes #990 2011-09-28 15:35:21 -07:00
Patrick Walton 5fac684af8 vim: `const` is a keyword 2011-09-28 12:40:34 -07:00
Erick Tryzelaar 6164de90e2 Add libuv upgrade instructions to src/etc/gyp-uv 2011-09-23 16:53:07 -07:00
Erick Tryzelaar 5f066e06b9 Update to libuv commit 3ca382.
This patch changes libuv's gyp build system to
make it's own makefiles. To generate them for rust,
run these commands. They requires python 2.x to
work:

$ mkdir -p src/rt/libuv/build
$ svn co http://gyp.googlecode.com/svn src/rt/libuv/build/gyp
$ ./etc/src/gyp_uv
2011-09-23 16:53:06 -07:00
Brian Anderson e193c9c1d6 Don't check-fast xfail-win32 tests 2011-09-11 17:31:41 -07:00
Brian Anderson c8fba11bd3 Remove transitional code from combine-tests.py. Issue #855 2011-09-02 22:11:46 -07:00
Marijn Haverbeke 6209e844ee Replace xfail-stageN with simply xfail-test
Closes #799
2011-08-31 16:32:16 +02:00
Brian Anderson be2ad97a61 Allow main to take istrs. Issue #855 2011-08-30 23:57:09 -07:00
Brian Anderson fcc031c5b4 Convert std::io to istrs. Issue #855 2011-08-27 15:54:43 -07:00
Brian Anderson 3aef2c1d7d Add a valgrind suppression for the llvm::User leak
It's been around forever. I don't know what it is, but I need the compiler to
be valgrind clean for the istr transition so I'm suppressing it.
2011-08-26 13:20:22 -07:00
Brian Anderson b7d74c32b6 Fix combine-tests.py for new ivec regime 2011-08-24 12:03:08 -07:00
Brian Anderson f32079f7c0 Convert most main functions to the ivec signature
Converting rustc will still take a snapshot
2011-08-16 10:29:08 -07:00
Brian Anderson 25b85df370 Register new snapshots
Use main.o from the snapshot
2011-08-14 14:38:08 -07:00
Brian Anderson 83128f441b Fix typo in snapshot.py 2011-08-14 13:40:22 -07:00
Brian Anderson 1dbf0965a1 Add lib/main.o to snapshot
Snapshotting main.o is going to make it easier (I think) to convert main to
use ivecs
2011-08-14 12:14:58 -07:00
Patrick Walton e76efbc43a etc: Add "lambda" and "inline" to the vim mode 2011-08-05 14:01:45 -07:00
Patrick Walton 684df97ef0 etc: Update the Vim syntax mode with new keywords 2011-08-05 09:25:27 -07:00
Brian Anderson 12ab65107a Make combine-tests ignore temp files 2011-07-28 14:24:20 -07:00
Marijn Haverbeke 7647cf73d1 Another attempt at fixing fast check for the win tinderbox 2011-07-27 19:02:45 +02:00
Marijn Haverbeke 30377a0d05 Fix python script for fast-check to output valid syntax 2011-07-27 16:34:35 +02:00
Marijn Haverbeke b0059bd357 Hack to make snap-stage1 actually build incompatible changes
You can't build libstd both with stage0 and stage1 if the two are incompatible

This is probably temporary
2011-07-27 15:19:31 +02:00
Graydon Hoare ad954fcecc Add an NSIS script for building a win32 installer. Closes #522. 2011-07-23 12:27:06 -07:00
Michael Sullivan bdbac006dc Build the stage1 compiler against the newly built librustrt. 2011-07-21 17:55:47 -07:00
Michael Sullivan c62a9fec77 Grab librustrt.so instead of lib/librustrt.so in the snapshot. 2011-07-21 16:09:10 -07:00
Michael Sullivan d9286c8bdd Build stage0/lib/libstd.so using the stage0 compiler.
This essentially starts the bootstrapping one step earlier by building
the stdlib from source using the stage0 compiler and then using that
stdlib to build the stage1 compiler. (Instead of starting by building
the stage1 compiler and then building a stdlib with it).

This means we should now be able to add features to the stdlib and use
them in the compiler without having to do a snapshot. (On the flip
side, this means that we now need to do a snapshot if we want to use a
new language feature in the stdlib, but that doesn't really seem too
burdensome (we already need to snapshot if we want to use a new
language feature in the compiler)).
2011-07-21 12:15:36 -07:00
Brian Anderson 9bd945639b Register new snapshots
Update snapshot scripts to complete transition of intrinsics.bc to lib dir
2011-07-19 18:26:08 -07:00
Brian Anderson 0ff76eb41f Update snapshot scripts for new location of intrinsics.bc 2011-07-19 17:22:32 -07:00
Graydon Hoare 39151f2ad8 Prohibit trailing whitespace under 'tidy' script. Clean up all caught cases. 2011-07-13 15:44:09 -07:00
Graydon Hoare e53cfb979b Fix fast-check target by disabling code snippet printing on warnings (broken on .rc files) and adding an xfail-fast flag for global-scope.rs. 2011-07-12 17:36:57 -07:00
Rafael Ávila de Espíndola 99a95b3613 Use new snapshot. 2011-07-11 18:35:25 -04:00
Rafael Ávila de Espíndola d151e18633 Move llvm out of stageN/lib so that the host building stage 1+ can
have a newer and incompatible llvm with the bots.
2011-07-11 16:31:47 -04:00
Rafael Ávila de Espíndola 15a670a1b1 Use new snapshot. 2011-07-11 14:32:18 -04:00
Rafael Ávila de Espíndola f666c97e6d Step 1/n for moving to the new type system: include intrinsics.bc in the
snapshot.
2011-07-11 12:09:52 -04:00
Brian Anderson 94f782e6a1 Register new snapshots
New snapshots also include rt and rustllvm
2011-07-07 16:40:58 -07:00
Brian Anderson 64595a53f8 Add rt and rustllvm to the snapshot 2011-07-07 15:40:27 -07:00
Rafael Ávila de Espíndola 5547e5dd21 Use new snapshot. 2011-07-07 17:36:23 -04:00
Rafael Ávila de Espíndola 83991c4c95 Add the static std library in the next snapshot. 2011-07-07 16:25:25 -04:00
Graydon Hoare 8c36a76626 More fiddling with fast-check, now works on at least one windows machine. 2011-06-30 09:26:17 -07:00
Graydon Hoare afabde19dc More fixes to fast-check. 2011-06-29 17:54:05 -07:00
Brian Anderson a82aeb7af6 Register new snapshots
Also finish transition of snapshot scripts for new glue.o location
2011-06-29 17:45:54 -07:00
Brian Anderson 865534978f Change snapshot logic to archive glue.o from the lib directory 2011-06-29 15:39:30 -07:00
Graydon Hoare 4e5d32e1c4 Add fast-check target that combines the stage2 run-pass suite into a single executable. 2011-06-29 15:14:55 -07:00
Graydon Hoare 0dc2aa3d09 Bit more work on mingw cross. Pending on other changes now (test combination, build artifact locations) 2011-06-28 11:18:34 -07:00
Patrick Walton b55277002b etc: Eliminate dyld valgrind errors on OS X 2011-06-27 12:34:13 -07:00
Brian Anderson bd93e1abcd Register new snapshots. Update location of stage0's libstd 2011-06-17 18:19:37 -07:00
Brian Anderson 175fd8ee73 Update snapshot scripts to understand new dir layout 2011-06-17 15:39:58 -07:00
Rafael Ávila de Espíndola f9946c9748 Dead code. 2011-05-24 19:39:30 -04:00
Graydon Hoare 49b90d37ed Add mirror-all-snapshots.py script for extra crowdsourced backup power. 2011-05-17 22:06:55 -07:00
Erick Tryzelaar 4d0cbd4310 Move vim syntax file, add indent file. 2011-05-17 20:35:46 -07:00
Graydon Hoare d577f5bdf9 Let the snapshot-file parser parse empty T lines, since they are used to start a transition. 2011-05-16 15:14:44 -07:00
Graydon Hoare ae784df3ce Add support for 'T' transition snapshots, which are identical to S snapshots except they tell the makefile to stop at stage1. 2011-05-13 17:06:58 -07:00
Patrick Walton 295c037aac etc: Update rust.vim with new keywords; color types differently from keywords 2011-05-12 14:32:54 -07:00
Graydon Hoare 1fdddede22 Add snap-stageN targets. 2011-05-12 13:08:57 -07:00
Graydon Hoare b81897d7e4 More python portability fixes (for windows). 2011-05-03 16:53:36 -07:00
Graydon Hoare 1965a156f0 Attempt to use more portable python 2011-05-03 16:22:00 -07:00
Graydon Hoare dbe5dc9768 Attempt to shift build to stage0-from-snapshots. 2011-05-03 11:34:44 -07:00
Graydon Hoare 54bfe8ee27 Small fixes to snapshot script. 2011-05-03 09:25:59 -07:00
Graydon Hoare a919a3082d More snapshot logic refactoring. 2011-05-03 07:23:05 -07:00
Graydon Hoare d987b49a4b More hacking on the snapshot system. 2011-05-02 23:37:52 -07:00
Graydon Hoare cb53065a21 Initial sketch of snapshot support code, based on code from marijn. 2011-05-02 18:56:13 -07:00
Graydon Hoare ff22bdfb6e Fix indentation in tidy. 2011-03-19 18:34:46 -07:00
Patrick Walton 23eef4da22 Add some more dlopen-related suppressions for the Mac 2011-03-16 11:37:50 -07:00
Brian Anderson b7f8566ea9 Make the valgrind suppressions file compatible with older versions 2011-01-07 01:17:05 -05:00
Patrick Walton a1c7d19836 rustc: Translate tag constructors. Can't call them at the moment due to lack of alias args, though. 2010-12-06 16:50:24 -08:00
Patrick Walton b7e6d9895e First stab at a Vim syntax highlighter for Rust 2010-10-13 10:43:19 -07:00
Patrick Walton cd6be20caa Use "/usr/bin/env python" per the prevailing style 2010-08-19 10:25:58 -07:00
Patrick Walton 64be30936b Don't complain about \r when core.autocrlf is on in Git... and work in Python 2.4, 2.6, and 3.x. 2010-08-18 16:14:44 -07:00
Patrick Walton 1d10582d62 Revert "Don't complain about \r when core.autocrlf is on in Git"
This reverts commit 828afaa2fa.
2010-08-18 16:04:50 -07:00
Patrick Walton b4f92774d0 Don't complain about \r when core.autocrlf is on in Git (now working with Python 2.6). 2010-08-18 15:30:31 -07:00
Patrick Walton 724d7235e5 Revert "Don't complain about \r when core.autocrlf is on in Git"
This reverts commit 828afaa2fa.
2010-08-18 15:24:44 -07:00
Patrick Walton 828afaa2fa Don't complain about \r when core.autocrlf is on in Git 2010-08-18 15:19:36 -07:00
Patrick Walton 53b01dc006 Add a valgrind suppression for Snow Leopard dyld 2010-08-05 12:00:34 -07:00
Graydon Hoare d6b7c96c3e Populate tree. 2010-06-23 21:03:09 -07:00