about summary refs log tree commit diff
path: root/src/etc
AgeCommit message (Collapse)AuthorLines
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
2015-01-22Make `make tidy` Python scripts more idiomaticKevin Yap-32/+21
Also makes errorck.py and tidy.py compatible with Python 3.
2015-01-21Remove 'since' from unstable attributesBrian Anderson-3/+7
2015-01-21Minor fixesBrian Anderson-10/+11
2015-01-21Add a lint for library featuresBrian Anderson-0/+254
Does a sanity check of the version numbers.
2015-01-21rollup merge of #21289: brson/errorcodesAlex Crichton-0/+70
This does the bare minimum to make registration of error codes work again. After this patch, every call to `span_err!` with an error code gets that error code validated against a list in that crate and a new tidy script `errorck.py` validates that no error codes are duplicated globally. There are further improvements to be made yet, detailed in #19624. r? @nikomatsakis
2015-01-21rollup merge of #21274: estsauver/21270Alex Crichton-3/+8
The timezone of the server that builds rustc nightlies appears to be in UTC. From what I can tell, it builds the nightlies at 0300 UTC, which takes about ~15 minutes. So, there were a couple options here for which offset to use. UTC+3 would ensure that you always got the latest rust, but it would mean the script is broken ~15/20 minutes a day. UTC+4 means users get a stale nightly for 45 minutes, but that feels okay to me. Ideally, buildbot would publish the "current" nightly, but that seems unneeded relative to fixing it for all Timezones quickly. Fixes #21270
2015-01-21rollup merge of #21138: mkpankov/masterAlex Crichton-4/+21
When combined with '--save' and '--date', it uses previously saved tarball, making possible to re-install in offline mode. r?
2015-01-21rollup merge of #19913: KOMON/rust-mode-emacs-indentationAlex Crichton-3/+30
I added an option to auto-indent method chains to line up along their '.' operators. Like so: ``` let input = io::stdin().readline() .ok() .expect("Failed to read line"); ``` The old default would indent like so: ``` let input = io::stdin().readme() .ok() .expect("Failed to read line"); ``` The Rust guide explicitly condones the former, so I thought it would be nice for the emacs mode to support it. It's off by default, you have to set ```rust-indent-method-chain``` to ```t``` via your .emacs or the customize menu
2015-01-21Auto merge of #21242 - richo:no-perl, r=brsonbors-47/+16
There's only one build-critical path in which perl is used, and it was to do a text replacement trivially achievable with sed(1). I ported the indenter script because it [appears to be used][indenter], but removed check links because it appears to be entirely out of date. [indenter]: https://github.com/rust-lang/rust/blob/master/src/librustc/util/common.rs#L60-70
2015-01-20Changed rust-mode code for tabs -> spacesDaniel Raloff-20/+20