about summary refs log tree commit diff
path: root/src/etc
AgeCommit message (Collapse)AuthorLines
2014-07-28collections, unicode: Add support for NFC and NFKCFlorian Zeitz-2/+33
2014-07-26Relicense shootout-k-nucleotide.rsGuillaume Pinot-0/+1
Everyone agreed except @thestinger. As @thestinger contribution on this file is trivial, we can relicense it. Related to #14248, close #15330
2014-07-24auto merge of #15424 : TeXitoi/rust/relicense-shootout-threadring, r=brsonbors-0/+1
Everyone agreed. Related to #14248, close #15328 @brson OK?
2014-07-24Improved the tags impl regexJames Hurst-1/+1
2014-07-23vim: Add MutableSeqBrian Anderson-1/+1
2014-07-21Fix :syn-include usage of Vim filetype.Chris Morgan-3/+5
Here’s what the Vim manual says in *:syn-include*: :sy[ntax] include [@{grouplist-name}] {file-name} All syntax items declared in the included file will have the "contained" flag added. In addition, if a group list is specified, all top-level syntax items in the included file will be added to that list. We had two rules for `rustModPath`, one `contained` and the other not. The effect was that the second (now renamed to `rustModPathInUse`) was being included in the group list, and thus that all identifiers were being highlighted as `Include`, which is definitely not what we wanted.
2014-07-21Highlight $(…)* and $foo in Vim.Chris Morgan-0/+7
2014-07-16auto merge of #15573 : michaelwoerister/rust/lldb-tests-rebased-09-Jul, ↵bors-3/+232
r=alexcrichton This PR adds the LLDB autotests to the debuginfo test suite so I don't have to keep rebasing them locally. They are still disabled by default in `tests.mk`. One of the commits also contains a Python pretty printer which can make LLDB print values with Rust syntax. This was mainly added to deal with output format differences between LLDB versions but you can also use it for your normal LLDB debugging sessions. ``` // The following LLDB commands will load and activate the Rust printers command script import ./src/etc/lldb_rust_formatters.py type summary add --no-value --python-function lldb_rust_formatters.print_val -x .* --category Rust type category enable Rust ``` Expect some rough edges with these, they have not been tested apart from there use in the autotests...
2014-07-16auto merge of #15476 : kballard/rust/more_vim_tweaks, r=chrisbors-7/+31
Tweak the text editing settings (softtabstop, textwidth, etc). Add some settings to turn on folding and colorcolumn. Add the undo_ftplugin changes that my previous patch forgot.
2014-07-16debuginfo: Remove atexit()-debugger shutdown from lldb_batchmode.pyMichael Woerister-3/+0
The shutdown call would always result in an exception being printed to standard error.
2014-07-16debuginfo: Add python formatters that allow LLDB to print values with Rust ↵Michael Woerister-0/+232
syntax
2014-07-14add Graphemes iterator; tidy unicode exportskwantam-5/+124
- Graphemes and GraphemeIndices structs implement iterators over grapheme clusters analogous to the Chars and CharOffsets for chars in a string. Iterator and DoubleEndedIterator are available for both. - tidied up the exports for libunicode. crate root exports are now moved into more appropriate module locations: - UnicodeStrSlice, Words, Graphemes, GraphemeIndices are in str module - UnicodeChar exported from char instead of crate root - canonical_combining_class is exported from str rather than crate root Since libunicode's exports have changed, programs that previously relied on the old export locations will need to change their `use` statements to reflect the new ones. See above for more information on where the new exports live. closes #7043 [breaking-change]
2014-07-12auto merge of #15610 : brson/rust/0.12.0, r=alexcrichtonbors-1/+1
2014-07-12auto merge of #15597 : brson/rust/ldconfig, r=pcwaltonbors-3/+12
If ldconfig fails it emits a warning. This is very possible when installing to a non-system directory, so the warning tries to indicate that it may not be a problem.
2014-07-11Only run ldconfig on LinuxBrian Anderson-5/+3
2014-07-11Bump version to 0.12.0-preBrian Anderson-1/+1
2014-07-10install: Run ldconfig when installing on Unix. Closes #15596.Brian Anderson-1/+13
If ldconfig fails it emits a warning. This is very possible when installing to a non-system directory, so the warning tries to indicate that it may not be a problem.
2014-07-10install: Make the LD_LIRARY_PATH warning more aestheticBrian Anderson-2/+1
2014-07-10Some documentation fixes and improvementsYuri Albuquerque-3/+7
2014-07-09auto merge of #15550 : alexcrichton/rust/install-script, r=brsonbors-6/+35
This adds detection of the relevant LD_LIBRARY_PATH-like environment variable and appropriately sets it when testing whether binaries can run or not. Additionally, the installation prints a recommended value if one is necessary. Closes #15545
2014-07-09auto merge of #15283 : kwantam/rust/master, r=alexcrichtonbors-468/+351
Add libunicode; move unicode functions from core - created new crate, libunicode, below libstd - split `Char` trait into `Char` (libcore) and `UnicodeChar` (libunicode) - Unicode-aware functions now live in libunicode - `is_alphabetic`, `is_XID_start`, `is_XID_continue`, `is_lowercase`, `is_uppercase`, `is_whitespace`, `is_alphanumeric`, `is_control`, `is_digit`, `to_uppercase`, `to_lowercase` - added `width` method in UnicodeChar trait - determines printed width of character in columns, or None if it is a non-NULL control character - takes a boolean argument indicating whether the present context is CJK or not (characters with 'A'mbiguous widths are double-wide in CJK contexts, single-wide otherwise) - split `StrSlice` into `StrSlice` (libcore) and `UnicodeStrSlice` (libunicode) - functionality formerly in `StrSlice` that relied upon Unicode functionality from `Char` is now in `UnicodeStrSlice` - `words`, `is_whitespace`, `is_alphanumeric`, `trim`, `trim_left`, `trim_right` - also moved `Words` type alias into libunicode because `words` method is in `UnicodeStrSlice` - unified Unicode tables from libcollections, libcore, and libregex into libunicode - updated `unicode.py` in `src/etc` to generate aforementioned tables - generated new tables based on latest Unicode data - added `UnicodeChar` and `UnicodeStrSlice` traits to prelude - libunicode is now the collection point for the `std::char` module, combining the libunicode functionality with the `Char` functionality from libcore - thus, moved doc comment for `char` from `core::char` to `unicode::char` - libcollections remains the collection point for `std::str` The Unicode-aware functions that previously lived in the `Char` and `StrSlice` traits are no longer available to programs that only use libcore. To regain use of these methods, include the libunicode crate and `use` the `UnicodeChar` and/or `UnicodeStrSlice` traits: extern crate unicode; use unicode::UnicodeChar; use unicode::UnicodeStrSlice; use unicode::Words; // if you want to use the words() method NOTE: this does *not* impact programs that use libstd, since UnicodeChar and UnicodeStrSlice have been added to the prelude. closes #15224 [breaking-change]
2014-07-09etc: Fix install script for rpath removalAlex Crichton-6/+35
This adds detection of the relevant LD_LIBRARY_PATH-like environment variable and appropriately sets it when testing whether binaries can run or not. Additionally, the installation prints a recommended value if one is necessary.
2014-07-08std: Rename the `ToStr` trait to `ToString`, and `to_str` to `to_string`.Richo Healey-1/+1
[breaking-change]
2014-07-07Remove rust_colorcolumn, set textwidth to 99Kevin Ballard-27/+2
The latest change to aturon/rust-guidelines states that lines must not exceed 99 characters. This gets rid of the 80/100 split, so we don't need to customize colorcolumn amymore.
2014-07-07Set softtabstop, textwidth, and optionally colorcolumnKevin Ballard-4/+32
Setting softtabstop makes <Del> delete 4 spaces as if it were a tab. Setting textwidth allows comments to be wrapped automatically. It's set at 80, which is the recommended line length for Rust programs. There are suggestions that it should be 79, but our current style guide says 80 so that's what we're matching. A new setting g:rust_colorcolumn sets colorcolumn as well, to +1,101. This indicates both the textwidth and the second stricter line length of 100 that our style guide lists.
2014-07-07Define a new setting g:rust_foldKevin Ballard-3/+24
g:rust_fold allows folding to be enabled. This lets the user turn on folding without having to define autocommands.
2014-07-07Add libunicode; move unicode functions from corekwantam-468/+351
- created new crate, libunicode, below libstd - split Char trait into Char (libcore) and UnicodeChar (libunicode) - Unicode-aware functions now live in libunicode - is_alphabetic, is_XID_start, is_XID_continue, is_lowercase, is_uppercase, is_whitespace, is_alphanumeric, is_control, is_digit, to_uppercase, to_lowercase - added width method in UnicodeChar trait - determines printed width of character in columns, or None if it is a non-NULL control character - takes a boolean argument indicating whether the present context is CJK or not (characters with 'A'mbiguous widths are double-wide in CJK contexts, single-wide otherwise) - split StrSlice into StrSlice (libcore) and UnicodeStrSlice (libunicode) - functionality formerly in StrSlice that relied upon Unicode functionality from Char is now in UnicodeStrSlice - words, is_whitespace, is_alphanumeric, trim, trim_left, trim_right - also moved Words type alias into libunicode because words method is in UnicodeStrSlice - unified Unicode tables from libcollections, libcore, and libregex into libunicode - updated unicode.py in src/etc to generate aforementioned tables - generated new tables based on latest Unicode data - added UnicodeChar and UnicodeStrSlice traits to prelude - libunicode is now the collection point for the std::char module, combining the libunicode functionality with the Char functionality from libcore - thus, moved doc comment for char from core::char to unicode::char - libcollections remains the collection point for std::str The Unicode-aware functions that previously lived in the Char and StrSlice traits are no longer available to programs that only use libcore. To regain use of these methods, include the libunicode crate and use the UnicodeChar and/or UnicodeStrSlice traits: extern crate unicode; use unicode::UnicodeChar; use unicode::UnicodeStrSlice; use unicode::Words; // if you want to use the words() method NOTE: this does *not* impact programs that use libstd, since UnicodeChar and UnicodeStrSlice have been added to the prelude. closes #15224 [breaking-change]
2014-07-07librustc (RFC #34): Implement the new `Index` and `IndexMut` traits.Patrick Walton-1/+1
This will break code that used the old `Index` trait. Change this code to use the new `Index` traits. For reference, here are their signatures: pub trait Index<Index,Result> { fn index<'a>(&'a self, index: &Index) -> &'a Result; } pub trait IndexMut<Index,Result> { fn index_mut<'a>(&'a mut self, index: &Index) -> &'a mut Result; } Closes #6515. [breaking-change]
2014-07-04vim: set Rust tab conventionsKevin Ballard-0/+6
2014-07-04Relicense shootout-threadring.rsGuillaume Pinot-0/+1
Everyone agreed. Related to #14248, close #15328
2014-07-04auto merge of #15343 : alexcrichton/rust/0.11.0-release, r=brsonbors-1/+1
2014-07-03remove duplicated slash in install script pathRuud van Asseldonk-1/+1
2014-07-02install: Correct libdir for Windows installs.Mike Boutin-2/+67
Platform-detection code from `configure` copied over to `install.sh` in order to special case the lib dir being `bin` on Windows instead of `lib`. Short-term fix for #13810.
2014-07-02Merge remote-tracking branch 'origin/master' into 0.11.0-releaseAlex Crichton-15/+21
Conflicts: src/libstd/lib.rs
2014-07-02auto merge of #15295 : TeXitoi/rust/relicense-shootout-mandelbrot, r=brsonbors-0/+1
Part of #14248 Main authors: - @Ryman: OK - @TeXitoi: OK - @pcwalton: OK Minor authors: - @brson: OK - @alexcrichton: OK - @kballard: OK Remark: @tedhorst was a main contributor, but its contribution disapear with @pcwalton rewrite at af4ea11 @brson OK?
2014-07-01relicense shootout-mandelbrot.rsGuillaume Pinot-0/+1
Part of #14248 Main authors: - @Ryman: OK - @TeXitoi: OK - @pcwalton: OK Minor authors: - @brson: OK - @alexcrichton: OK - @kballard: OK Remark: @tedhorst was a main contributor, but its contribution disapear with @pcwalton rewrite at af4ea11
2014-07-01Vim syntax file types and traits cleanupAlexandre Gagnon-15/+20
2014-06-27Update to 0.11.0 0.11.0Alex Crichton-1/+1
2014-06-24auto merge of #14952 : alexcrichton/rust/const-unsafe-pointers, r=brsonbors-2/+1
This does not yet change the compiler and libraries from `*T` to `*const T` as it will require a snapshot to do so. cc #7362 --- Note that the corresponding RFC, https://github.com/rust-lang/rfcs/pull/68, has not yet been accepted. It was [discussed at the last meeting](https://github.com/rust-lang/rust/wiki/Meeting-weekly-2014-06-10#rfc-pr-68-unsafe-pointers-rename-t-to-const-t) and decided to be accepted, however. I figured I'd get started on the preliminary work for the RFC that will be required regardless.
2014-06-23auto merge of #15100 : rapha/rust/master, r=alexcrichtonbors-1/+1
/usr/bin/env appears to be more portable.
2014-06-23Change /bin/env to /usr/bin/env in helper python script, as it is more portableRaphael Speyer-1/+1
2014-06-22Update few files after comparison traits renamingPiotr Jawniak-4/+4
There were still Total{Ord,Eq} in docs and src/etc
2014-06-18Deprecate the bytes!() macro.Simon Sapin-0/+138
Replace its usage with byte string literals, except in `bytes!()` tests. Also add a new snapshot, to be able to use the new b"foo" syntax. The src/etc/2014-06-rewrite-bytes-macros.py script automatically rewrites `bytes!()` invocations into byte string literals. Pass it filenames as arguments to generate a diff that you can inspect, or `--apply` followed by filenames to apply the changes in place. Diffs can be piped into `tip` or `pygmentize -l diff` for coloring.
2014-06-18Vim: highlight invalid characters in char literals.Chris Morgan-2/+7
2014-06-18Vim: highlight escapes for byte literals.Chris Morgan-7/+11
2014-06-18Add commands :RustEmitIr and :RustEmitAsmKevin Ballard-0/+62
2014-06-18Write documentation for the Rust vim pluginKevin Ballard-25/+131
2014-06-18Rename :Run and :Expand to :RustRun and :RustExpandKevin Ballard-17/+17
2014-06-18vim: Add :Run and :Expand commandsKevin Ballard-37/+265
Define a command :Run to compile and run the current file. This supports unnamed buffers (by writing to a temporary file). See the comment above the command definition for notes on usage. Define <D-r> and <D-R> mappings for :Run to make it easier to invoke in MacVim. Define a command :Expand to display the --pretty expanded output for the current file. This can be configured to use different pretty types. See the comment above the command definition for notes on usage. Create an autoload file and put function definitions there to speed up load time.
2014-06-17emacs: Remove outdated references to ~ in testsTom Jakubowski-3/+3