summary refs log tree commit diff
path: root/src/librustc/back/rpath.rs
AgeCommit message (Collapse)AuthorLines
2013-09-19Replace unreachable() calls with unreachable!().Chris Morgan-2/+2
This is the second of two parts of #8991, now possible as a new snapshot has been made. (The first part implemented the unreachable!() macro; it was #8992, 6b7b8f2682.) ``std::util::unreachable()`` is removed summarily; any code which used it should now use the ``unreachable!()`` macro. Closes #9312. Closes #8991.
2013-09-01Modernized a few type names in rustc and syntaxMarvin Löbel-12/+12
2013-08-12fix build with the new snapshot compilerDaniel Micay-13/+0
2013-08-10syntax and rustc: fix some warningsErick Tryzelaar-1/+1
2013-08-10std: Rename Iterator.transform -> .mapErick Tryzelaar-3/+3
cc #5898
2013-08-09auto merge of #8176 : catamorphism/rust/rustpkg-extern-mod, r=catamorphismbors-113/+4
r? @graydon Also, notably, make rustpkgtest depend on the rustpkg executable (otherwise, tests that shell out to rustpgk might run when rustpkg doesn't exist).
2013-08-09std/rustc/rustpkg/syntax: Support the `extern mod = ...` formTim Chevalier-113/+4
This commit allows you to write: extern mod x = "a/b/c"; which means rustc will search in the RUST_PATH for a package with ID a/b/c, and bind it to the name `x` if it's found. Incidentally, move get_relative_to from back::rpath into std::path
2013-08-08env! syntax extension changesSteven Fackler-0/+9
env! aborts compilation of the specified environment variable is not defined and takes an optional second argument containing a custom error message. option_env! creates an Option<&'static str> containing the value of the environment variable. There are no run-pass tests that check the behavior when the environment variable is defined since the test framework doesn't support setting environment variables at compile time as opposed to runtime. However, both env! and option_env! are used inside of rustc itself, which should act as a sufficient test. Close #2248
2013-08-03remove obsolete `foreach` keywordDaniel Micay-4/+4
this has been replaced by `for`
2013-08-02replace `range` with an external iteratorDaniel Micay-2/+1
2013-08-01migrate many `for` loops to `foreach`Daniel Micay-3/+3
2013-07-17librustc: Remove all uses of "copy".Patrick Walton-1/+1
2013-07-08 Replaces the free-standing functions in f32, &c.Jens Nockert-1/+2
The free-standing functions in f32, f64, i8, i16, i32, i64, u8, u16, u32, u64, float, int, and uint are replaced with generic functions in num instead. If you were previously using any of those functions, just replace them with the corresponding function with the same name in num. Note: If you were using a function that corresponds to an operator, use the operator instead.
2013-06-30Remove vec::{map, mapi, zip_map} and the methods, except for .map, since thisHuon Wilson-5/+3
is very common, and the replacement (.iter().transform().collect()) is very ugly.
2013-06-29Great renaming: propagate throughout the rest of the codebaseCorey Richardson-9/+7
2013-06-27Convert vec::[mut_]slice to methods, remove vec::const_slice.Huon Wilson-1/+1
2013-06-23vec: remove BaseIter implementationDaniel Micay-3/+3
I removed the `static-method-test.rs` test because it was heavily based on `BaseIter` and there are plenty of other more complex uses of static methods anyway.
2013-06-21auto merge of #7219 : sstewartgallus/rust/cleanup, r=graydonbors-9/+6
2013-06-21Remove all #[cfg(stage0)]-protected codeJames Miller-13/+0
New snapshot means this can all go. Also removes places that have comments that say they are workarounds for stage0 errors.
2013-06-18Cleanup src/librustc/backSteven Stewart-Gallus-9/+6
2013-06-17Revert "stop using an absolute rpath"Brian Anderson-1/+26
This reverts commit 708395d65d689080cc96dd091adab3fc4c5c3f27.
2013-06-16remove unused importsHuon Wilson-3/+0
2013-06-15stop using an absolute rpathDaniel Micay-25/+1
This is a bad default, because the binaries will point at an absolute path regardless of where they are moved. This opens up a security issue for packages, because they will attempt to load libraries from a path that's often owned by a regular user. Every Rust binary is currently flagged by Debian, Fedora and Arch lint checkers as having dangerous rpaths. They don't meet the requirements to be placed in the repositories without manually stripping this from each binary. The relative rpath is still enough to keep the binaries working until they are moved relative to the crates they're linked against. http://wiki.debian.org/RpathIssue https://fedoraproject.org/wiki/Packaging:Guidelines#Beware_of_Rpath
2013-06-11std: replace str::{starts,ends}_with with the method.Huon Wilson-1/+1
2013-06-01rustc: Call str::is_emptyTim Chevalier-1/+1
2013-05-29librustc: Stop reexporting the standard modules from prelude.Patrick Walton-1/+11
2013-05-28Silence various warnings throughout test modulesAlex Crichton-8/+14
2013-05-23cleanup warnings from librustcErick Tryzelaar-6/+6
2013-05-22librustc: Add some missing `use core::prelude::*;` in the test casesPatrick Walton-0/+2
2013-05-22libextra: Rename the actual metadata names of libcore to libstd and libstd ↵Patrick Walton-0/+2
to libextra
2013-05-20Remove all unnecessary allocations (as flagged by lint)Alex Crichton-3/+3
2013-05-19Use assert_eq! rather than assert! where possibleCorey Richardson-15/+15
2013-05-15Rename vec::len(var) to var.len()Youngmin Yoo-2/+2
2013-05-14Use static string with fail!() and remove fail!(fmt!())Björn Steinbrink-1/+1
fail!() used to require owned strings but can handle static strings now. Also, it can pass its arguments to fmt!() on its own, no need for the caller to call fmt!() itself.
2013-05-03rustpkg: Handle sysroot more correctlyTim Chevalier-1/+1
In rustpkg, pass around sysroot; in rustpkg tests, set the sysroot manually so that tests can find libcore and such. With bonus metadata::filesearch refactoring to avoid copies.
2013-04-27only use #[no_core] in libcoreDaniel Micay-6/+0
2013-04-16libcore,std,syntax,rustc: move tests into `mod tests`, make them private (no ↵Huon Wilson-17/+17
pub mod or pub fn).
2013-04-03rename Linear{Map,Set} => Hash{Map,Set}Daniel Micay-2/+2
2013-04-03hashmap: rm linear namespaceDaniel Micay-1/+1
2013-03-29librustc: Remove `fail_unless!`Patrick Walton-22/+22
2013-03-22librustc: Remove `pure` from libsyntax and librustc.Patrick Walton-1/+1
2013-03-20rustc: Remove some bad copies throughoutAlex Crichton-4/+4
2013-03-07librustc: Convert all uses of `assert` over to `fail_unless!`Patrick Walton-22/+22
2013-03-04Adding missing imports for tests, and gate off othersAlex Crichton-0/+2
2013-03-04Add a special FIXME for subduing warnings in rpath.rsAlex Crichton-1/+6
2013-03-04Remove unused imports throughout src/Alex Crichton-4/+0
2013-02-14Convert all uses of vec::slice to vec::view Issue #3869Nick Desaulniers-1/+1
Rename const_view to const_slice Renamed mut_view to mut_slice
2013-02-13Remove die!, raplace invocations with fail! Issue #4524 pt 3Nick Desaulniers-1/+1
2013-02-08librustc/back/rpath.rs: oldmap -> LinearSetDaniel Micay-8/+5
2013-02-08oldmap: get rid of legacy _ref suffixesDaniel Micay-1/+1