about summary refs log tree commit diff
path: root/src/etc
AgeCommit message (Collapse)AuthorLines
2014-12-29rollup merge of #20317: brson/rust-installer-v2Alex Crichton-6/+0
2014-12-29mk: Package mingw components in unix installer on windowsBrian Anderson-6/+0
This puts stdc++ and the unwinding dll into the main package and creates a separate rust-mingw package for everything else.
2014-12-29rollup merge of #20243: bombless/patch-1Alex Crichton-1/+2
2014-12-29std: Second pass stabilization for `comm`Alex Crichton-2/+2
This commit is a second pass stabilization for the `std::comm` module, performing the following actions: * The entire `std::comm` module was moved under `std::sync::mpsc`. This movement reflects that channels are just yet another synchronization primitive, and they don't necessarily deserve a special place outside of the other concurrency primitives that the standard library offers. * The `send` and `recv` methods have all been removed. * The `send_opt` and `recv_opt` methods have been renamed to `send` and `recv`. This means that all send/receive operations return a `Result` now indicating whether the operation was successful or not. * The error type of `send` is now a `SendError` to implement a custom error message and allow for `unwrap()`. The error type contains an `into_inner` method to extract the value. * The error type of `recv` is now `RecvError` for the same reasons as `send`. * The `TryRecvError` and `TrySendError` types have had public reexports removed of their variants and the variant names have been tweaked with enum namespacing rules. * The `Messages` iterator is renamed to `Iter` This functionality is now all `#[stable]`: * `Sender` * `SyncSender` * `Receiver` * `std::sync::mpsc` * `channel` * `sync_channel` * `Iter` * `Sender::send` * `Sender::clone` * `SyncSender::send` * `SyncSender::try_send` * `SyncSender::clone` * `Receiver::recv` * `Receiver::try_recv` * `Receiver::iter` * `SendError` * `RecvError` * `TrySendError::{mod, Full, Disconnected}` * `TryRecvError::{mod, Empty, Disconnected}` * `SendError::into_inner` * `TrySendError::into_inner` This is a breaking change due to the modification of where this module is located, as well as the changing of the semantics of `send` and `recv`. Most programs just need to rename imports of `std::comm` to `std::sync::mpsc` and add calls to `unwrap` after a send or a receive operation. [breaking-change]
2014-12-29rustup: allow the use of either sha256sum or shasum to verify the download hashErick Tryzelaar-2/+16
2014-12-29rustup: Add support for resuming downloadsErick Tryzelaar-2/+15
2014-12-29rustup: allow rust and cargo snapshot dates to be differentErick Tryzelaar-19/+37
2014-12-29rustup: add caching of old nightliesErick Tryzelaar-9/+40
2014-12-29rustup: Add support for verifying remote hashesErick Tryzelaar-0/+32
2014-12-29auto merge of #19227 : johshoff/rust/master, r=brsonbors-4/+15
Using the current directory may not always be appropriate, for example in the case where it will unnecessarily trigger a backup to be made. The only risk with this change is that systems might not have a mktemp. I am not aware of such a system, but have not tested on Windows. It is working on a basic Ubuntu and OS X installation.
2014-12-28Split overly long lineJohannes Hoff-1/+3
2014-12-26add new-style Unicode escapesbombless-1/+2
2014-12-25auto merge of #20024 : mneumann/rust/dragonfly-fixes3, r=alexcrichtonbors-0/+3
2014-12-24Better temporary directory nameJohannes Hoff-1/+1
2014-12-24Merge branch 'master' into cfg_tmp_dirJohannes Hoff-733/+261
Conflicts: src/etc/rustup.sh
2014-12-23Merge pull request #19886 from brson/rustupbors-1/+1
rustup: Don't do verbose tarball extraction Reviewed-by: alexcrichton
2014-12-19rustc: Start "stabilizing" some flagsAlex Crichton-1/+1
This commit shuffles around some CLI flags of the compiler to some more stable locations with some renamings. The changes made were: * The `-v` flag has been repurposes as the "verbose" flag. The version flag has been renamed to `-V`. * The `-h` screen has been split into two parts. Most top-level options (not all) show with `-h`, and the remaining options (generally obscure) can be shown with `--help -v` which is a "verbose help screen" * The `-V` flag (version flag now) has lost its argument as it is now requested with `rustc -vV` "verbose version". * The `--emit` option has had its `ir` and `bc` variants renamed to `llvm-ir` and `llvm-bc` to emphasize that they are LLVM's IR/bytecode. * The `--emit` option has grown a new variant, `dep-info`, which subsumes the `--dep-info` CLI argument. The `--dep-info` flag is now deprecated. * The `--parse-only`, `--no-trans`, and `--no-analysis` flags have moved behind the `-Z` family of flags. * The `--debuginfo` and `--opt-level` flags were moved behind the top-level `-C` flag. * The `--print-file-name` and `--print-crate-name` flags were moved behind one global `--print` flag which now accepts one of `crate-name`, `file-names`, or `sysroot`. This global `--print` flag is intended to serve as a mechanism for learning various metadata about the compiler itself. No warnings are currently enabled to allow tools like Cargo to have time to migrate to the new flags before spraying warnings to all users.
2014-12-19Several fixes for DragonFly (rebase)Michael Neumann-0/+3
2014-12-18librustc: Always parse `macro!()`/`macro![]` as expressions if notPatrick Walton-1/+1
followed by a semicolon. This allows code like `vec![1i, 2, 3].len();` to work. This breaks code that uses macros as statements without putting semicolons after them, such as: fn main() { ... assert!(a == b) assert!(c == d) println(...); } It also breaks code that uses macros as items without semicolons: local_data_key!(foo) fn main() { println("hello world") } Add semicolons to fix this code. Those two examples can be fixed as follows: fn main() { ... assert!(a == b); assert!(c == d); println(...); } local_data_key!(foo); fn main() { println("hello world") } RFC #378. Closes #18635. [breaking-change]
2014-12-17rollup merge of #19905: AaronFriel/patch-1Alex Crichton-1/+2
Was testing rustup on a very minimal Debian installation and got errors during the install process (error occurred in `install.sh` of the Rust nightly.) Noticed that Rustup was downloading the i686 nightly instead of x86-64. Installing `file` fixed the problem, and this patch adds the probe to ensure file is installed before attempting to use it. There may still be an issue with the i686 installation, I did not investigate further.
2014-12-17rollup merge of #19893: JacobEdelman/patch-1Alex Crichton-1/+1
FIxed the spelling of the word "specific".
2014-12-17rollup merge of #19753: brson/rust-installerAlex Crichton-519/+0
This is just a refactoring of the current installer so that Rust and Cargo use the same codebase. cc #16456
2014-12-16added optional method chain indentations for emacs major modeDaniel Raloff-1/+28
2014-12-15Add probe and var for fileAaron Friel-1/+2
Was testing rustup on a very minimal Debian installation and got errors during the install process (error occurred in `install.sh` of the Rust nightly.) Noticed that Rustup was downloading the i686 nightly instead of x86-64. Installing `file` fixed the problem, and this patch adds the probe to ensure file is installed before attempting to use it. There may still be an issue with the i686 installation, I did not investigate further.
2014-12-16auto merge of #19747 : alexcrichton/rust/slice-one-trait, r=brsonbors-5/+5
This commit collapses the various prelude traits for slices into just one trait: * SlicePrelude/SliceAllocPrelude => SliceExt * CloneSlicePrelude/CloneSliceAllocPrelude => CloneSliceExt * OrdSlicePrelude/OrdSliceAllocPrelude => OrdSliceExt * PartialEqSlicePrelude => PartialEqSliceExt
2014-12-15Fixed a small spelling mistakeJacob Edelman-1/+1
2014-12-15rustup: Don't do verbose tarball extractionBrian Anderson-1/+1
This creates an enormous amount of spew.
2014-12-15rollup merge of #19804: kballard/vim-new-unicode-escapesBrian Anderson-1/+2
2014-12-15rollup merge of #19784: csouth3/vim-syntax-iterBrian Anderson-1/+1
Vim still incorrectly highlights just `ExactSize` as a valid trait name, but the trait has been renamed to `ExactSizeIterator`.
2014-12-15rollup merge of #19775: SimonSapin/gedit-new-unicode-escapeBrian Anderson-0/+1
2014-12-14std: Collapse SlicePrelude traitsAlex Crichton-5/+5
This commit collapses the various prelude traits for slices into just one trait: * SlicePrelude/SliceAllocPrelude => SliceExt * CloneSlicePrelude/CloneSliceAllocPrelude => CloneSliceExt * OrdSlicePrelude/OrdSliceAllocPrelude => OrdSliceExt * PartialEqSlicePrelude => PartialEqSliceExt
2014-12-14auto merge of #19725 : vadimcn/rust/inst-path, r=alexcrichtonbors-2/+2
Change default installation directory to %SYSTEMDRIVE%\Rust. Modify user PATH, rather than system PATH.
2014-12-14Update emacs and vi modes.Niko Matsakis-2/+2
2014-12-13Get rid of all the remaining uses of `refN`/`valN`/`mutN`/`TupleN`Jorge Aparicio-3/+2
2014-12-12vim: Support the new \u{1234} unicode escapesKevin Ballard-1/+2
2014-12-12Update vim syntax highlighting for ExactSizeIteratorChase Southwood-1/+1
2014-12-12gedit language spec: add new-style Unicode escapesSimon Sapin-0/+1
2014-12-11Use rust-installer for installationBrian Anderson-519/+0
This is just a refactoring of the current installer so that Rust and Cargo use the same codebase. cc #16456
2014-12-11Register new snapshotsAlex Crichton-14/+13
2014-12-10Change default installation directory to %SYSTEMDRIVE%\Rust.Vadim Chugunov-2/+2
Modify user PATH, rather than system PATH.
2014-12-09rollup merge of #19604: vadimcn/gcc-lessAlex Crichton-7/+19
- Support gcc-less installation on Windows. To do so in unattended mode run:`<intaller>.exe /TYPE=compact /SILENT`. - Do not require admin privileges to install. cc #19519
2014-12-06- Support gcc-less installation on Windows. To do so in unattended mode ↵Vadim Chugunov-7/+19
run:`<intaller>.exe /TYPE=compact /SILENT`. - Do not require admin privileges to install.
2014-12-05Utilize fewer reexportsCorey Farwell-7/+9
In regards to: https://github.com/rust-lang/rust/issues/19253#issuecomment-64836729 This commit: * Changes the #deriving code so that it generates code that utilizes fewer reexports (in particur Option::* and Result::*), which is necessary to remove those reexports in the future * Changes other areas of the codebase so that fewer reexports are utilized
2014-12-05rollup merge of #19474: luqmana/flCorey Richardson-7/+18
Fixes #19339.
2014-12-05Fall out of the std::sync rewriteAlex Crichton-3/+2
2014-12-03rustup: simplify downloading packagesErick Tryzelaar-8/+9
2014-12-03rustup: extract the tarballs as part of installationErick Tryzelaar-11/+16
2014-12-03rustup: rewrite to protect against truncationErick Tryzelaar-18/+28
This closes #19168. It's possible that if the downloading of `rustup.sh` is interrupted, bad things could happen, such as running a naked "rm -rf /" instead of "rm -rf /path/to/tmpdir". This wraps rustup.sh's functionality in a function that gets called at the last time that should protect us from these truncation errors.
2014-12-03rustup: factor out installing packages into a functionErick Tryzelaar-27/+14
2014-12-03rustup: factor out downloading and extracting the snapshot tarballsErick Tryzelaar-18/+35