about summary refs log tree commit diff
path: root/src/test/run-pass/conditional-compile.rs
AgeCommit message (Collapse)AuthorLines
2018-09-06Migrated slew of run-pass tests to various subdirectories of `ui/run-pass/`.Felix S. Klock II-153/+0
2018-05-17Rename trans to codegen everywhere.Irina Popa-1/+1
2016-09-15Add regression test.Jeffrey Seyfried-0/+3
2015-04-08Remove pretty-expanded from failing testsAlex Crichton-1/+0
This commit removes pretty-expanded from all tests that wind up calling panic! one way or another now that its internals are unstable.
2015-03-26Mass rename uint/int to usize/isizeAlex Crichton-8/+8
Now that support has been removed, all lingering use cases are renamed.
2015-03-23rustdoc: Replace no-pretty-expanded with pretty-expandedBrian Anderson-0/+2
Now that features must be declared expanded source often does not compile. This adds 'pretty-expanded' to a bunch of test cases that still work.
2015-03-15Strip all leading/trailing newlinesTamir Duberstein-1/+0
2014-11-17Switch to purely namespaced enumsSteven Fackler-1/+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-10-29Rename fail! to panic!Steve Klabnik-2/+2
https://github.com/rust-lang/rfcs/pull/221 The current terminology of "task failure" often causes problems when writing or speaking about code. You often want to talk about the possibility of an operation that returns a Result "failing", but cannot because of the ambiguity with task failure. Instead, you have to speak of "the failing case" or "when the operation does not succeed" or other circumlocutions. Likewise, we use a "Failure" header in rustdoc to describe when operations may fail the task, but it would often be helpful to separate out a section describing the "Err-producing" case. We have been steadily moving away from task failure and toward Result as an error-handling mechanism, so we should optimize our terminology accordingly: Result-producing functions should be easy to describe. To update your code, rename any call to `fail!` to `panic!` instead. Assuming you have not created your own macro named `panic!`, this will work on UNIX based systems: grep -lZR 'fail!' . | xargs -0 -l sed -i -e 's/fail!/panic!/g' You can of course also do this by hand. [breaking-change]
2014-05-24core: rename strbuf::StrBuf to string::StringRicho Healey-2/+2
[breaking-change]
2014-05-14test: Remove all uses of `~str` from the test suite.Patrick Walton-2/+2
2014-04-06Remove check-fast. Closes #4193, #8844, #6330, #7416Brian Anderson-1/+0
2014-02-11Change `xfail` directives in compiletests to `ignore`, closes #11363Florian Hahn-2/+2
2013-11-19Implement more native file I/OAlex Crichton-2/+2
This implements a fair amount of the unimpl() functionality in io::native relating to filesystem operations. I've also modified all io::fs tests to run in both a native and uv environment (so everything is actually tested). There are a two bits of remaining functionality which I was unable to get working: * change_file_times on windows * lstat on windows I think that change_file_times may just need a better interface, but lstat has a large implementation in libuv which I didn't want to tackle trying to copy.
2013-10-14Removing ccdeclSteve Klabnik-3/+3
as per https://github.com/mozilla/rust/pull/9606#discussion_r6930872
2013-10-14Remove unused abi attributes.Steve Klabnik-6/+3
They've been replaced by putting the name on the extern block. #[abi = "foo"] goes to extern "foo" { } Closes #9483.
2013-08-17Fix warnings it testsErick Tryzelaar-2/+2
2013-07-20librustc: Remove `pub extern` and `priv extern` from the language.Patrick Walton-3/+3
Place `pub` or `priv` on individual items instead.
2013-05-19Use assert_eq! rather than assert! where possibleCorey Richardson-1/+1
2013-05-03add gitattributes and fix whitespace issuesDaniel Micay-1/+1
2013-03-29librustc: Remove `fail_unless!`Patrick Walton-2/+2
2013-03-22librustc: Remove the `const` declaration form everywherePatrick Walton-4/+4
2013-03-22librustc: Remove all uses of `static` from functions. rs=destaticPatrick Walton-4/+4
2013-03-19libsyntax: Forbid `use` (and most other things) within `extern { ... }` blocksPatrick Walton-7/+0
2013-03-13librustc: Remove implicit self from the language, except for old-style drop ↵Patrick Walton-8/+8
blocks.
2013-03-11rt/core: port os::list_dir to rust ref #4812Jeff Olson-2/+2
2013-03-07librustc: Convert all uses of `assert` over to `fail_unless!`Patrick Walton-2/+2
2013-03-07librustc: Remove "extern mod { ... }" from librustc, librustdoc, and tests. ↵Patrick Walton-17/+23
rs=deexterning
2013-02-14librustc: Replace `impl Type : Trait` with `impl Trait for Type`. ↵Patrick Walton-1/+1
rs=implflipping
2013-02-13Remove die!, raplace invocations with fail! Issue #4524 pt 3Nick Desaulniers-2/+2
2013-02-01check-fast fallout from removing export, r=burningtreeGraydon Hoare-2/+2
2013-01-31Replace most invocations of fail keyword with die! macroNick Desaulniers-2/+2
2013-01-30test: Remove export from the tests, language, and libraries. rs=deexportingPatrick Walton-18/+9
2012-12-13librustc: Make `use` statements crate-relative by default. r=brsonPatrick Walton-0/+2
2012-12-10Reliciense makefiles and testsuite. Yup.Graydon Hoare-0/+10
2012-11-01Support #[cfg] on methodsBrian Anderson-1/+35
2012-09-21Install new pub/priv/export rules as defaults, old rules accessible under ↵Graydon Hoare-1/+9
#[legacy_exports];
2012-09-07Remove 'let' syntax for struct fieldsBrian Anderson-2/+2
2012-09-06Remove struct ctorsBrian Anderson-2/+13
2012-09-01Try to work around check-fast breakageBrian Anderson-2/+2
2012-08-31Fix test caseBrian Anderson-2/+2
2012-08-17Remove the class keywordBrian Anderson-2/+2
2012-08-01Convert ret to returnBrian Anderson-1/+1
2012-07-09rustc: Conditionally compile view items. #2357Brian Anderson-0/+10
2012-07-03Switch 'native' to 'extern' (or 'foreign' in some descriptions)Graydon Hoare-3/+3
2012-06-26Change 'native' and 'crust' to 'extern'.Graydon Hoare-1/+1
This comes with a terminology change. All linkage-symbols are 'extern' now, including rust syms in other crates. Some extern ABIs are merely "foreign". The term "native" is retired, not clear/useful. What was "crust" is now "extern" applied to a _definition_. This is a bit of an overloading, but should be unambiguous: it means that the definition should be made available to some non-rust ABI.
2012-06-06Revert "Revert "Fix test case so the class in it is non-empty" due to test ↵Tim Chevalier-2/+4
failures" This reverts commit c6e16c5668a86245259a4f542a62199b2023b89b.
2012-06-03prohibit type parameters in native fns and other minor fixesNiko Matsakis-2/+2
trans now can safely assert that it never sees a type param
2012-05-15Start porting tests to use classes with dtors instead of resourcesTim Chevalier-2/+6
2012-01-19rustc: Make the pretty printer output commas after enum variants. Update all ↵Patrick Walton-2/+2
tests accordingly.