about summary refs log tree commit diff
path: root/src/etc
AgeCommit message (Collapse)AuthorLines
2013-12-29Rename uses of PkgId to CrateId in librustpkgLuis de Bethencourt-1/+1
2013-12-27Renamed ClonableIterator to CloneableIteratorAlexandros Tasos-1/+1
2013-12-24Test fixes and rebase problemsAlex Crichton-3/+3
Note that this removes a number of run-pass tests which are exercising behavior of the old runtime. This functionality no longer exists and is thoroughly tested inside of libgreen and libnative. There isn't really the notion of "starting the runtime" any more. The major notion now is "bootstrapping the initial task".
2013-12-24auto merge of #11121 : vadimcn/rust/no-c++2, r=alexcrichtonbors-0/+1
This PR removes Rust's dependency on C++ for exception handling. Instead, it will use the unwind library API directly. closes #10469
2013-12-24Stop using C++ exceptions for stack unwinding.Vadim Chugunov-0/+1
2013-12-23rustc: Add a lint for the obsolete crate-level link attributeBrian Anderson-1/+0
2013-12-20auto merge of #11079 : chris-morgan/rust/fix-11072-regressions, r=brsonbors-2/+1
(#11072) There, concrete evidence that I shouldn't try doing such things at 1:30am.
2013-12-19auto merge of #11073 : klutzy/rust/issue-10978, r=alexcrichtonbors-0/+5
This patchset fixes small glitches which caused #10978.
2013-12-20Fix two regressions introduced by #11072.Chris Morgan-2/+1
There, concrete evidence that I shouldn't try doing such things at 1:30am.
2013-12-19auto merge of #11072 : chris-morgan/rust/ctags-tweaks, r=cmrbors-11/+12
Anchoring the keyword as the first non-whitespace on a line may mean that the occasional genuine-but-unconventionally-formatted tag is missed, but it avoids a large number of false positives. I changed the type descriptive texts about a bit too. That part's purely cosmetic. I also changed the ignored file list to use a filename matching the make rule, `TAGS.vi` instead of `TAGS.vim`.
2013-12-20mklldeps.py: Ignore extra whitespaces of argumentklutzy-0/+5
2013-12-19Rename pkgid to crate_idCorey Richardson-0/+1
Closes #11035
2013-12-20Remove many false positives from the ctags resultsChris Morgan-11/+12
Anchoring the keyword as the first non-whitespace on a line may mean that the occasional genuine-but-unconventionally-formatted tag is missed, but it avoids a large number of false positives. I changed the type descriptive texts about a bit too. That part's purely cosmetic. I also changed the ignored file list to use a filename matching the make rule, `TAGS.vi` instead of `TAGS.vim`.
2013-12-18auto merge of #11032 : cmr/rust/rustdoc_test, r=alexcrichtonbors-0/+1
This is just a smoke test which verifies that the expected files are generated.
2013-12-18Add a rustdoc testCorey Richardson-0/+1
This is just a smoke test which verifies that the expected files are generated. Also makes the rmake tests have the right deps.
2013-12-18mklldeps.py: Write to file instead of printklutzy-9/+11
It seems that msys automatically converts `\n` to `\r\n` on pipe redirection, which causes `make tidy` failure.
2013-12-18llvm: Disable pthread on mingwklutzy-491/+1
llvm supports both win32 native threads and pthread, but configure tries to find pthread first. This manually disables pthread to use native api. This removes libpthreads-2.dll dependency on librustc.
2013-12-17auto merge of #10967 : chris-morgan/rust/clean-and-tidy-some-traits, ↵bors-2/+2
r=alexcrichton ### Remove {As,Into,To}{Option,Either,Result} traits. Expanded, that is: - `AsOption` - `IntoOption` - `ToOption` - `AsEither` - `IntoEither` - `ToEither` - `AsResult` - `IntoResult` - `ToResult` These were defined for each other but never *used* anywhere. They are all trivial and so removal will have negligible effect upon anyone. `Either` has fallen out of favour (and its implementation of these traits of dubious semantics), `Option<T>` → `Result<T, ()>` was never really useful and `Result<T, E>` → `Option<T>` should now be done with `Result.ok()` (mirrored with `Result.err()` for even more usefulness). In summary, there's really no point in any of these remaining. ### Rename To{Str,Bytes}Consume traits to Into*. That is: - `ToStrConsume` → `IntoStr`; - `ToBytesConsume` → `IntoBytes`.
2013-12-16Fallout of rewriting std::commAlex Crichton-0/+1
2013-12-14Add "proc" as keyword to emacs modeMicah Chalmer-1/+1
2013-12-15Rename To{Str,Bytes}Consume traits to Into*.Chris Morgan-2/+2
That is: - `ToStrConsume` → `IntoStr`; - `ToBytesConsume` → `IntoBytes`.
2013-12-14Suppress warnings in run-pass testsKiet Tran-14/+22
2013-12-13auto merge of #10849 : adridu59/rust/patch-css, r=alexcrichtonbors-0/+0
rustdoc: - fix search-bar layout doc: CSS: - switch to native pandoc toc depth - rm some dead code - clamp width to be readable (we're not Wikipedia!) - don't background-color titles, it's bloating - make syntax-highlighting colors inline with rust-lang.org - space indents @alexcrichton
2013-12-13doc: CSS changes + commit improved faviconAdrien Tétar-0/+0
2013-12-11auto merge of #10888 : chris-morgan/rust/2013-12-10-vim-updates, r=thestingerbors-10/+13
### Fix up float highlighting in Vim. This fixes a regression introduced in #10793. Having a colorscheme which highlights Float the same as Number (I believe most do), I hadn't noticed that having the special case of "5." floats (which was one of the added features in #10793) last made it take precedence, and so it was left to @thestinger to notice it. The regression meant that in `5.0`, the `5.` was a `rustFloat` (linked by default to `Float`) and the `0` was a `rustDecNumber` (linked by default to `Number`), and for `5.0f32` the `5.` was a `rustFloat` and the `0f32` was a second `rustFloat` (and thus appeared correctly, though for the wrong reason). ### Vim keyword highlighting improvements. - Removed the `log` keyword; - Removed keyword duplicates; - Highlighted `const` as `Error` rather than `StorageClass`; and - Highlighted all the reserved keywords as `Error` rather than as `Keyword`. (As usual, these highlightings can be overridden if desired.)
2013-12-10auto merge of #10593 : metajack/rust/pkgid-hash, r=brsonbors-0/+1
This replaces the link meta attributes with a pkgid attribute and uses a hash of this as the crate hash. This makes the crate hash computable by things other than the Rust compiler. It also switches the hash function ot SHA1 since that is much more likely to be available in shell, Python, etc than SipHash. Fixes #10188, #8523.
2013-12-10Make crate hash stable and externally computable.Jack Moffitt-0/+1
This replaces the link meta attributes with a pkgid attribute and uses a hash of this as the crate hash. This makes the crate hash computable by things other than the Rust compiler. It also switches the hash function ot SHA1 since that is much more likely to be available in shell, Python, etc than SipHash. Fixes #10188, #8523.
2013-12-10Vim keyword highlighting improvements.Chris Morgan-5/+7
- Removed the `log` keyword; - Removed keyword duplicates; - Highlighted `const` as `Error` rather than `StorageClass`; and - Highlighted all the reserved keywords as `Error` rather than as `Keyword`. (As usual, these highlightings can be overridden if desired.)
2013-12-10Fix up float highlighting in Vim.Chris Morgan-5/+6
This fixes a regression introduced in #10793. Having a colorscheme which highlights Float the same as Number (I believe most do), I hadn't noticed that having the special case of "5." floats (which was one of the added features in #10793) last made it take precedence, and so it was left to @thestinger to notice it. The regression meant that in `5.0`, the `5.` was a `rustFloat` (linked by default to `Float`) and the `0` was a `rustDecNumber` (linked by default to `Number`), and for `5.0f32` the `5.` was a `rustFloat` and the `0f32` was a second `rustFloat` (and thus appeared correctly, though for the wrong reason).
2013-12-09Add defun motions for rust-mode.S Pradeep Kumar-25/+269
Specifically, we can now use: + beginning-of-defun + end-of-defun + mark-defun where "defun" means a Rust item. + Add tests in rust-mode-tests.el + Fix indentation in rust-mode-tests.el + Add support for trait to Imenu
2013-12-08Add dead-code warning passKiet Tran-0/+1
2013-12-06auto merge of #10797 : pradeep90/rust/rust-mode-changes, r=brsonbors-18/+33
+ Delete trailing whitespace.
2013-12-06Link rustllvm statically, and distribute a static snapshotAlex Crichton-28/+62
In order to keep up to date with changes to the libraries that `llvm-config` spits out, the dependencies to the LLVM are a dynamically generated rust file. This file is now automatically updated whenever LLVM is updated to get kept up-to-date. At the same time, this cleans out some old cruft which isn't necessary in the makefiles in terms of dependencies. Closes #10745 Closes #10744
2013-12-04Add Imenu support for rust-mode.S Pradeep Kumar-18/+33
+ Delete trailing whitespace.
2013-12-04Improve various Vim syntax highlighting things.Chris Morgan-36/+42
- Implement comment nesting (the implementation is quite ugly at present and is not quite correct; note the big comment in that area). - Highlight invalid escape sequences as errors. - Fix up various inconsistencies and incorrectnesses in number highlighting. - Update prelude items (``std::io::{Buffer, Writer, Reader, Seek}``). - Highlight the ``proc`` keyword. - Remove %-formatting sequence highlighting (a relic of old formatting). - Don't highlight TODO in strings (it's unconventional).
2013-11-30Test fixes and merge conflictsAlex Crichton-0/+1
2013-11-29Add a new run-make test directoryAlex Crichton-0/+26
This infrastructure is meant to support runnings tests that involve various interesting interdependencies about the types of crates being linked or possibly interacting with C libraries. The goal of these make tests is to not restrict them to a particular test runner, but allow each test to run its own tests. To this end, there is a new src/test/run-make directory which has sub-folders of tests. Each test requires a `Makefile`, and running the tests constitues simply running `make` inside the directory. The new target is `check-stageN-rmake`. These tests will have the destination directory (as TMPDIR) and the local rust compiler (as RUSTC) passed along to them. There is also some helpful cross-platform utilities included in src/test/run-make/tools.mk to aid with compiling C programs and running them. The impetus for adding this new test suite is to allow various interesting forms of testing rust linkage. All of the tests initially added are various flavors of compiling Rust and C with one another as well as just making sure that rust linkage works in general. Closes #10434
2013-11-29Statically link librustrt to libstdAlex Crichton-4/+0
This commit alters the build process of the compiler to build a static librustrt.a instead of a dynamic version. This means that we can stop distributing librustrt as well as default linking against it in the compiler. This also means that if you attempt to build rust code without libstd, it will no longer work if there are any landing pads in play. The reason for this is that LLVM and rustc will emit calls to the various upcalls in librustrt used to manage exception handling. In theory we could split librustrt into librustrt and librustupcall. We would then distribute librustupcall and link to it for all programs using landing pads, but I would rather see just one librustrt artifact and simplify the build process. The major benefit of doing this is that building a static rust library for use in embedded situations all of a sudden just became a whole lot more feasible. Closes #3361
2013-11-27auto merge of #10621 : Florob/rust/unicode63, r=cmrbors-15/+17
This update the unicode.rs file to the latest Unicode version released 2013-09-30.
2013-11-27Be more strict about doc commentsCorey Richardson-2/+2
Previously, `//// foo` and `/*** foo ***/` were accepted as doc comments. This changes that, so that only `/// foo` and `/** foo ***/` are accepted. This confuses many newcomers and it seems weird. Also update the manual for these changes, and modernify the EBNF for comments. Closes #10638
2013-11-27Fix handling of upper/lowercase, and whitespaceFlorian Zeitz-10/+12
2013-11-27Update unicode.py to reflect language changesFlorian Zeitz-5/+5
2013-11-26Turn off attribute_usage warning on check-fastklutzy-12/+16
2013-11-26rustc: Add lint for misplaced crate attributesklutzy-0/+1
2013-11-21Fix --local-rust-root option on Windowsklutzy-10/+11
2013-11-19add path environmentsYoung-il Choi-5/+6
2013-11-13be more robust when removing download artifacts and remove bogus raise statementBenjamin Peterson-2/+5
2013-11-11Move std::rt::io to std::ioAlex Crichton-2/+2
2013-11-08auto merge of #10346 : klutzy/rust/mingw64-32-fix, r=alexcrichtonbors-0/+5
Fixes #10327
2013-11-08Define WSAPOLLFD only on mingw 4.xklutzy-0/+5
Fixes #10327