summary refs log tree commit diff
path: root/src/tools
AgeCommit message (Collapse)AuthorLines
2016-07-03Auto merge of #34530 - alexcrichton:stabilize-1.11, r=aturonbors-1/+0
std: Stabilize APIs for the 1.11.0 release Although the set of APIs being stabilized this release is relatively small, the trains keep going! Listed below are the APIs in the standard library which have either transitioned from unstable to stable or those from unstable to deprecated. Stable * `BTreeMap::{append, split_off}` * `BTreeSet::{append, split_off}` * `Cell::get_mut` * `RefCell::get_mut` * `BinaryHeap::append` * `{f32, f64}::{to_degrees, to_radians}` - libcore stabilizations mirroring past libstd stabilizations * `Iterator::sum` * `Iterator::product` Deprecated * `{f32, f64}::next_after` * `{f32, f64}::integer_decode` * `{f32, f64}::ldexp` * `{f32, f64}::frexp` * `num::One` * `num::Zero` Added APIs (all unstable) * `iter::Sum` * `iter::Product` * `iter::Step` - a few methods were added to accomodate deprecation of One/Zero Removed APIs * `From<Range<T>> for RangeInclusive<T>` - everything about `RangeInclusive` is unstable Closes #27739 Closes #27752 Closes #32526 Closes #33444 Closes #34152 cc #34529 (new tracking issue)
2016-07-03std: Stabilize APIs for the 1.11.0 releaseAlex Crichton-1/+0
Although the set of APIs being stabilized this release is relatively small, the trains keep going! Listed below are the APIs in the standard library which have either transitioned from unstable to stable or those from unstable to deprecated. Stable * `BTreeMap::{append, split_off}` * `BTreeSet::{append, split_off}` * `Cell::get_mut` * `RefCell::get_mut` * `BinaryHeap::append` * `{f32, f64}::{to_degrees, to_radians}` - libcore stabilizations mirroring past libstd stabilizations * `Iterator::sum` * `Iterator::product` Deprecated * `{f32, f64}::next_after` * `{f32, f64}::integer_decode` * `{f32, f64}::ldexp` * `{f32, f64}::frexp` * `num::One` * `num::Zero` Added APIs (all unstable) * `iter::Sum` * `iter::Product` * `iter::Step` - a few methods were added to accomodate deprecation of One/Zero Removed APIs * `From<Range<T>> for RangeInclusive<T>` - everything about `RangeInclusive` is unstable Closes #27739 Closes #27752 Closes #32526 Closes #33444 Closes #34152 cc #34529 (new tracking issue)
2016-07-02Rollup merge of #34566 - ollie27:linkchecker_invalid_urls, r=alexcrichtonManish Goregaokar-23/+20
Reject invalid urls in linkchecker For example root-relative links will now be rejected. Also remove some exceptions which have since been fixed and fix a typo in the broken redirect handling.
2016-07-02Rollup merge of #34551 - GuillaumeGomez:runtest_improvement, r=alexcrichtonManish Goregaokar-8/+12
Improve runtest output
2016-06-30Improve runtest outputggomez-8/+12
It now prints only unexpected errors and expected errors which weren't found
2016-06-29Reject invalid urls in linkcheckerOliver Middleton-23/+20
For example root-relative links will now be rejected. Also remove some exceptions which have since been fixed and fix a typo in the broken redirect handling.
2016-06-29Rollup merge of #34499 - michaelwoerister:lldb-blacklist, r=alexcrichtonManish Goregaokar-0/+15
Disable debuginfo tests for a given blacklist of LLDB versions Anyone having trouble with most LLDB tests failing on OSX, please report your LLDB version here so I can add it to the blacklist. Blacklisted versions so far: * lldb-350.* cc @rust-lang/tools cc @tedhorst @indutny @jonathandturner (people from the original bug report) Fixes #32520.
2016-06-27Disable debuginfo tests for a given blacklist of LLDB versionsMichael Woerister-0/+15
2016-06-23Move errors from libsyntax to its own crateJonathan Turner-1/+1
2016-06-15Auto merge of #34220 - srinivasreddy:rf_cargotest, r=brsonbors-38/+38
run rustfmt on cargotest folder in src/tools/cargotest
2016-06-11run rustfmt on cargotest folder in src/tools/cargotestSrinivas Reddy Thatiparthy-38/+38
2016-06-11run rustfmt on linkchecker folderin src/tools/linkcheckerSrinivas Reddy Thatiparthy-37/+30
2016-06-05Auto merge of #34039 - ollie27:linkchecker_dirs, r=alexcrichtonbors-0/+6
linkchecker: Treat directory links as errors Directory links don't work well offline so they should be treated as errors. All examples of this I know of are fixed in #34021.
2016-06-03Auto merge of #33803 - WiSaGaN:feature/rename-main-thread, r=alexcrichtonbors-1/+1
Rename main thread from "<main>" to "main". Fix issue #33789 We may need to discuss whether this counts as a breaking change since code may check the main thread name against "\<main\>". Discussion is in #33789
2016-06-02linkchecker: Treat directory links as errorsOliver Middleton-0/+6
Directory links don't work well offline so they should be treated as errors.
2016-06-02Update cargo version in cargotestWangshan Lu-1/+1
2016-05-31mk: Prepare for a new stage0 compilerAlex Crichton-5/+4
This commit prepares the source for a new stage0 compiler, the 1.10.0 beta compiler. These artifacts are hot off the bots and should be ready to go.
2016-05-28Auto merge of #33848 - alexcrichton:android-gdb-sysroot, r=michaelwoeristerbors-5/+6
test: Use `set sysroot` for more NDK compatibility Recent versions of the Android NDK no longer ship debuggers like `arm-linux-androideabi-gdb`, but instead one prebuilt binary `gdb`. We can symlink this into place at least to get our detection still working, but it now needs to be told what the sysroot is so it can correctly do... something. Long story short, tests didn't pass with this change and after this change they pass.
2016-05-25trans: save metadata even with -Z no-trans.Eduard Burtescu-0/+7
2016-05-24test: Use `set sysroot` for more NDK compatibilityAlex Crichton-5/+6
Recent versions of the Android NDK no longer ship debuggers like `arm-linux-androideabi-gdb`, but instead one prebuilt binary `gdb`. We can symlink this into place at least to get our detection still working, but it now needs to be told what the sysroot is so it can correctly do... something. Long story short, tests didn't pass with this change and after this change they pass.
2016-05-18Auto merge of #33688 - jonathandturner:fix_old_school, r=nikomatsakisbors-21/+33
Fix for old school error issues, improvements to new school This PR: * Fixes some old school error issues, specifically #33559, #33543, #33366 * Improves wording borrowck errors with match patterns * De-emphasize multi-line spans, so we don't color the single source character when we're trying to say "span starts here" * Rollup of #33392 (which should help fix #33390) r? @nikomatsakis
2016-05-18pass revision and incr_comp directory to auxbuildNiko Matsakis-10/+40
This is needed for incremental compilation harness to support cross-crate testing. Also support cfg for typechecking prettyprint
2016-05-17Improve a few errors and fix #33366Jonathan Turner-19/+28
2016-05-17De-emph minimized spans, add better debugging outputJonathan Turner-7/+10
2016-05-16Auto merge of #33588 - nikomatsakis:compiletest-ui, r=acrichtobors-1/+175
add UI testing framework This adds a framework for capturing and tracking the precise output of rustc, which allows us to check all manner of minor details with the output. It's pretty strict right now -- the output must match almost exactly -- and hence maybe a bit too strict. But I figure we can add wildcards or whatever later. There is also a script intended to make updating the references easy, though the script could make things a *bit* easier (in particular, it'd be nice if it would find the build directory for you automatically). One thing I was wondering about is the best way to test colors. Since windows doesn't embed those in the output stream, this test framework can't test colors on windows -- so I figure we can just write tests that are ignored on windows and which pass `--color=always` or whatever to rustc. cc @jonathandturner r? @alexcrichton
2016-05-16pacify the mercilous tidyNiko Matsakis-1/+2
2016-05-13dump outputs, diff on UI test failureNiko Matsakis-14/+98
2016-05-13add UI testing frameworkNiko Matsakis-1/+90
2016-05-11Use symlink_metadata in tidy to avoid panicking on broken symlinks.Eduard Burtescu-1/+1
2016-05-09rustc: Implement custom panic runtimesAlex Crichton-0/+3
This commit is an implementation of [RFC 1513] which allows applications to alter the behavior of panics at compile time. A new compiler flag, `-C panic`, is added and accepts the values `unwind` or `panic`, with the default being `unwind`. This model affects how code is generated for the local crate, skipping generation of landing pads with `-C panic=abort`. [RFC 1513]: https://github.com/rust-lang/rfcs/blob/master/text/1513-less-unwinding.md Panic implementations are then provided by crates tagged with `#![panic_runtime]` and lazily required by crates with `#![needs_panic_runtime]`. The panic strategy (`-C panic` value) of the panic runtime must match the final product, and if the panic strategy is not `abort` then the entire DAG must have the same panic strategy. With the `-C panic=abort` strategy, users can expect a stable method to disable generation of landing pads, improving optimization in niche scenarios, decreasing compile time, and decreasing output binary size. With the `-C panic=unwind` strategy users can expect the existing ability to isolate failure in Rust code from the outside world. Organizationally, this commit dismantles the `sys_common::unwind` module in favor of some bits moving part of it to `libpanic_unwind` and the rest into the `panicking` module in libstd. The custom panic runtime support is pretty similar to the custom allocator support with the only major difference being how the panic runtime is injected (takes the `-C panic` flag into account).
2016-05-08Auto merge of #33365 - birkenfeld:makehelpfix, r=alexcrichtonbors-1/+1
Makefile: there is only one tidy target now Also removes mention of tidy.py from the tidy sources.
2016-05-08Auto merge of #33414 - Nercury:master, r=alexcrichtonbors-4/+4
Add armv7-linux-androideabi target This PR adds `armv7-linux-androideabi` target that matches `armeabi-v7a` Android ABI, ~~downscales `arm-linux-androideabi` target to match `armeabi` Android ABI~~ (TBD later if needed). This should allow us to get the best performance from every [Android ABI level](http://developer.android.com/ndk/guides/abis.html). Currently existing target `arm-linux-androideabi` started gaining features out of the supported range of [android `armeabi`](http://developer.android.com/ndk/guides/abis.html). While android compiler does not use a different target for later supported `armv7` architecture, it has distinct ABI name `armeabi-v7a`. We decided to add rust target `armv7-linux-androideabi` to match it. Note that `NEON`, `VFPv3-D32`, and `ThumbEE` instruction sets are not added, because not all android devices are guaranteed to support all or some of these, and [their availability should be checked at runtime](http://developer.android.com/ndk/guides/abis.html#v7a). ~~This reduces performance of existing `arm-linux-androideabi` and may make it _much_ slower (we are talking more than order of magnitude in some random ad-hoc fp benchmark that I did).~~ Part of #33278.
2016-05-08Rollup merge of #33404 - gsquire:cargo-lock, r=alexcrichtonManish Goregaokar-0/+45
Cargo lock tidy check A rebased PR for #32901
2016-05-08Auto merge of #33091 - sanxiyn:unused-trait-import-3, r=nrcbors-3/+1
Warn unused trait imports, rebased Rebase of #30021. Fix #25730.
2016-05-08Auto merge of #33130 - eddyb:mir-const, r=nikomatsakisbors-0/+5
Implement constant support in MIR. All of the intended features in `trans::consts` are now supported by `mir::constant`. The implementation is considered a temporary measure until `miri` replaces it. A `-Z orbit` bootstrap build will only translate LLVM IR from AST for `#[rustc_no_mir]` functions. Furthermore, almost all checks of constant expressions have been moved to MIR. In non-`const` functions, trees of temporaries are promoted, as per RFC 1414 (rvalue promotion). Promotion before MIR borrowck would allow reasoning about promoted values' lifetimes. The improved checking comes at the cost of four `[breaking-change]`s: * repeat counts must contain a constant expression, e.g.: `let arr = [0; { println!("foo"); 5 }];` used to be allowed (it behaved like `let arr = [0; 5];`) * dereference of a reference to a `static` cannot be used in another `static`, e.g.: `static X: [u8; 1] = [1]; static Y: u8 = (&X)[0];` was unintentionally allowed before * the type of a `static` *must* be `Sync`, irrespective of the initializer, e.g. `static FOO: *const T = &BAR;` worked as `&T` is `Sync`, but it shouldn't because `*const T` isn't * a `static` cannot wrap `UnsafeCell` around a type that *may* need drop, e.g. `static X: MakeSync<UnsafeCell<Option<String>>> = MakeSync(UnsafeCell::new(None));` was previously allowed based on the fact `None` alone doesn't need drop, but in `UnsafeCell` it can be later changed to `Some(String)` which *does* need dropping The drop restrictions are relaxed by RFC 1440 (#33156), which is implemented, but feature-gated. However, creating `UnsafeCell` from constants is unstable, so users can just enable the feature gate.
2016-05-07Always remove tmp/partitioning-tests before check-codegen-units to work ↵Eduard Burtescu-0/+5
around #33435.
2016-05-07Rollup merge of #33438 - birkenfeld:dup-words, r=steveklabnikSteve Klabnik-1/+1
Fix some some duplicate words.
2016-05-07Check for both arm and armv7 android targets in runtest.Nerijus Arlauskas-4/+4
2016-05-06s/aux/auxiliary, because windowsNiko Matsakis-3/+3
For legacy reasons (presumably), Windows does not permit files name aux.
2016-05-06kill the old auxiliary directoryNiko Matsakis-5/+0
2016-05-06move auxiliary builds to a test-relative `aux`Niko Matsakis-44/+61
Instead of finding aux-build files in `auxiliary`, we now search for an `aux` directory relative to the test. So if your test is `compile-fail/foo.rs`, we would look in `compile-fail/aux`. Similarly, we ignore the `aux` directory when searching for tets.
2016-05-06tweak incremental commentNiko Matsakis-9/+9
2016-05-06move free functions in runtest into methodsNiko Matsakis-1732/+1692
Also, promote the for loop iterating over revisions out into the top-level method, whereas before it was pushed down instead each test's method. Not entirely clear that this was the right call.
2016-05-06use methods for EarlyProps and TestPropsNiko Matsakis-214/+220
2016-05-06refactor interface of make_compile_argsNiko Matsakis-21/+26
2016-05-06Auto merge of #33225 - michaelwoerister:fix-debuginfo-struct-ns, r=eddybbors-47/+51
debuginfo: Fix regression in namespace handling for struct types. Fixes a small regression that has been introduced in recent refactorings. Fixes #33193 r? @eddyb
2016-05-05Fix some some duplicate words.Georg Brandl-1/+1
2016-05-04add a check to make tidy to ensure cargo lock file is updatedGarrett Squire-0/+45
2016-05-03mk: Pass CFLAGS for target, not hostAlex Crichton-0/+5
This changes the CFLAGS and related variables passed to compiletest to be passed for the target, not the host, so we can correctly test 32-bit cross compiles on 64-bit host machines. Hopefuly fixes #33379
2016-05-04Update commit hash in cargotestSeo Sanghyeon-1/+1