about summary refs log tree commit diff
path: root/src/compiletest/common.rs
AgeCommit message (Collapse)AuthorLines
2015-01-21rollup merge of #21457: alexcrichton/issue-21436Alex Crichton-9/+3
Conflicts: src/liballoc/boxed.rs src/librustc/middle/traits/error_reporting.rs src/libstd/sync/mpsc/mod.rs
2015-01-20std: Rename Show/String to Debug/DisplayAlex Crichton-9/+3
This commit is an implementation of [RFC 565][rfc] which is a stabilization of the `std::fmt` module and the implementations of various formatting traits. Specifically, the following changes were performed: [rfc]: https://github.com/rust-lang/rfcs/blob/master/text/0565-show-string-guidelines.md * The `Show` trait is now deprecated, it was renamed to `Debug` * The `String` trait is now deprecated, it was renamed to `Display` * Many `Debug` and `Display` implementations were audited in accordance with the RFC and audited implementations now have the `#[stable]` attribute * Integers and floats no longer print a suffix * Smart pointers no longer print details that they are a smart pointer * Paths with `Debug` are now quoted and escape characters * The `unwrap` methods on `Result` now require `Display` instead of `Debug` * The `Error` trait no longer has a `detail` method and now requires that `Display` must be implemented. With the loss of `String`, this has moved into libcore. * `impl<E: Error> FromError<E> for Box<Error>` now exists * `derive(Show)` has been renamed to `derive(Debug)`. This is not currently warned about due to warnings being emitted on stage1+ While backwards compatibility is attempted to be maintained with a blanket implementation of `Display` for the old `String` trait (and the same for `Show`/`Debug`) this is still a breaking change due to primitives no longer implementing `String` as well as modifications such as `unwrap` and the `Error` trait. Most code is fairly straightforward to update with a rename or tweaks of method calls. [breaking-change] Closes #21436
2015-01-19Remove unsupported test features from compiletest.Ahmed Charles-14/+0
Removes test-shard, ratchet-metrics and save-metrics from Config in compiletest/common.rs.
2015-01-06core: split into fmt::Show and fmt::StringSean McArthur-4/+9
fmt::Show is for debugging, and can and should be implemented for all public types. This trait is used with `{:?}` syntax. There still exists #[derive(Show)]. fmt::String is for types that faithfully be represented as a String. Because of this, there is no way to derive fmt::String, all implementations must be purposeful. It is used by the default format syntax, `{}`. This will break most instances of `{}`, since that now requires the type to impl fmt::String. In most cases, replacing `{}` with `{:?}` is the correct fix. Types that were being printed specifically for users should receive a fmt::String implementation to fix this. Part of #20013 [breaking-change]
2015-01-03sed -i -s 's/#\[deriving(/#\[derive(/g' **/*.rsJorge Aparicio-2/+2
2014-12-08librustc: Make `Copy` opt-in.Niko Matsakis-0/+2
This change makes the compiler no longer infer whether types (structures and enumerations) implement the `Copy` trait (and thus are implicitly copyable). Rather, you must implement `Copy` yourself via `impl Copy for MyType {}`. A new warning has been added, `missing_copy_implementations`, to warn you if a non-generic public type has been added that could have implemented `Copy` but didn't. For convenience, you may *temporarily* opt out of this behavior by using `#![feature(opt_out_copy)]`. Note though that this feature gate will never be accepted and will be removed by the time that 1.0 is released, so you should transition your code away from using it. This breaks code like: #[deriving(Show)] struct Point2D { x: int, y: int, } fn main() { let mypoint = Point2D { x: 1, y: 1, }; let otherpoint = mypoint; println!("{}{}", mypoint, otherpoint); } Change this code to: #[deriving(Show)] struct Point2D { x: int, y: int, } impl Copy for Point2D {} fn main() { let mypoint = Point2D { x: 1, y: 1, }; let otherpoint = mypoint; println!("{}{}", mypoint, otherpoint); } This is the backwards-incompatible part of #13231. Part of RFC #3. [breaking-change]
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-16Move FromStr to core::strBrendan Zabarauskas-1/+1
2014-10-23Error if we should be able to Valgrind but can'tNick Cameron-0/+4
2014-10-23Add run-pass-valgrind testsNick Cameron-0/+6
Closes #16914
2014-10-08debuginfo: Add LLDB version handling to test infrastructure.Michael Woerister-0/+3
2014-08-27debuginfo: Emit different autotest debugger scripts depending on GDB version.Michael Woerister-0/+3
2014-08-01Fix misspelled comments.Joseph Crail-1/+1
2014-05-30std: Rename {Eq,Ord} to Partial{Eq,Ord}Alex Crichton-1/+1
This is part of the ongoing renaming of the equality traits. See #12517 for more details. All code using Eq/Ord will temporarily need to move to Partial{Eq,Ord} or the Total{Eq,Ord} traits. The Total traits will soon be renamed to {Eq,Ord}. cc #12517 [breaking-change]
2014-05-24core: rename strbuf::StrBuf to string::StringRicho Healey-11/+11
[breaking-change]
2014-05-20compiletest: Refactor compile-fail to regex.Kevin Butler-2/+4
2014-05-16compiletest: Remove all uses of `~str` from `compiletest`Patrick Walton-11/+11
2014-05-15core: Update all tests for fmt movementAlex Crichton-8/+8
2014-05-15test: allow the test filter to be a regex.Huon Wilson-1/+2
This is fully backwards compatible, since test names are Rust identifiers + `:`, and hence not special regex characters. Fixes #2866.
2014-05-14Get rid of the android-cross-path flag to rustc.Luqman Aden-0/+3
There's no need to include this specific flag just for android. We can already deal with what it tries to solve by using -C linker=/path/to/cc and -C ar=/path/to/ar. The Makefiles for rustc already set this up when we're crosscompiling. I did add the flag to compiletest though so it can find gdb. Though, I'm pretty sure we don't run debuginfo tests on android anyways right now. [breaking-change]
2014-05-13compiletest: Modernize typenamesklutzy-10/+43
2014-05-07debuginfo: Split debuginfo autotests into debuginfo-gdb and debuginfo-lldbMichael Woerister-1/+5
2014-03-31compiletest: Switch field privacy where necessaryAlex Crichton-28/+28
2014-02-13mk: Fix non-android cross builds.Luqman Aden-2/+5
2014-01-17test: Add the ability to force a host targetAlex Crichton-0/+3
The new macro loading infrastructure needs the ability to force a procedural-macro crate to be built with the host architecture rather than the target architecture (because the compiler is just about to dlopen it).
2014-01-04etc: licenseck: don't hardcode a specific yearAdrien Tétar-2/+2
2013-08-30auto merge of #8886 : cmr/rust/test-restructure, r=cmrbors-1/+1
2013-08-30Revert "Teach compiletest to use multiple --src-base's"Corey Richardson-1/+1
This reverts commit 8a07f5708196dd72ec030018c2a215a4dd823b2e.
2013-08-30auto merge of #8839 : sanxiyn/rust/env, r=thestingerbors-3/+0
2013-08-28Remove --newrt optionSeo Sanghyeon-3/+0
2013-08-28Teach compiletest to use multiple --src-base'sCorey Richardson-1/+1
2013-08-23test: add support for sharding testsuite by passing --test-shard=a.bGraydon Hoare-0/+5
2013-07-17test: Fix tests.Patrick Walton-1/+2
2013-07-16compiletest: Add support for metrics and ratchet modes.Graydon Hoare-0/+9
2013-07-11initial sketch of codegen mode for compiletest; doesn't measure / compare / ↵Graydon Hoare-0/+7
ratchet the disassembly yet
2013-07-04Bring compiletest/rustpkg/driver up to date on std vs coreAlex Crichton-2/+0
2013-05-22libextra: Rename the actual metadata names of libcore to libstd and libstd ↵Patrick Walton-0/+2
to libextra
2013-05-04compiletest: remove --host and cleanupYoung-il Choi-6/+3
2013-05-02compiletest: configurable test dir for ARMYoung-il Choi-1/+4
2013-05-01compiletest: expanded to ARM test automationYoung-il Choi-0/+12
2013-04-27only use #[no_core] in libcoreDaniel Micay-2/+0
2013-03-25Merge remote-tracking branch 'brson/rt'Brian Anderson-0/+3
Conflicts: src/libcore/rt/context.rs src/libcore/rt/sched.rs src/libcore/rt/thread.rs src/libcore/rt/uv.rs
2013-03-22compiletest: replace uses of old deriving attribute with new oneAndrew Paseltiner-1/+1
2013-03-18Add a way to run the test suite with the new schedulerBrian Anderson-0/+3
TESTARGS=--newrt make check-stage1-rpass Conflicts: src/rt/rustrt.def.in
2013-03-04Remove unused imports throughout src/Alex Crichton-2/+0
2013-02-21Remove the last bits of structural records from tests/rustc/rusti/rustpkg.Luqman Aden-2/+2
2013-02-09Add debug info testsBrian Leibig-2/+3
2013-01-30librustdoc: De-export compiletest, combine-tests, libcargo, libfuzzer, and ↵Patrick Walton-8/+7
librustdoc. rs=deexporting
2013-01-08librustc: Make unqualified identifier searches terminate at the nearest ↵Patrick Walton-0/+2
module scope. r=tjc
2013-01-08Revert "librustc: Make unqualified identifier searches terminate at the ↵Patrick Walton-2/+0
nearest module scope. r=tjc" This reverts commit a8d37af2473da79be704c9ce2374f278c47177b6.