summary refs log tree commit diff
path: root/src/etc
AgeCommit message (Collapse)AuthorLines
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
2015-02-05Address review feedbackBrian Anderson-60/+30
2015-02-05Clean up tidy scripts, coverage, performanceBrian Anderson-54/+163
This restructures tidy.py to walk the tree itself, and improves performance considerably by not loading entire files into buffers for licenseck. Splits build rules into 'tidy', 'tidy-basic', 'tidy-binaries', 'tidy-errors', 'tidy-features'.
2015-02-05Polish errorck and featureck UIBrian Anderson-5/+5
2015-02-04Auto merge of #21892 - huonw:deprecate-rand, r=alexcrichtonbors-2/+1
Use [`rand`](https://crates.io/crates/rand) and [`derive_rand`](https://crates.io/crates/derive_rand) from crates.io. [breaking-change]
2015-02-04Deprecate in-tree `rand`, `std::rand` and `#[derive(Rand)]`.Huon Wilson-2/+1
Use the crates.io crate `rand` (version 0.1 should be a drop in replacement for `std::rand`) and `rand_macros` (`#[derive_Rand]` should be a drop-in replacement). [breaking-change]
2015-02-02rollup merge of #21787: alexcrichton/std-envAlex Crichton-0/+1
Conflicts: src/libstd/sys/unix/backtrace.rs src/libstd/sys/unix/os.rs
2015-02-01std: Add a new `env` moduleAlex Crichton-0/+1
This is an implementation of [RFC 578][rfc] which adds a new `std::env` module to replace most of the functionality in the current `std::os` module. More details can be found in the RFC itself, but as a summary the following methods have all been deprecated: [rfc]: https://github.com/rust-lang/rfcs/pull/578 * `os::args_as_bytes` => `env::args` * `os::args` => `env::args` * `os::consts` => `env::consts` * `os::dll_filename` => no replacement, use `env::consts` directly * `os::page_size` => `env::page_size` * `os::make_absolute` => use `env::current_dir` + `join` instead * `os::getcwd` => `env::current_dir` * `os::change_dir` => `env::set_current_dir` * `os::homedir` => `env::home_dir` * `os::tmpdir` => `env::temp_dir` * `os::join_paths` => `env::join_paths` * `os::split_paths` => `env::split_paths` * `os::self_exe_name` => `env::current_exe` * `os::self_exe_path` => use `env::current_exe` + `pop` * `os::set_exit_status` => `env::set_exit_status` * `os::get_exit_status` => `env::get_exit_status` * `os::env` => `env::vars` * `os::env_as_bytes` => `env::vars` * `os::getenv` => `env::var` or `env::var_string` * `os::getenv_as_bytes` => `env::var` * `os::setenv` => `env::set_var` * `os::unsetenv` => `env::remove_var` Many function signatures have also been tweaked for various purposes, but the main changes were: * `Vec`-returning APIs now all return iterators instead * All APIs are now centered around `OsString` instead of `Vec<u8>` or `String`. There is currently on convenience API, `env::var_string`, which can be used to get the value of an environment variable as a unicode `String`. All old APIs are `#[deprecated]` in-place and will remain for some time to allow for migrations. The semantics of the APIs have been tweaked slightly with regard to dealing with invalid unicode (panic instead of replacement). The new `std::env` module is all contained within the `env` feature, so crates must add the following to access the new APIs: #![feature(env)] [breaking-change]
2015-02-01openbsd supportSébastien Marie-3/+6
2015-01-30rollup merge of #21738: steveklabnik/move_out_editorsAlex Crichton-3617/+0
As we grow, these don't belong in-tree. http://internals.rust-lang.org/t/moving-editor-highlighting-into-their-own-repos/1395 * https://github.com/rust-lang/rust.vim * https://github.com/rust-lang/rust-mode * https://github.com/rust-lang/gedit-config * https://github.com/rust-lang/kate-config * https://github.com/rust-lang/nano-config * https://github.com/rust-lang/zsh-config
2015-01-29Pull configs out into individual repositoriesSteve Klabnik-3617/+0
As we grow, these don't belong in-tree. http://internals.rust-lang.org/t/moving-editor-highlighting-into-their-own-repos/1395 * https://github.com/rust-lang/rust.vim * https://github.com/rust-lang/rust-mode * https://github.com/rust-lang/gedit-config * https://github.com/rust-lang/kate-config * https://github.com/rust-lang/nano-config * https://github.com/rust-lang/zsh-config
2015-01-29Rollup merge of 21643 - semarie:break-local_stage0, r=brsonManish Goregaokar-3/+0
2015-01-28Merge remote-tracking branch 'origin/master' into rollupManish Goregaokar-0/+243
Conflicts: src/libcollections/slice.rs src/libcore/nonzero.rs src/libcore/ops.rs