summary refs log tree commit diff
path: root/src/etc
AgeCommit message (Collapse)AuthorLines
2014-03-31Bump version to 0.10Alex Crichton-1/+1
2014-03-30mk: Don't touch config.tmp or tmp/dist as root. Closes #13190Brian Anderson-1/+0
When running `make install` we are touching these files that can't then be removed later.
2014-03-30Support new attribute syntax in vim syntax fileSteven Fackler-1/+1
2014-03-29auto merge of #13185 : alexcrichton/rust/osx-pkg, r=brsonbors-1/+17
This performs a few touch-ups to the OSX installer: * A rust logo is shown during installation * The installation happens to /usr/local by default (instead of /) * A new welcome screen is shown that's slightly more relevant
2014-03-28auto merge of #13187 : brson/rust/dist, r=alexcrichtonbors-11/+68
2014-03-28dist: Tweak the OSX pkg installerAlex Crichton-1/+17
This performs a few touch-ups to the OSX installer: * A rust logo is shown during installation * The installation happens to /usr/local by default (instead of /) * A new welcome screen is shown that's slightly more relevant
2014-03-28install: More error handlingBrian Anderson-0/+1
2014-03-28install: Extract function for creating absolute paths and reuse itBrian Anderson-9/+23
2014-03-28install: Fix string formatting in an errorBrian Anderson-3/+5
2014-03-28install: Explicitly delete the manifest during uninstall. Misc cleanupBrian Anderson-16/+20
2014-03-28install: Verify that installed compiler runsBrian Anderson-3/+39
Another sanity check. Can be disabled in `install.sh` via `--disable-verify` and `configure` with `--disable-verify-install`.
2014-03-28Remove `Freeze` and add `Share` in vim's syntaxFlavio Percoco-1/+1
2014-03-28Rename Pod into CopyFlavio Percoco-1/+1
Summary: So far, we've used the term POD "Plain Old Data" to refer to types that can be safely copied. However, this term is not consistent with the other built-in bounds that use verbs instead. This patch renames the Pod kind into Copy. RFC: 0003-opt-in-builtin-traits Test Plan: make check Reviewers: cmr Differential Revision: http://phabricator.octayn.net/D3
2014-03-26install: Don't allow installation over the install filesBrian Anderson-2/+14
2014-03-26install: name the bundled manifest 'manifest.in'. CleanupBrian Anderson-4/+6
The installed manifest is a different file, so they should have different names. This should prevent various wierd conflicts in the future.
2014-03-25install: Support --libdir and --mandir correctlyBrian Anderson-18/+54
This adds a hack to rustc to make it find the library directory regardless of whether it is named lib/lib64/lib32.
2014-03-25configure: Make rustlibdir non-configurableBrian Anderson-1/+0
Trying to reduce the complexity of installation
2014-03-25auto merge of #13063 : brson/rust/dist, r=alexcrichtonbors-13/+35
Several things here: * Cleanup * Fix build targets for building .pkg so that it works and works for all hosts * Adds support for nightly artifacts * Put docs in a location suitable for upload to s3 during 'make dist' * Add coverage of unix binary installers to 'distcheck' * Fix 'distcheck' * Change 'dist' to build source tarballs, binary tarballs and OS X packages
2014-03-24install: Don't try to run binaries on installBrian Anderson-4/+0
I think there are likely to be scenarios where this script is run to move files to the correct place during cross-compiles.
2014-03-24install: Improve error handlingBrian Anderson-11/+28
2014-03-24install: Error on uninstall if manifest can't be foundBrian Anderson-0/+7
2014-03-24mk: Fix distcheckBrian Anderson-0/+1
Also, add more distcheck tests
2014-03-24mk: Put win installer in correct dirBrian Anderson-1/+1
2014-03-24mk: Cleanup version handling and add support for nightly distsBrian Anderson-1/+2
2014-03-23sync: Move the concurrent queue to using &selfAlex Crichton-1/+1
This commit also lifts it up a level in the module hierarchy in the soon-to-come reorganization of libsync.
2014-03-20auto merge of #13023 : thestinger/rust/deep_clone, r=alexcrichtonbors-2/+2
2014-03-20rename std::vec -> std::sliceDaniel Micay-3/+3
Closes #12702
2014-03-20rm obsolete references to `DeepClone`Daniel Micay-2/+2
2014-03-14extra: Put the nail in the coffin, delete libextraAlex Crichton-3/+0
This commit shreds all remnants of libextra from the compiler and standard distribution. Two modules, c_vec/tempfile, were moved into libstd after some cleanup, and the other modules were moved to separate crates as seen fit. Closes #8784 Closes #12413 Closes #12576
2014-03-13auto merge of #12815 : alexcrichton/rust/chan-rename, r=brsonbors-1/+1
* Chan<T> => Sender<T> * Port<T> => Receiver<T> * Chan::new() => channel() * constructor returns (Sender, Receiver) instead of (Receiver, Sender) * local variables named `port` renamed to `rx` * local variables named `chan` renamed to `tx` Closes #11765
2014-03-13std: Rename Chan/Port types and constructorAlex Crichton-1/+1
* Chan<T> => Sender<T> * Port<T> => Receiver<T> * Chan::new() => channel() * constructor returns (Sender, Receiver) instead of (Receiver, Sender) * local variables named `port` renamed to `rx` * local variables named `chan` renamed to `tx` Closes #11765
2014-03-13Remove code duplicationPiotr Zolnierek-27/+19
Remove whitespace Update documentation for to_uppercase, to_lowercase
2014-03-13Implement lower, upper case conversion for charPiotr Zolnierek-29/+74
2014-03-13std::unicode: remove unused category tablesPiotr Zolnierek-1/+4
2014-03-12Emacs: always jump the cursor if needed on indentMicah Chalmer-9/+50
The rust-mode-indent-line function had a check, which ran after all the calculations for how to indent had already happened, that skipped actually performing the indent if the line was already at the right indentation. Because of that, the cursor did not jump to the indentation if the line wasn't changing. This was particularly annoying if there was nothing but spaces on the line and you were at the beginning of it--it looked like the indent just wasn't working. This removes the check and adds test cases to cover this.
2014-03-12Update users for the std::rand -> librand move.Huon Wilson-0/+1
2014-03-12std: Move rand to librand.Huon Wilson-1/+1
This functionality is not super-core and so doesn't need to be included in std. It's possible that std may need rand (it does a little bit now, for io::test) in which case the functionality required could be moved to a secret hidden module and reexposed by librand. Unfortunately, using #[deprecated] here is hard: there's too much to mock to make it feasible, since we have to ensure that programs still typecheck to reach the linting phase.
2014-03-11auto merge of #12783 : adrientetar/rust/more-docs, r=alexcrichtonbors-2/+0
- remove `node.js` dep., it has no effect as of #12747 (1) - switch between LaTeX compilers, some cleanups - CSS: fixup the print stylesheet, refactor highlighting code (2) (1): `prep.js` outputs its own HTML directives, which `pandoc` cannot recognize when converting the document into LaTeX (this is why the PDF docs have never been highlighted as of now). Note that if we were to add the `.rust` class to snippets, we could probably use pandoc's native highlighting capatibilities i.e. Kate ([here is](http://adrientetar.github.io/rust-tuts/tutorial/tutorial.pdf) an example of that). (2): the only real highlighting change is for lifetimes which are now brown instead of red, the rest is just refactor of twos shades of red that look the same. Also I made numbers highlighting for src in rustdoc a tint more clear so that it is less bothering. @alexcrichton, @huonw Closes #9873. Closes #12788.
2014-03-09install.sh: untabifyBrian Anderson-20/+20
2014-03-09install.sh: Improve error handlingBrian Anderson-0/+19
2014-03-09mk: dist-installer builds a binary installerBrian Anderson-0/+264
2014-03-09doc: remove node.js dependencyAdrien Tétar-2/+0
`prep.js` outputs its own HTML directives, which `pandoc` cannot recognize when converting the document into LaTeX (this is why the PDF docs have never been highlighted as of now). Note that if we were to add the `.rust` class to snippets, we could probably use pandoc's native highlighting capatibilities i.e. Kate.
2014-03-09mk: rewrite the documentation handling.Huon Wilson-217/+0
This converts it to be very similar to crates.mk, with a single list of the documentation items creating all the necessary bits and pieces. Changes include: - rustdoc is used to render HTML & test standalone docs - documentation building now obeys NO_REBUILD=1 - testing standalone docs now obeys NO_REBUILD=1 - L10N is slightly less broken (in particular, it shares dependencies and code with the rest of the code) - PDFs can be built for all documentation items, not just tutorial and manual - removes the obsolete & unused extract-tests.py script - adjust the CSS for standalone docs to use the rustdoc syntax highlighting
2014-03-02auto merge of #12663 : MicahChalmer/rust/emacs-remove-ws-bug-warning, r=brsonbors-5/+0
The incompatibility of rust-mode with global-whitespace-mode warned about in the README was actually fixed by commit 581b3db3b3. Remove the warning from the README and close #3994.
2014-03-02Emacs: Remove README warning of old whitespace bugMicah Chalmer-5/+0
The incompatibility of rust-mode with global-whitespace-mode warned about in the README was actually fixed by commit 581b3db3b3. Remove the warning from the README and close #3994.
2014-03-02librustc: add LLVM LDFLAGS to depsLuca Bruno-0/+16
This commit let librustc automatically pickup LDFLAGS dependencies inherited from LLVM, which may otherwise result in undefined references to external symbols under certain linking environment. A symptom of this issue is eg. a failure when trying to link against librustc (due to unresolved ffi_*i symbols), while using a system-wide LLVM. Signed-off-by: Luca Bruno <lucab@debian.org>
2014-03-01Merge pull request #12308 from kballard/vim-nested-commentsbors-5/+6
vim: Tweak how comment nesting works Reviewed-by: brson
2014-02-27Improve the ctags function regular expression.Chris Morgan-1/+1
Before it would only catch lines starting `fn` or `pub fn`. Now it can cope with: - attributes (e.g. `#[test] fn`) - external functions (e.g. `extern fn`, `extern "C" fn`) - unsafe functions (e.g. `unsafe fn`) … and any correct combination of these (e.g. `#[test] extern "C" unsafe fn`).
2014-02-27Update Vim syntax file last change date.Chris Morgan-1/+1
2014-02-27Fix Vim section movements for standard Rust style.Chris Morgan-2/+53
(Expressed another way: make `[[` et al. work with the curly brace at the end of a line as is standard Rust style, not just at the start is it is by default in Vim, from K&R style.) This came out of #11492, where a simpler but less effective technique was initially proposed; some discussion of the techniques, ways and means can be found there. There are still a few caveats: - Operator-pending mode behaves differently to the standard behaviour: if inside curly braces, it should delete up to and including the closing of the outermost curly brace (that doesn't seem to me consistent with documented behaviour, but it's what it does). Actual behaviour (the more logical and consistent, in my opinion): up to the start of the next outermost curly brace. - With folding enabled (`set fdm=syntax`), `[[` and `]]` do not behave as they should: the default behaviour treats an entire closed fold as one line for these purposes while this code does not (I explicitly `set nofoldenable` in the function—the side-effects are worse with folds enabled), leading to unexpected behaviour, the worst of which is `[[` and/or `]]` not working in visual mode on a closed fold (visual mode keeps it at the extreme end of the region line of the folded region, so it's always going back to the opening line of that fold and immediately being shoved back to the end by visual mode). - `[[` and `]]` are operating inside comments, whereas the standard behaviour skips comments. - The viewport position is sometimes changed when it should not be necessary.