about summary refs log tree commit diff
path: root/src/etc
AgeCommit message (Collapse)AuthorLines
2014-11-06rollup merge of #18654 : michaelwoerister/lldb-test-timeoutAlex Crichton-0/+25
2014-11-06rollup merge of #18656 : thiagopnts/rename-deprecated-non_uppercase_staticsAlex Crichton-1/+1
2014-11-06Prelude: rename and consolidate extension traitsAaron Turon-5/+5
This commit renames a number of extension traits for slices and string slices, now that they have been refactored for DST. In many cases, multiple extension traits could now be consolidated. Further consolidation will be possible with generalized where clauses. The renamings are consistent with the [new `-Prelude` suffix](https://github.com/rust-lang/rfcs/pull/344). There are probably a few more candidates for being renamed this way, but that is left for API stabilization of the relevant modules. Because this renames traits, it is a: [breaking-change] However, I do not expect any code that currently uses the standard library to actually break. Closes #17917
2014-11-05debuginfo: Add a timeout for LLDB tests.Michael Woerister-0/+20
Fixes #18649.
2014-11-05rename deprecated non_uppercase_statics to non_upper_case_globalsthiagopnts-1/+1
2014-11-05debuginfo: Add timeout before running executable in LLDB tests.Michael Woerister-0/+5
This should help with a potential race condition.
2014-11-04libsyntax: Forbid escapes in the inclusive range `\x80`-`\xff` inPatrick Walton-1/+1
Unicode characters and strings. Use `\u0080`-`\u00ff` instead. ASCII/byte literals are unaffected. This PR introduces a new function, `escape_default`, into the ASCII module. This was necessary for the pretty printer to continue to function. RFC #326. Closes #18062. [breaking-change]
2014-11-04Added check for absolute file path, removed hard tab, and added ↵Damien Radtke-3/+14
documentation for new option.
2014-11-04Implement flexible target specificationCorey Richardson-3/+2
Removes all target-specific knowledge from rustc. Some targets have changed during this, but none of these should be very visible outside of cross-compilation. The changes make our targets more consistent. iX86-unknown-linux-gnu is now only available as i686-unknown-linux-gnu. We used to accept any value of X greater than 1. i686 was released in 1995, and should encompass the bare minimum of what Rust supports on x86 CPUs. The only two windows targets are now i686-pc-windows-gnu and x86_64-pc-windows-gnu. The iOS target has been renamed from arm-apple-ios to arm-apple-darwin. A complete list of the targets we accept now: arm-apple-darwin arm-linux-androideabi arm-unknown-linux-gnueabi arm-unknown-linux-gnueabihf i686-apple-darwin i686-pc-windows-gnu i686-unknown-freebsd i686-unknown-linux-gnu mips-unknown-linux-gnu mipsel-unknown-linux-gnu x86_64-apple-darwin x86_64-unknown-freebsd x86_64-unknown-linux-gnu x86_64-pc-windows-gnu Closes #16093 [breaking-change]
2014-11-03rollup merge of #18247 : kballard/vim_rust_run_cwd_spaceAlex Crichton-6/+6
2014-11-01Replace deprecated missing_doc attribute.Joseph Crail-1/+1
2014-10-28auto merge of #17851 : brson/rust/rustup, r=alexcrichtonbors-0/+476
Just to have it somewhere to point to. Updating it will not automatically update the one on static.rust-lang.org.
2014-10-28Long linesBrian Anderson-1/+2
2014-10-27Untabify rustup.shBrian Anderson-18/+18
2014-10-25Fix spelling mistakes in comments.Joseph Crail-1/+1
2014-10-24Updates based on kballard's feedback.Damien Radtke-20/+11
2014-10-22vim: Fix :RustRun when cwd has a space in itKevin Ballard-6/+6
2014-10-22debuginfo: Print more output in lldb_batchmode.py for better error logs.Michael Woerister-2/+9
2014-10-14auto merge of #18023 : chris-morgan/rust/vim-misc-2014-10-14, r=kballardbors-7/+7
- Stop highlighting foo in `use foo;` specially. - Highlight `extern crate "foo" as bar;` properly. - Highlight 1..2 according to the current grammar.
2014-10-14Highlight 1..2 according to the current grammar.Chris Morgan-2/+3
2014-10-14Highlight `extern crate "foo" as bar;` properly.Chris Morgan-1/+3
2014-10-14Vim: Stop highlighting foo in `use foo;` speciallyChris Morgan-4/+1
This wasn’t really consistent with other things; the last section of the import was not highlighted in any other case. Also `use {foo, bar};` was having the foo and bar not highlighted, where they would have been as separate statements.
2014-10-13Include the Unicode version used to generate `src/libunicode/tables.rs`.Simon Sapin-0/+9
2014-10-10auto merge of #17853 : alexcrichton/rust/issue-17718, r=pcwaltonbors-4/+4
This change is an implementation of [RFC 69][rfc] which adds a third kind of global to the language, `const`. This global is most similar to what the old `static` was, and if you're unsure about what to use then you should use a `const`. The semantics of these three kinds of globals are: * A `const` does not represent a memory location, but only a value. Constants are translated as rvalues, which means that their values are directly inlined at usage location (similar to a #define in C/C++). Constant values are, well, constant, and can not be modified. Any "modification" is actually a modification to a local value on the stack rather than the actual constant itself. Almost all values are allowed inside constants, whether they have interior mutability or not. There are a few minor restrictions listed in the RFC, but they should in general not come up too often. * A `static` now always represents a memory location (unconditionally). Any references to the same `static` are actually a reference to the same memory location. Only values whose types ascribe to `Sync` are allowed in a `static`. This restriction is in place because many threads may access a `static` concurrently. Lifting this restriction (and allowing unsafe access) is a future extension not implemented at this time. * A `static mut` continues to always represent a memory location. All references to a `static mut` continue to be `unsafe`. This is a large breaking change, and many programs will need to be updated accordingly. A summary of the breaking changes is: * Statics may no longer be used in patterns. Statics now always represent a memory location, which can sometimes be modified. To fix code, repurpose the matched-on-`static` to a `const`. static FOO: uint = 4; match n { FOO => { /* ... */ } _ => { /* ... */ } } change this code to: const FOO: uint = 4; match n { FOO => { /* ... */ } _ => { /* ... */ } } * Statics may no longer refer to other statics by value. Due to statics being able to change at runtime, allowing them to reference one another could possibly lead to confusing semantics. If you are in this situation, use a constant initializer instead. Note, however, that statics may reference other statics by address, however. * Statics may no longer be used in constant expressions, such as array lengths. This is due to the same restrictions as listed above. Use a `const` instead. [breaking-change] Closes #17718 [rfc]: https://github.com/rust-lang/rfcs/pull/246
2014-10-09Bump version to 0.13.0Brian Anderson-1/+1
2014-10-09unicode: Make statics legalAlex Crichton-4/+4
The tables in libunicode are far too large to want to be inlined into any other program, so these tables are all going to remain `static`. For them to be legal, they cannot reference one another by value, but instead use references now. This commit also modifies the src/etc/unicode.py script to generate the right tables.
2014-10-09auto merge of #17871 : michaelwoerister/rust/lldb-versioning, r=alexcrichtonbors-4/+17
Apart from making the build system determine the LLDB version, this PR also fixes an issue with enums in LLDB pretty printers. In order for GDB's pretty printers to know for sure if a field of some value is an enum discriminant, I had rustc mark discriminant fields with the `artificial` DWARF tag. This worked out nicely for GDB but it turns out that one can't access artificial fields from LLDB. So I changed the debuginfo representation so that enum discriminants are marked by the special field name `RUST$ENUM$DISR` instead, which works in both cases. The PR does not activate the LLDB test suite yet.
2014-10-08debuginfo: Don't mark struct fields as artificial.Michael Woerister-4/+17
LLDB doesn't allow for reading 'artifical' fields (fields that are generated by the compiler). So do not mark, slice fields, enum discriminants, and GcBox value fields as artificial.
2014-10-07Add `abstract`, `final`, and `override` to rust.vim keyword listJohn Gallagher-1/+1
2014-10-07Use rustc's errorformat and add option to specify permanent parameters.Damien Radtke-4/+15
2014-10-07Add rustup.sh to the repoBrian Anderson-0/+475
Just to have it somewhere to point to. Updating it will not automatically update the one on static.rust-lang.org.
2014-10-02rm obsolete valgrind suppressionsDaniel Micay-20/+0
2014-10-01auto merge of #17630 : sfackler/rust/cfg-warnings, r=brsonbors-1/+1
Closes #17490
2014-09-30auto merge of #17479 : gamazeps/rust/issue17478, r=alexcrichtonbors-3/+3
closes #17478
2014-09-30Fix librustc_llvmSteven Fackler-1/+1
2014-09-30auto merge of #17640 : brson/rust/wininst, r=alexcrichtonbors-2/+2
This makes the windows `make dist` target start producing binary tarballs, and tweaks install.sh so they work, in preparation for working on a combined Rust+Cargo installer.
2014-09-29install: Fix the install.sh script to work with spacesBrian Anderson-2/+2
Makes it work on windows
2014-09-29Replaced some TODO by FIXMEgamazeps-3/+3
closes #17478
2014-09-29rollup merge of #17573 : iliekturtles/17570-windows-installer-pathAlex Crichton-2/+2
2014-09-26dist: Make Windows installer modify system %PATH%Mike Boutin-2/+2
Modify the system %PATH% environment variable instead of the current user's %PATH% environment. The current user will be an admin user that may not be the same user who originally started the installer. Closes #17570.
2014-09-25Relicense shootout-fasta-redux.rs to the shootout license.Guillaume Pinot-0/+1
Everyone agreed. Fix #17078
2014-09-24Some improvements to the Cargo compiler file.Damien Radtke-9/+19
2014-09-22Add cargo.vim compiler file.Damien Radtke-0/+49
2014-09-22auto merge of #17212 : mahkoh/rust/vim, r=kballardbors-29/+31
There are currently two huge problems with the indent file: 1. Long list-like things cannot be indented. See #14446 for one example. Another one is long enums with over 100 lines, including comments. The indentation process stops after 100 lines and the rest is in column 0. 2. In certain files, opening a new line at mod level is extremely slow. See [this](https://github.com/mahkoh/posix.rs/blob/master/src/unistd/mod.rs) for an example. Opening a line at the very end and holing \<cr> down will freeze vim temporarily. The reason for 1. is that cindent doesn't properly indent things that end with a `,` and the indent file tries to work around this by using the indentation of the previous line. It does this by recursively calling a function on the previous lines until it reaches the start of the block. Naturally O(n^2) function calls don't scale very well. Instead of recalculating the indentation of the previous line, we will now simply use the given indentation of the previous line and let the user deal with the rest. This is sufficient unless the user manually mis-indents a line. The reason for 2. seems to be function calls of the form ``` searchpair('{\|(', '', '}\|)', 'nbW', 's:is_string_comment(line("."), col("."))') ``` I've no idea what this even does or why it is there since I cannot reproduce the mistake cindent is supposed to make without this fix. Therefore I've simply removed that part.
2014-09-21auto merge of #17412 : vadimcn/rust/gccpref, r=alexcrichtonbors-3/+3
Fixes #17251
2014-09-20Move bundled gcc and its libs out into $rust/rustlib/<triple>/gcc/(bin|lib). ↵Vadim Chugunov-3/+3
This way the libs won't be on the -L library search path, and won't confuse external gcc, if one is used. The bundled gcc itself will still be able to find them, because it searches for libs relative to own install location.
2014-09-19rollup merge of #17306 : scialex/fix-zshAlex Crichton-68/+131
2014-09-18fix for vim < 7.4.355Julian Orth-0/+37
2014-09-18auto merge of #17335 : TeXitoi/rust/relicense-shootout, r=brsonbors-0/+2
Everyone agreed. Fix #17064, fix #17072 @brson OK?
2014-09-17rollup merge of #17309 : aturon/deprecate-libnumAlex Crichton-1/+0