summary refs log tree commit diff
path: root/src/etc
AgeCommit message (Collapse)AuthorLines
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-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
2015-01-28Rollup merge of #21686 - richo:python-fixes, r=alexcrichtonManish Goregaokar-764/+868
While waiting on some builds I started cleaning up the various python bits and pieces. I'm going to keep poking, want to ping me before the next rollup?
2015-01-27Rollup merge of #21624 - emanueLczirai:vim_syntastic_fix, r=sanxiynManish Goregaokar-1/+1
when saving .rs files under vim do not fail to run the syntax checker error: Unrecognized option: 'parse-only'. due to this commit 953f294ea30253bb5578e3c895d17fcc97c20dce which removed the deprecated flag --parse-only
2015-01-27Fix PEP8 for tidyRicho Healey-14/+22
2015-01-27Fix PEP8 in mirror-all-snapshotsRicho Healey-3/+4
2015-01-27Fix PEP8 for latest-unix-snaps.pyRicho Healey-10/+12
2015-01-27Fix PEP8 for htmldocckRicho Healey-15/+45
2015-01-27Fix PEP8 for generate-keyword-testsRicho Healey-1/+1
2015-01-27Fix PEP8 for extract_grammarRicho Healey-68/+68
2015-01-27Fix PEP8 for errorckRicho Healey-1/+3
2015-01-27Fix PEP8 for check-summary.pyRicho Healey-2/+6
2015-01-27Fix PEP8 in sugarise-doc-commentsRicho Healey-2/+4
2015-01-27Fix PEP8 in snapshot.pyRicho Healey-137/+161
2015-01-27Fix PEP8 in maketestRicho Healey-18/+20
2015-01-27Fix PEP8 in make-win-distRicho Healey-2/+7
2015-01-27Fix PEP8 in lldb_rust_formatters.pyRicho Healey-169/+171
2015-01-27Fix PEP8 in lldb_batchmode.pyRicho Healey-106/+112
2015-01-27make get-snapshot externally usableRicho Healey-16/+20
2015-01-27Fix PEP8 in get-snapshotRicho Healey-34/+34
2015-01-27Fix PEP8 in gdb pretty printerRicho Healey-176/+188
2015-01-26shell 'case' statement don't need 'break'Sébastien Marie-3/+0
the syntax of 'case' is: `case word in [[(] pattern [| pattern] ...) list ;; ] ... esac` `list` don't have to issue `break`. `break` is normally used to exit a `for`, `until` or `while` loop.
2015-01-25Merge remote-tracking branch 'rust-lang/master'Brian Anderson-56/+30
Conflicts: src/libcore/cmp.rs src/libcore/fmt/mod.rs src/libcore/iter.rs src/libcore/marker.rs src/libcore/num/f32.rs src/libcore/num/f64.rs src/libcore/result.rs src/libcore/str/mod.rs src/librustc/lint/builtin.rs src/librustc/lint/context.rs src/libstd/sync/mpsc/mod.rs src/libstd/sync/poison.rs
2015-01-25cleanup: s/impl Copy/#[derive(Copy)]/gJorge Aparicio-3/+1
2015-01-25fix vim syntastic: --parse-only => -Z parse-onlyemanueLczirai-1/+1
when saving .rs files under vim do not fail to run the syntax checker error: Unrecognized option: 'parse-only'. due to this commit 953f294ea30253bb5578e3c895d17fcc97c20dce which removed the deprecated flag --parse-only
2015-01-25featurkck: TypoBrian Anderson-1/+1
2015-01-25Merge remote-tracking branch 'rust-lang/master'Brian Anderson-10/+129
Conflicts: mk/tests.mk src/liballoc/arc.rs src/liballoc/boxed.rs src/liballoc/rc.rs src/libcollections/bit.rs src/libcollections/btree/map.rs src/libcollections/btree/set.rs src/libcollections/dlist.rs src/libcollections/ring_buf.rs src/libcollections/slice.rs src/libcollections/str.rs src/libcollections/string.rs src/libcollections/vec.rs src/libcollections/vec_map.rs src/libcore/any.rs src/libcore/array.rs src/libcore/borrow.rs src/libcore/error.rs src/libcore/fmt/mod.rs src/libcore/iter.rs src/libcore/marker.rs src/libcore/ops.rs src/libcore/result.rs src/libcore/slice.rs src/libcore/str/mod.rs src/libregex/lib.rs src/libregex/re.rs src/librustc/lint/builtin.rs src/libstd/collections/hash/map.rs src/libstd/collections/hash/set.rs src/libstd/sync/mpsc/mod.rs src/libstd/sync/mutex.rs src/libstd/sync/poison.rs src/libstd/sync/rwlock.rs src/libsyntax/feature_gate.rs src/libsyntax/test.rs
2015-01-23Fix bugs in featureck.pyBrian Anderson-4/+9
2015-01-23Deprecated attributes don't take 'feature' names and are paired with ↵Brian Anderson-27/+6
stable/unstable Conflicts: src/libcore/atomic.rs src/libcore/finally.rs src/test/auxiliary/inherited_stability.rs src/test/auxiliary/lint_stability.rs
2015-01-22Use a regex to perform license checkKevin Yap-27/+12