about summary refs log tree commit diff
path: root/src/etc
AgeCommit message (Collapse)AuthorLines
2013-08-16doc: convert remaining uses of core:: to std::.Huon Wilson-3/+3
2013-08-11auto merge of #8410 : luqmana/rust/mcpu, r=sanxiynbors-1/+2
Adds `--target-cpu` flag which lets you choose a more specific target cpu instead of just passing the default, `generic`. It's more or less akin to `-mcpu`/`-mtune` in clang/gcc.
2013-08-10rustc: Add --target-cpu flag to select a more specific processor instead of ↵Luqman Aden-1/+2
the default, 'generic'.
2013-08-10Merge branch 'master' of https://github.com/p2j4d2c/rust into rollupErick Tryzelaar-6/+11
2013-08-08rust-mode: make indentation customizablePaul Collins-6/+11
Add new variable rust-indent-offset, defaulting to the old value, and use it.
2013-08-07Gedit/gtksourceview language spec: add 'in' keywordSimon Sapin-0/+1
2013-08-04Merge pull request #8284 from huonw/emacs-in-kwDaniel Micay-1/+1
etc: add the `in` keyword to the emacs mode.
2013-08-04auto merge of #8254 : brson/rust/libuv-mac-supp, r=pcwaltonbors-0/+13
I suspect that this is a race between process exit and the termination of worker threads used by libuv (if I sleep before exit it doesn't leak). This isn't going to cause any real problems but should probably be fixed at some point. r? @pcwalton cc #8253
2013-08-03auto merge of #8264 : thestinger/rust/snapshot, r=Aatchbors-2/+2
2013-08-03remove obsolete `foreach` keywordDaniel Micay-2/+2
this has been replaced by `for`
2013-08-03etc: add the `in` keyword to the emacs mode.Huon Wilson-1/+1
2013-08-03Vim highlighting: remove `foreach` keywordChris Morgan-1/+1
2013-08-02Suppress a libuv leak on macBrian Anderson-0/+13
I suspect that this is a race between process exit and the termination of worker threads used by libuv (if I sleep before exit it doesn't leak). This isn't going to cause any real problems but should probably be fixed at some point.
2013-08-03Highlight sigils and operators in Vim.Chris Morgan-6/+23
Sigil highlighting isn't perfect (especially how it handles ``&``) but after having used it for a week I feel it to be considerably nicer than nothing. As usual, if you don't like it, you can turn it off easily by overriding the default highlighting. Generics are not handled specially; this means that for something like ``S<T>``, the ``<`` and ``>`` are highlighted as operators. For myself, I like this, and there is no way to make it properly context aware without expanding the syntax matching enormously. Also, special characters are highlighted properly in strings/chars, e.g. ``"\x00"`` or ``'\Ufedcba98'`` appropriately.
2013-07-27auto merge of #8067 : alexcrichton/rust/issue-3636, r=huonwbors-8/+4
Allow some common ones that are good for examples, however. Closes #3636
2013-07-26Deny all warnings by default in doc testsAlex Crichton-8/+4
Allow some common ones that are good for examples, however.
2013-07-26auto merge of #8031 : graydon/rust/emacs-mode-rewrite, r=catamorphismbors-557/+209
The previous mode did a lot of very manual char-at-a-time parsing and was quite fragile and difficult to maintain. I talked to Marijn and he suggested I'd have better luck just rewriting it from scratch. This is the result of that effort; it seems to be faster, a bit easier on the eyes and more-or-less as well behaved when indenting. The algorithm is a bit different I suspect (it was hard to tell the previous one) but I tried to keep it simple and pleasant-looking.
2013-07-24rewrite rust-mode to use font-lock-mode and emacs builtin syntax analysisGraydon Hoare-557/+209
2013-07-24auto merge of #8006 : emillon/rust/issue-6060, r=pcwaltonbors-3/+3
Hello, I made a tiny change to `tidy.py` so that it uses a regexp to find `// NOTE` comments. I could not find an easy way to write an automated test for this but if this is needed and possible I'd be happy to write one. Please note that it also removes extra empty lines that appear after each of these warnings (I believe that there were not wanted). On the performance side, `make tidy` is now a bit slower (running it 10 times in a row takes 71s on my machine, 65s before) but I don't think that it is performance sensitive. Thanks!
2013-07-23auto merge of #7964 : pnkfelix/rust/fsk-issue3994-readme-note, r=huonwbors-0/+5
See #3994.
2013-07-23tidy: allow arbitrary spaces between // and NOTEEtienne Millon-3/+3
`make tidy` now detects `//NOTE`, `// NOTE`, etc. This also removes the extra empty line emitted after each warning. Fixes #6060
2013-07-22Note incompatibility with global-whitespace-mode.Felix S. Klock II-0/+5
See #3994.
2013-07-21Merge pull request #7936 from thestinger/cleanupDaniel Micay-6/+0
rm obsolete no-op lints
2013-07-20rm obsolete no-op lintsDaniel Micay-6/+0
2013-07-19mk: Remove CFG_INSTALL_SNAP logic. #2664Brian Anderson-34/+2
2013-07-18auto merge of #7747 : chris-morgan/rust/vim-compiler-rustc, r=huonwbors-0/+33
Note that this is not actually *used* by default; it is a matter of configuration still, because you might want to: - Compile all .rs files with `rustc %` (where each can be built itself) - Compile all .rs files with `rustc some-file.rs` (where you are editing part of a crate) - Compile with a different tool, such as `make`. (In this case you might put a `~/.vim/after/compiler/rustc.vim` to match such cases, set makeprg and extend errorformat as appropriate. That should probably go in a different compiler mode, e.g. make-rustc.) To try using it, `:compiler rustc`. Then, `:make` on a file you would run `rustc` on will work its magic, invoking rustc. To automate this, you could have something like `autocmd FileType rust compiler rustc` in your Vim config.
2013-07-14add regions, unicode idents, attributes to GtkSourceView language-specsp3d-8/+32
2013-07-12rustc compiler config for Vim.Chris Morgan-0/+33
Note that this is not actually *used* by default; it is a matter of configuration still, because you might want to: - Compile all .rs files with `rustc %` (where each can be built itself) - Compile all .rs files with `rustc some-file.rs` (where you are editing part of a crate) - Compile with a different tool, such as `make`. (In this case you might put a `~/.vim/after/compiler/rustc.vim` to match such cases, set makeprg and extend errorformat as appropriate. That should probably go in a different compiler mode, e.g. make-rustc.) To try using it, `:compiler rustc`. Then, `:make` on a file you would run `rustc` on will work its magic, invoking rustc. To automate this, you could have something like `autocmd FileType rust compiler rustc` in your Vim config.
2013-07-12Fix problem with switching between Rust buffers.Chris Morgan-1/+1
This was also causing trouble if one didn't have delimitMate installed.
2013-07-12Vim syntax: support lifetimes with delimitMate.Chris Morgan-1/+13
When it's a lifetime, a single quotation mark shouldn't have a matching single quotation mark inserted after it, as delimitMate does by default. Note that this is not without problems; a char literal coming after an odd number of lifetime markers will have its quotation marks behave a little strangely. That, however, is not my fault, but delimitMate's: https://github.com/Raimondi/delimitMate/issues/135
2013-07-11Fix Vim indentation for inline closures.Chris Morgan-1/+1
2013-07-11Fix comment indenting properly for Vim files.Chris Morgan-8/+31
Indentation now works correctly on subsequent lines of a multi-line comment, whether there are leaders (` * `) or not. (Formerly it was incorrectly doing a two-space indent if there was no leader.) By default, this no longer puts a ` * ` leader on `/*!` comments, as that appears to be the current convention in the Rust source code, but that can easily be re-enabled if desired: let g:rust_bang_comment_leader = 1
2013-07-10auto merge of #7637 : ↵bors-1/+12
pnkfelix/rust/fsk-guard-against-stale-libraries-issue3225-safeguarded, r=graydon When building Rust libraries (e.g. librustc, libstd, etc), checks for and verbosely removes previous build products before invoking rustc. (Also, when Make variable VERBOSE is defined, it will list all of the libraries matching the object library's glob after the rustc invocation has completed.) When installing Rust libraries, checks for previous libraries in target install directory, but does not remove them. The thinking behind these two different modes of operation is that the installation target, unlike the build tree, is not under the control of this infrastructure and it is not up to this Makefile to decide if the previous libraries should be removed. Fixes #3225 (at least in terms of mitigating the multiple library problem by proactively warning the user about it.)
2013-07-10Do indentation properly in Vim.Chris Morgan-3/+129
The cases that this improves are clearly documented inside the committed file, so this commit message is comparatively brief.
2013-07-10Add a Vim filetype plugin with useful tweaks.Chris Morgan-0/+25
This improves things like doc comment handling when you press Enter and making using `gf` or `<C-W>f` work on a `use x;` statement in the current directory.
2013-07-10A few slight tweaks to the Vim syntax file.Chris Morgan-11/+19
- Add fold support (NOT turned on by default) - Highlight `::` by default - Support the common `NOTE` as an important note - Highlight `assert!` and `fail!` differently - Don't highlight `deriving(...)` except in `#[...]`
2013-07-09Fix #3225: Incorporate feedback from Graydon.Felix S. Klock II-1/+12
Namely, switched in many places to using GNU make provided functions for directory listing and text processing, rather than spawning a shell process to do that work. In the process of the revision, learned about Target-specific variables, which were very applicable to INSTALL_LIB (which, on a per-recipe basis, was always receiving the same actual arguments for its first two formal parameters in every invocation). http://www.gnu.org/software/make/manual/html_node/Target_002dspecific.html (We might be able to make use of those in future refactorings.) ---- Also adds a cleanup pass to get-snapshot.py as well, since the same problem arises when we unpack libraries from the snapshot archive into a build directory with a prior snapshot's artifacts. (I put this step into the python script rather than the makefile because I wanted to delay the cleanup pass until after we have at least successfully downloaded the tarball. That way, if the download fails, you should not destroy the previous unarchived snapshot libraries and build products.) ---- Also reverted whitespace changes to minimize diff. I plan to put them back in in a dedicated commit elsewhere.
2013-07-08Bump version numbers to 0.8-preBrian Anderson-1/+1
2013-07-07auto merge of #7586 : g5pw/rust/master, r=cmrbors-1/+1
This updates the script in src/etc/local_stage0.sh to copy the correct libraries to stage0.
2013-07-05vim: Highlight 0i as numberSeo Sanghyeon-1/+1
2013-07-04Copy the correct libs when using local-rust-rootAljaž "g5pw" Srebrnič-1/+1
This fixes a segfault when configuring rust to use local-rust-root. The libraries were renamed in the 0.6-0.7 transition, and the script was not copying them all. I also removed the line referencing libcore (now libstd).
2013-07-03auto merge of #7523 : huonw/rust/uppercase-statics-lint, r=cmrbors-0/+1
Adds a lint for `static some_lowercase_name: uint = 1;`. Warning by default since it causes confusion, e.g. `static a: uint = 1; ... let a = 2;` => `error: only refutable patterns allowed here`.
2013-07-02auto merge of #7498 : luqmana/rust/cow, r=catamorphismbors-2/+8
Either one works and wget is easier to setup on windows.
2013-07-01rustc: add a lint to enforce uppercase statics.Huon Wilson-0/+1
2013-06-30auto merge of #7487 : huonw/rust/vec-kill, r=cmrbors-12/+26
Continuation of #7430. I haven't removed the `map` method, since the replacement `v.iter().transform(f).collect::<~[SomeType]>()` is a little ridiculous at the moment.
2013-06-30Bump version from 0.7-pre to 0.7Brian Anderson-1/+1
2013-06-30auto merge of #7374 : Jeaye/rust/func_highlight, r=cmrbors-0/+1
This allows for highlighting of function calls for free floating, member, and static functions.
2013-06-30Convert vec::{bsearch, bsearch_elem} to methods.Huon Wilson-2/+2
2013-06-30etc: update etc/unicode.py for the changes made to std::unicode.Huon Wilson-10/+24
2013-06-30configure: Require one of wget or curl.Luqman Aden-2/+8