about summary refs log tree commit diff
path: root/src/etc
AgeCommit message (Collapse)AuthorLines
2015-04-18optimize Unicode tableskwantam-3/+8
Apply optimization described in https://github.com/rust-lang/regex/pull/73#issuecomment-93777126 to rust's copy of `unicode.py`. This shrinks librustc_unicode's tables.rs from 479kB to 456kB, and should improve performance slightly for related operations (e.g., is_alphabetic(), is_xid_start(), etc). In addition, pull in fix from @dscorbett's commit d25c39f86568a147f9b7080c25711fb1f98f056a in regex, which makes `load_properties()` more tolerant of whitespace in the Unicode tables. (This fix does not result in any changes to tables.rs, but could if the Unicode tables change in the future.)
2015-04-16deprecate Unicode functions that will be moved to crates.iokwantam-4/+7
This patch 1. renames libunicode to librustc_unicode, 2. deprecates several pieces of libunicode (see below), and 3. removes references to deprecated functions from librustc_driver and libsyntax. This may change pretty-printed output from these modules in cases involving wide or combining characters used in filenames, identifiers, etc. The following functions are marked deprecated: 1. char.width() and str.width(): --> use unicode-width crate 2. str.graphemes() and str.grapheme_indices(): --> use unicode-segmentation crate 3. str.nfd_chars(), str.nfkd_chars(), str.nfc_chars(), str.nfkc_chars(), char.compose(), char.decompose_canonical(), char.decompose_compatible(), char.canonical_combining_class(): --> use unicode-normalization crate
2015-04-13Auto merge of #24351 - michaelwoerister:named-tuple-fields, r=alexcrichtonbors-16/+24
This PR makes `rustc` emit field names for tuple fields in DWARF. Formerly there was no way of directly accessing the fields of a tuple in GDB and LLDB since there is no C/C++ equivalent to this. Now, the debugger sees the name `__{field-index}` for tuple fields. So you can type for example `some_tuple_val.__2` to get the third tuple component. When pretty printers are used (e.g. via `rust-gdb` or `rust-lldb`) these artificial field names will not clutter tuple rendering (which was the main motivation for not doing this in the past). Solves #21948.
2015-04-13Remove regex module from libunicodeChris Wong-44/+7
The regex crate keeps its own tables now (rust-lang/regex#41) so we don't need them here. [breaking-change]
2015-04-12Add a name for tuple fields in debuginfo so that they can be accessed in ↵Michael Woerister-16/+24
debuggers.
2015-04-11Rollup merge of #24285 - brson:rustup, r=alexcrichtonManish Goregaokar-615/+0
Now lives at https://github.com/rust-lang/rustup r? @alexcrichton
2015-04-10Remove rustup.sh.Brian Anderson-615/+0
Now lives at https://github.com/rust-lang/rustup
2015-04-10Auto merge of #24177 - alexcrichton:rustdoc, r=aturonbors-1/+2
This commit series starts out with more official test harness support for rustdoc tests, and then each commit afterwards adds a test (where appropriate). Each commit should also test and finish independently of all others (they're all pretty separable). I've uploaded a [copy of the documentation](http://people.mozilla.org/~acrichton/doc/std/) generated after all these commits were applied, and a double check on issues being closed would be greatly appreciated! I'll also browse the docs a bit and make sure nothing regressed too horribly.
2015-04-09Auto merge of #24171 - rillian:rustup, r=brsonbors-1/+1
The idea here is if you don't want rust in /usr/local you can put something like this is your .profile: ``` export RUSTUP_PREFIX=$HOME/.local/rust export PATH=$PATH:${RUSTUP_PREFIX}/bin export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:${RUSTUP_PREFIX}/lib ``` Then when you run rustup, it will update the install in ${RUSTUP_PREFIX} without having to remember to pass an explicit --prefix argument every time.
2015-04-07rustdoc: Add a primitive page for raw pointersAlex Crichton-1/+2
Closes #15318
2015-04-07rustup: let RUSTUP_PREFIX env override default prefix.Ralph Giles-1/+1
The idea here is if you don't want rust in /usr/local you can put something like this is your .profile: export RUSTUP_PREFIX=$HOME/.local/rust export PATH=$PATH:${RUSTUP_PREFIX}/bin export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:${RUSTUP_PREFIX}/lib Then when you run rustup, it will update the install in ${RUSTUP_PREFIX} without having to remember to pass an explicit --prefix argument every time.
2015-04-06use normative source for Grapheme class datakwantam-57/+23
@mahkoh points out in #15628 that unicode.py does not use normative data for Grapheme classes. This pr fixes that issue. In addition, GC_RegionalIndicator is renamed GC_Regional_Indicator in order to stay in line with the Unicode class name definitions. I have updated refs in u_str.rs, and verified that there are no refs elsewhere in the codebase. However, in principle someone using the unicode tables for their own purposes might see breakage from this.
2015-04-01rustup: Fix typo in nightlyRicho Healey-1/+1
2015-04-01rustup: Default to the beta channelAlex Crichton-2/+5
Switches rustup to using the beta channel by default
2015-04-01Merge branch 'fix-rustup' of https://github.com/richo/rustAlex Crichton-8/+16
2015-03-31Auto merge of #23678 - richo:check-flightcheck, r=alexcrichtonbors-0/+54
Rationale for this, is that I lurked `ulimit -c unlimited` into my .profile to debug an unrelated crash, that I kept forgetting to set before hand. I then ran the test suite and discovered that I had 150 gigs of core dumps in `/cores`. Very open to another approach, or to setting the limit to something higher than 0, but I think it would be nice if the build system tried to save you from yourself here.
2015-03-28Add support for channel selectionRicho Healey-7/+15
2015-03-28rustup: Fix comment about Darwin's uname -mRicho Healey-1/+1
2015-03-28Fix some typosVadim Petrochenkov-2/+2
2015-03-27check: Reword the warning to be more prescriptiveRicho Healey-3/+5
2015-03-27check: Name the sentinal variable more sanelyRicho Healey-1/+1
2015-03-27check: Fix the check for platform formattingRicho Healey-1/+1
2015-03-27check: Run the rlimit_core check on *BSDRicho Healey-1/+1
2015-03-27check: Add licenseRicho Healey-0/+11
2015-03-27check: Warn users with nonzero RLIMIT_CORERicho Healey-0/+41
2015-03-24Add the other S_I(RWX)(GRP/OTH) for posix `creat`Nicholas Mazzuca-0/+10
2015-03-15Strip trailing whitespaceTamir Duberstein-1/+1
2015-03-15Strip all leading/trailing newlinesTamir Duberstein-3/+1
2015-03-13Rollup merge of #23310 - michaelwoerister:gdb-std-pp, r=alexcrichtonManish Goregaokar-1/+88
```rust Rust: let slice: &[i32] = &[0, 1, 2, 3]; GDB: $1 = &[i32](len: 4) = {0, 1, 2, 3} Rust: let vec = vec![4, 5, 6, 7]; GDB: $2 = Vec<u64>(len: 4, cap: 4) = {4, 5, 6, 7} Rust: let str_slice = \"IAMA string slice!\"; GDB: $3 = \"IAMA string slice!\" Rust: let string = \"IAMA string!\".to_string(); GDB: $4 = \"IAMA string!\" ``` Neat!
2015-03-12debuginfo: Add GDB pretty printers for slices, Vec<>, and String.Michael Woerister-1/+88
2015-03-12debuginfo: Make LLDB pretty printer correctly handle zero-sized fields.Michael Woerister-21/+77
2015-03-05Rollup merge of #23000 - Florob:unicode-FL, r=brsonManish Goregaokar-12/+21
This handles the ranges contained in UnicodeData.txt. Counterintuitively this actually makes the tables shorter.
2015-03-05Rollup merge of #22029 - iKevinY:tidy-changes, r=brsonManish Goregaokar-38/+42
Currently, the list of files linted in `tidy.py` is unordered. It seems more appropriate for more frequently appearing files (like `.rs`) to appear at the top of the list and for \"other files\" to appear at the very end. This PR also changes the wildcard import of `check_license()` into an explicit one. ``` Before: After: * linted 4 .sh files * linted 5034 .rs files * linted 4 .h files * linted 29 .c files * linted 29 .c files * linted 28 .py files * linted 2 .js files * linted 4 .sh files * linted 0 other files * linted 4 .h files * linted 28 .py files * linted 2 .js files * linted 5034 .rs files * linted 0 other files ``` r? @brson
2015-03-03unicode: Properly parse ranges in UnicodeData.txtFlorian Zeitz-12/+21
This handles the ranges contained in UnicodeData.txt. Counterintuitively this actually makes the tables shorter.
2015-03-02Use `const`s instead of `static`s where appropriateFlorian Zeitz-25/+24
This changes the type of some public constants/statics in libunicode. Notably some `&'static &'static [(char, char)]` have changed to `&'static [(char, char)]`. The regexp crate seems to be the sole user of these, yet this is technically a [breaking-change]
2015-02-27Add a way to assert the number of occurrences to htmldocckSeo Sanghyeon-0/+15
2015-02-23Refactor code in tidy.pyKevin Yap-36/+37
- Replace wildcard import with explicit import of `check_license` - Move more logic outside of the `try` block. - Group all helper functions together. - Define `interesting_exts` and `uninteresting_files` at start of file (with the rest of the constant declarations).
2015-02-23Order list of linted files by frequencyKevin Yap-7/+10
Since it makes more sense for .rs files to appear at the top of the list of linted files and "other" files to appear at the end, this commit moves the "other" count outside of the `file_counts` dictionary and sorts the remaining "interesting" files by decreasing frequency.
2015-02-21Auto merge of #21959 - dhuseby:bitrig-support, r=brsonbors-3/+14
This patch adds the necessary pieces to support rust on Bitrig https://bitrig.org
2015-02-17Auto merge of #21774 - ejjeong:enable-test-for-android, r=alexcrichtonbors-1/+2
- Now "make check-stage2-T-aarch64-linux-android-H-x86_64-unknown-linux-gnu" works (#21773) - Fix & enable debuginfo tests for android (#10381) - Fix & enable more tests for android (both for arm/aarch64) - Enable many already-pass tests on android (both for arm/aarch64)
2015-02-17Rollup merge of #22420 - posixphreak:fix-rustup-locale, r=brsonManish Goregaokar-0/+3
Since `tr` converts lowercase to uppercase according to system locale using `LC_CTYPE` environment variable; on some locales, rustup.sh fails to use correct variables names, thus deletes temporarily downloaded files and gives a meaningless error as shown below. This a simple fix which explictly sets `LC_CTYPE` as `C`. Here is what happens without the fix: ``` ➜ projects curl -s https://static.rust-lang.org/rustup.sh | sudo sh rustup: CFG_CURL := /usr/bin/curl (7.22.0) rustup: CFG_TAR := /bin/tar (1.26) rustup: CFG_FILE := /usr/bin/file (5.09) rustup: CFG_SHA256SUM := /usr/bin/sha256sum (256sum) rustup: CFG_SHASUM := /usr/bin/shasum (5.61) rustup: rustup: processing sh args rustup: rustup: CFG_PREFiX := rustup: CFG_DATE := rustup: rustup: validating sh args rustup: rustup: host triple: i686-unknown-linux-gnu rustup: Downloading https://static.rust-lang.org/dist/rust-nightly-i686-unknown-linux-gnu.tar.gz to /tmp/tmp.Wz6F1ToG5z/rust-nightly-i686-unknown-linux-gnu.tar.gz % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 132M 100 132M 0 0 59947 0 0:38:31 0:38:31 --:--:-- 71204 rustup: Downloading https://static.rust-lang.org/dist/rust-nightly-i686-unknown-linux-gnu.tar.gz.sha256 % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 109 100 109 0 0 107 0 0:00:01 0:00:01 --:--:-- 169 rustup: Verifying hash rustup: Extracting /tmp/tmp.Wz6F1ToG5z/rust-nightly-i686-unknown-linux-gnu.tar.gz install: looking for install programs install: install: found mkdir install: found printf install: found cut install: found grep install: found uname install: found tr install: found sed install: found chmod install: install: processing /tmp/tmp.Wz6F1ToG5z/rust-nightly-i686-unknown-linux-gnu/install.sh args install: install: CFG_DESTDiR := install: CFG_PREFiX := /usr/local install: CFG_LiBDiR := /lib install: CFG_MANDiR := /share/man install: install: validating /tmp/tmp.Wz6F1ToG5z/rust-nightly-i686-unknown-linux-gnu/install.sh args install: install: verifying platform can run binaries install: verifying destination is writable mkdir: cannot create directory `': No such file or directory install: error: can't write to destination. consider `sudo`. rustup: error: failed to install Rust ``` Notice how `i` wasn't replaced with `I`. Rust is installed as usual after the fix. Tested on Ubuntu x86 12.04 LTS. I'm not exactly sure if setting LC_CTYPE is the best solution, but there's that.
2015-02-17Rollup merge of #22365 - serejkus:configs-link, r=steveklabnikManish Goregaokar-0/+10
The book in "hello-world" tells that there are configs for some programs and gives a link to main repo's src/etc. Actually, these configs moved to separate repos some days ago. This PR adds a markdown file with links and moves "hello-world" link about editors to point directly to this new file.
2015-02-16rustup: Fix for locale bugposixphreak-0/+3
Since `tr` converts lowercase to uppercase according to system locale using `LC_CTYPE` environment variable; on some locales, rustup.sh fails to use correct variables names, thus deletes temporarily downloaded files and gives a meaningless error as shown below. This a simple fix which explictly sets `LC_CTYPE` as `C`.
2015-02-15markdown file with links to configsElantsev Serj-0/+10
2015-02-15Audit integer types in libunicode, libcore/(char, str) and libstd/asciiVadim Petrochenkov-5/+5
2015-02-11bitrig integrationDave Huseby-3/+14
2015-02-10Add one more depth on android test directory for multiple targetsEunji Jeong-1/+2
2015-02-07Rollup merge of #21994 - iKevinY:featureck-fix, r=brsonManish Goregaokar-2/+2
It seems that `lang_feature_stats` was supposed to refer to `language_feature_stats` instead. r? @brson
2015-02-05Fix name of variable referenced in featureck.pyKevin Yap-2/+2
2015-02-05Tidy fixesBrian Anderson-0/+1