about summary refs log tree commit diff
path: root/src/etc
AgeCommit message (Collapse)AuthorLines
2014-12-03rustup: factor out the install flags into a CFG_INSTALL_FLAGS variableErick Tryzelaar-14/+13
2014-12-03rustup: rename TMP_DIR to CFG_TMP_DIRErick Tryzelaar-16/+16
2014-12-03rustup: add a RUST_ prefix to the rust-specific variablesErick Tryzelaar-10/+11
2014-12-03rustup: probe for the existance of tarErick Tryzelaar-2/+3
2014-12-03rustup: make rustup executableErick Tryzelaar-0/+0
2014-12-03whitespace cleanupErick Tryzelaar-1/+1
2014-12-02gdb: Fix pretty printer for nullable-opt enums with fat pointers.Luqman Aden-5/+11
2014-12-02lldb: Fix pretty printer for nullable-opt enums with fat pointers.Luqman Aden-2/+7
2014-11-27Fall back to hard coded download directoryJohannes Hoff-1/+13
If mktemp fails, fall back to a hard coded directory, per @nodakai's feedback.
2014-11-26rollup merge of #19322: DiamondLovesYou/multi-llvmdepsAlex Crichton-61/+40
2014-11-26debuginfo: Fix LLDB pretty printer for enum variants with zero fields.Michael Woerister-4/+7
2014-11-26debuginfo: Add script that allows to conveniently start LLDB in "rust-mode"Michael Woerister-0/+30
2014-11-25Never generate multiple extern {} blocks in mklldeps.py.Richard Diamond-61/+40
2014-11-25auto merge of #19255 : aturon/rust/merge-sync, r=alexcrichton,alexcrichtonbors-4/+3
This patch merges the `libsync` crate into `libstd`, undoing part of the facade. This is in preparation for ultimately merging `librustrt`, as well as the upcoming rewrite of `sync`. Because this removes the `libsync` crate, it is a: [breaking-change] However, all uses of `libsync` should be able to reroute through `std::sync` and `std::comm` instead. r? @alexcrichton
2014-11-24auto merge of #19021 : roysc/rust/emacs-pr, r=brsonbors-4/+1
"_" should keep the default syntax class (symbol, not word). This allows, e.g., `forward-word' to behave in the familiar way, jumping to underscores within a function or variable name.
2014-11-24Merge libsync into libstdAaron Turon-4/+3
This patch merges the `libsync` crate into `libstd`, undoing part of the facade. This is in preparation for ultimately merging `librustrt`, as well as the upcoming rewrite of `sync`. Because this removes the `libsync` crate, it is a: [breaking-change] However, all uses of `libsync` should be able to reroute through `std::sync` and `std::comm` instead.
2014-11-23rollup merge of #19166: richo/lldb-cleanupsJakub Bukaj-31/+21
While poking at rust in lldb I found a few nits to clean up.
2014-11-22Use mktemp for temporary download directoryJohannes Hoff-7/+1
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-11-22auto merge of #19125 : chris-morgan/rust/vim-prelude-2014-11-20, r=alexcrichtonbors-32/+27
2014-11-22auto merge of #17513 : dradtke/rust/master, r=kballardbors-15/+38
Looks like I made my previous PR a little too hastily. =) This PR fixes a couple issues that I discovered with my previous revision: 1. Updated the errorformat to ignore "pointer lines" so that they don't show up in the output (with quickfix jumping, they're redundant and unnecessary). 2. Renamed a couple variables to be more in line with Cargo's terminology (`g:cargo_toml_name` should now be `g:cargo_manifest_name`). 3. Added support for errors reported with absolute paths (looks to be the case when compiling an executable instead of a library). 4. Most importantly, added support for errors reported while compiling a dependency. When building a Cargo package with local dependencies, if one of those dependencies failed to compile, the quickfix would be completely broken as it assumed that all errors were relative to the local manifest, or the closest Cargo.toml. With this update, it now pays attention to lines that end with `(file://<path>)`, and from then on adjusts all errors to be relative to `<path>`. As a side note, that `<path>` output is somewhat broken on Windows. While `file:///home/damien/...` on *Nix is a valid URI, `file:///C:/Users/damien/...` on Windows is not, because `C:/` (or whatever the drive is) should take the place of the third slash which is *Nix's root, not be appended to it. I added a workaround for this in my script, but I figured I'd mention it to see if this is a bug in how Rust formats paths.
2014-11-21lldb: Clean up struct printingRicho Healey-21/+15
2014-11-21auto merge of #19095 : juxiliary/rust/master, r=bstriebors-3/+13
Vim plugins shouldn't override user settings unless they ask! Stops the plugin from modifying the users settings by default instead makes them opt-in with `g:rust_recommended_style`
2014-11-21auto merge of #16552 : jauhien/rust/fix-libdir, r=alexcrichtonbors-4/+11
Fixies #11671 This commit changes default relative libdir 'lib' to a relative libdir calculated using LIBDIR provided by --libdir configuration option. In case if no option was provided behavior does not change.
2014-11-20lldb: refactor print_vec_slice_valRicho Healey-10/+4
Be more idiomatic and rely less on fiddly construction of output
2014-11-20Add vim modeline to lldb formatterRicho Healey-0/+2
The file doesn't adhere to the python standard, but this will let vi do The Right Thing by default
2014-11-20Update the Vim syntax prelude.Chris Morgan-32/+27
2014-11-19Adding switch in vim plugin to toggle format optsjuxiliary-3/+13
2014-11-17Switch to purely namespaced enumsSteven Fackler-0/+1
This breaks code that referred to variant names in the same namespace as their enum. Reexport the variants in the old location or alter code to refer to the new locations: ``` pub enum Foo { A, B } fn main() { let a = A; } ``` => ``` pub use self::Foo::{A, B}; pub enum Foo { A, B } fn main() { let a = A; } ``` or ``` pub enum Foo { A, B } fn main() { let a = Foo::A; } ``` [breaking-change]
2014-11-16rust-mode.el: Tweak syntax tableRoy Crihfield-4/+1
"_" should keep the default syntax class (symbol, not word). This allows, e.g., `forward-word' to behave in the familiar way, jumping to underscores within a function or variable name.
2014-11-16auto merge of #18994 : sfackler/rust/struct-variants-pt2, r=jakub-bors-1/+0
Struct variant field visibility is now inherited. Remove `pub` keywords from declarations. Closes #18641 [breaking-change] r? @alexcrichton
2014-11-16rollup merge of #18976: bjz/rfc369-numericsJakub Bukaj-1/+1
2014-11-16rollup merge of #18935: jmesmon/cody/no-vendor-triplleJakub Bukaj-1/+5
2014-11-15Un-feature gate struct variantsSteven Fackler-1/+0
Struct variant field visibility is now inherited. Remove `pub` keywords from declarations. Closes #18641 [breaking-change]
2014-11-16Rename IntoStr to IntoStringBrendan Zabarauskas-1/+1
For consistancy with ToString
2014-11-16Look for standard crates in LIBDIR provided by --libdir option,Jauhien Piatlicki-4/+11
not in hardcoded libdir path. If there was no LIBDIR provided during configuration fallback to hardcoded paths. Thanks to Jan Niklas Hasse for solution and to Alex Crichton for improvements. Closes #11671
2014-11-14auto merge of #18827 : bjz/rust/rfc369-numerics, r=alexcrichtonbors-2/+1
This implements a considerable portion of rust-lang/rfcs#369 (tracked in #18640). Some interpretations had to be made in order to get this to work. The breaking changes are listed below: [breaking-change] - `core::num::{Num, Unsigned, Primitive}` have been deprecated and their re-exports removed from the `{std, core}::prelude`. - `core::num::{Zero, One, Bounded}` have been deprecated. Use the static methods on `core::num::{Float, Int}` instead. There is no equivalent to `Zero::is_zero`. Use `(==)` with `{Float, Int}::zero` instead. - `Signed::abs_sub` has been moved to `std::num::FloatMath`, and is no longer implemented for signed integers. - `core::num::Signed` has been removed, and its methods have been moved to `core::num::Float` and a new trait, `core::num::SignedInt`. The methods now take the `self` parameter by value. - `core::num::{Saturating, CheckedAdd, CheckedSub, CheckedMul, CheckedDiv}` have been removed, and their methods moved to `core::num::Int`. Their parameters are now taken by value. This means that - `std::time::Duration` no longer implements `core::num::{Zero, CheckedAdd, CheckedSub}` instead defining the required methods non-polymorphically. - `core::num::{zero, one, abs, signum}` have been deprecated. Use their respective methods instead. - The `core::num::{next_power_of_two, is_power_of_two, checked_next_power_of_two}` functions have been deprecated in favor of methods defined a new trait, `core::num::UnsignedInt` - `core::iter::{AdditiveIterator, MultiplicativeIterator}` are now only implemented for the built-in numeric types. - `core::iter::{range, range_inclusive, range_step, range_step_inclusive}` now require `core::num::Int` to be implemented for the type they a re parametrized over.
2014-11-13src/etc/snapshot: support triples lacking a vendorCody P Schafer-1/+5
2014-11-13etc: Don't bundle libctl3d32 on windowsAlex Crichton-1/+0
Apparently it's not found on win64! Closes #18928
2014-11-13Remove Signed trait and add SignedInt traitBrendan Zabarauskas-1/+1
The methods have been moved into Float and SignedInt
2014-11-13Deprecate Num, Unsigned and PrimitiveBrendan Zabarauskas-2/+1
2014-11-13Move checked arithmetic operators into Int traitBrendan Zabarauskas-1/+1
2014-11-11auto merge of #18793 : swgillespie/rust/master, r=alexcrichtonbors-1/+2
I noticed today that `move` wasn't getting highlighted in my editor of choice (emacs), so I went ahead and added it as a keyword in the emacs, vim, and kate editor files. Apparently it has already been done for gedit.
2014-11-11auto merge of #18797 : vadimcn/rust/prefer-bundled2, r=alexcrichtonbors-8/+45
Based on Windows bundle feedback we got to date, - We *do* want to prefer the bundled linker: The external one might be for the wrong architecture (e.g. 32 bit vs 64 bit). On the other hand, binutils don't add many new features these days, so using an older bundled linker is not likely to be a problem. - We *do* want to prefer bundled libraries: The external ones might not have the symbols we expect (e.g. what's needed for DWARF exceptions vs SjLj). Since `-L rustlib/<triple>/lib` appears first on the linker command line, it's a good place to keep our platform libs that we want to be found first. Closes #18325, closes #17726.
2014-11-10Add 'move' keyword to emacs, kate, and vim editor modes.Sean Gillespie-1/+2
2014-11-10vim: move 'move' to rustStorageJosh Stone-2/+2
2014-11-10auto merge of #18782 : netvl/rust/update-vim-syntax, r=alexcrichtonbors-6/+6
`as` (already for a long time) and `move` (which was only added recently, AFAIK) are not marked as keywords in Vim syntax file, so they are not highlighted as keywords in Rust sources. This PR fixes this.
2014-11-09Added `move` keyword and renamed `fail` to `panic`Vladimir Matveev-6/+6
2014-11-08Include some of the more popular Windows import libs into the bundle.Vadim Chugunov-5/+42
2014-11-08Move gcc back to rustlib\<triple>\binVadim Chugunov-3/+3
2014-11-08Renamed Extendable to Extendgamazeps-1/+1
In order to upgrade, simply rename the Extendable trait to Extend in your code Part of #18424 [breaking-change]