about summary refs log tree commit diff
path: root/src/etc
AgeCommit message (Collapse)AuthorLines
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
2015-01-20Make error code registration work again. #19624Brian Anderson-0/+70
2015-01-21Rollup merge of #21123 - visualfc:master, r=alexcrichtonBarosl LEE-1/+1
example: let m = "hello \ world";
2015-01-21Rollup merge of #21377 - iKevinY:speedy-tidy, r=huonwBarosl LEE-8/+8
`x in y` is more Pythonic than `y.find(x) != -1`. I believe it runs quite a bit faster as well (though it's probably not a bottleneck of the Travis builds): ```bash $ python -m timeit '"abc".find("a") != -1' 1000000 loops, best of 3: 0.218 usec per loop $ python -m timeit '"a" in "abc"' 10000000 loops, best of 3: 0.0343 usec per loop ```
2015-01-21Rollup merge of #21369 - iKevinY:no-travis-notes, r=sanxiynBarosl LEE-2/+2
Updated `tidy.py` to skip printing NOTEs if the [`TRAVIS`](http://docs.travis-ci.com/user/ci-environment/#Environment-variables) environment variable is set.
2015-01-21Rollup merge of #21326 - look:nano-syntax-highlighting, r=kmcallisterBarosl LEE-0/+35
rust.nanorc provides syntax highlighting for Rust. An attempt has been made to make the syntax highlighting look good on both dark and light terminals. Issue #21286. This PR is dedicated to @substars and nano-lovers everywhere.
2015-01-21Rollup merge of #20998 - estsauver:20984, r=steveklabnikBarosl LEE-9/+9
There are a large number of places that incorrectly refer to deriving in comments, instead of derives. If someone could look at src/etc/generate-deriving-span-tests.py, I'm not sure how those tests were passing before/if they were.
2015-01-18Make date of nightly in rustup match server TZEarl St Sauver-3/+8
2015-01-18Use 'in' instead of 'find()' in tidy.pyKevin Yap-8/+8
'x in y' is more Pythonic and faster than 'y.find(x) != -1'.
2015-01-18Ignore NOTEs when Travis runs `make tidy`Kevin Yap-2/+2
Only print NOTE warnings if the 'TRAVIS' environment variable has not been set. Addresses #21322.
2015-01-18tests: Warn on the trailing backslash in the template.Kang Seonghoon-0/+3
2015-01-17Passable nano syntax highlightingLuke Francl-0/+35
rust.nanorc provides syntax highlighting for Rust. An attempt has been made to make the syntax highlighting look good on both dark and light terminals. Issue #21286.
2015-01-17s/deriving/derives in Comments/DocsEarl St Sauver-9/+9
There are a large number of places that incorrectly refer to deriving in comments, instead of derives. Fixes #20984
2015-01-18tests: Tidy and allows multi-line htmldocck commands.Kang Seonghoon-3/+35
2015-01-18tests: Add htmldocck.py script for the use of Rustdoc tests.Kang Seonghoon-0/+318
The script is intended as a tool for doing every sort of verifications amenable to Rustdoc's HTML output. For example, link checkers would go to this script. It already parses HTML into a document tree form (with a slight caveat), so future tests can make use of it. As an example, relevant `rustdoc-*` run-make tests have been updated to use `htmldocck.py` and got their `verify.sh` removed. In the future they may go to a dedicated directory with htmldocck running by default. The detailed explanation of test scripts is provided as a docstring of htmldocck. cc #19723
2015-01-17rustup: Don't attempt to download SHA if it existsMichael Pankov-4/+21
This way installer can work fully in offline mode. Put pre-downloaded files (rust-nightly-x86_64-unknown-linux-gnu.tar.gz and rust-nightly-x86_64-unknown-linux-gnu.tar.gz.sha256) into the $HOME/.rustup/YYYY-MM-DD directory as it would be done by script itself. Specify --save and --date=YYYY-MM-DD when running. Files will be picked up and used to install in offline mode.
2015-01-16Port indenter to pythonRicho Healey-13/+16
2015-01-16Remove unused scriptRicho Healey-34/+0
2015-01-14fix string multi line connector '\' for katevisualfc-1/+1
example: let m = "hello \ world";
2015-01-12auto merge of #20894 : swgillespie/rust/emacs-issue-20422, r=pnkfelixbors-0/+5
rust-mode.el recently started highlighting keywords that were substrings of identifiers. Identifiers such as `xyz_type` would have `type` highlighted, which isn't normal. This patch re-introduces `_` as a word constituent, so that keywords following a `_` don't get syntax highlighted as keywords. Fixes issue #20422
2015-01-11Remove range functionTim Brooks-2/+0
2015-01-11Remove old number literal suffixes from Vim syntaxTim Brooks-5/+5
2015-01-09Mark _ as a word constituent to avoid highlighting parts of identifiers as ↵Sean Gillespie-0/+5
keywords
2015-01-07Merge pull request #20689 from huonw/editor-_sizebors-2/+6
Update editor syntax files for isize/usize. Reviewed-by: nikomatsakis
2015-01-07Update editor syntax files for isize/usize.Huon Wilson-2/+6
Yay, syntax highlighting.
2015-01-07auto merge of #20620 : brson/rust/relnotes, r=huonwbors-1/+1
A whole lot happened this cycle. I tried to highlight the best stuff. Please review and note important stuff I'm missing or foolish mistakes.
2015-01-06Bump some version numbersBrian Anderson-1/+1
2015-01-06rollup merge of #20643: scialex/update-zshAlex Crichton-69/+93
2015-01-06rollup merge of #20557: cactorium/prettyprintersAlex Crichton-22/+29
As per https://github.com/rust-lang/rust/issues/20405. To be more precise, the changes just the processing of enums when the name is "RUST$ENCODED$ENUM$..." so it correctly parses when there is more than one number encoding the location of the field it's looking for to determine state of the enum
2015-01-06update zsh rust completionsAlexander Light-69/+93
2015-01-05rollup merge of #20482: kmcallister/macro-reformAlex Crichton-1/+1
Conflicts: src/libflate/lib.rs src/libstd/lib.rs src/libstd/macros.rs src/libsyntax/feature_gate.rs src/libsyntax/parse/parser.rs src/libsyntax/show_span.rs src/test/auxiliary/macro_crate_test.rs src/test/compile-fail/lint-stability.rs src/test/run-pass/intrinsics-math.rs src/test/run-pass/tcp-connect-timeouts.rs
2015-01-05rollup merge of #20583: csouth3/vim-syntaxAlex Crichton-41/+19
The prelude has changed quite a bit since the list that Vim is aware of has been updated. This pull request brings it up to date with `std::prelude`.
2015-01-05Reserve the keyword 'macro'Keegan McAllister-1/+1
2015-01-05Update reexports in vim syntax fileChase Southwood-41/+19
2015-01-05kate syntax highlight: update keyword listYork Xiang-4/+18
2015-01-04Pylinted and slightly better commentedKelvin Ly-6/+10
2015-01-04Added fix to LLDB formatterKelvin Ly-16/+16
2015-01-04Fixed GDB pretty printer moreKelvin Ly-2/+2
2015-01-04Fixed GDB pretty printer to work on enums correctlyKelvin Ly-5/+8
2015-01-04Merge pull request #20452 from brson/rustupbors-33/+103
Move rustup to the combined installer Reviewed-by: brson
2015-01-04Merge pull request #20442 from csouth3/vim-syntaxbors-4/+4
Fix vim syntax highlighting for `derive` Reviewed-by: alexcrichton
2015-01-03Download from the combined installerBrian Anderson-1/+1
2015-01-03rustup: Long linesBrian Anderson-1/+4
2015-01-03auto merge of #20456 : brson/rust/packaging2, r=alexcrichtonbors-388/+0
2015-01-02Remove .pkg and .exe installersBrian Anderson-388/+0