summary refs log tree commit diff
path: root/src/test/run-pass/weird-exprs.rs
AgeCommit message (Collapse)AuthorLines
2014-10-02tests: remove uses of Gc.Eduard Burtescu-3/+2
2014-07-26Remove managed_box gate from testsBrian Anderson-1/+0
No longer does anything.
2014-06-29librustc: Remove the fallback to `int` for integers and `f64` forPatrick Walton-4/+4
floating point numbers for real. This will break code that looks like: let mut x = 0; while ... { x += 1; } println!("{}", x); Change that code to: let mut x = 0i; while ... { x += 1; } println!("{}", x); Closes #15201. [breaking-change]
2014-06-24librustc: Remove the fallback to `int` from typechecking.Niko Matsakis-1/+1
This breaks a fair amount of code. The typical patterns are: * `for _ in range(0, 10)`: change to `for _ in range(0u, 10)`; * `println!("{}", 3)`: change to `println!("{}", 3i)`; * `[1, 2, 3].len()`: change to `[1i, 2, 3].len()`. RFC #30. Closes #6023. [breaking-change]
2014-06-14rustc: Obsolete the `@` syntax entirelyAlex Crichton-2/+3
This removes all remnants of `@` pointers from rustc. Additionally, this removes the `GC` structure from the prelude as it seems odd exporting an experimental type in the prelude by default. Closes #14193 [breaking-change]
2014-04-14Use new attribute syntax in python files in src/etc too (#13478)Manish Goregaokar-1/+1
2014-03-15log: Introduce liblog, the old std::loggingAlex Crichton-2/+2
This commit moves all logging out of the standard library into an external crate. This crate is the new crate which is responsible for all logging macros and logging implementation. A few reasons for this change are: * The crate map has always been a bit of a code smell among rust programs. It has difficulty being loaded on almost all platforms, and it's used almost exclusively for logging and only logging. Removing the crate map is one of the end goals of this movement. * The compiler has a fair bit of special support for logging. It has the __log_level() expression as well as generating a global word per module specifying the log level. This is unfairly favoring the built-in logging system, and is much better done purely in libraries instead of the compiler itself. * Initialization of logging is much easier to do if there is no reliance on a magical crate map being available to set module log levels. * If the logging library can be written outside of the standard library, there's no reason that it shouldn't be. It's likely that we're not going to build the highest quality logging library of all time, so third-party libraries should be able to provide just as high-quality logging systems as the default one provided in the rust distribution. With a migration such as this, the change does not come for free. There are some subtle changes in the behavior of liblog vs the previous logging macros: * The core change of this migration is that there is no longer a physical log-level per module. This concept is still emulated (it is quite useful), but there is now only a global log level, not a local one. This global log level is a reflection of the maximum of all log levels specified. The previously generated logging code looked like: if specified_level <= __module_log_level() { println!(...) } The newly generated code looks like: if specified_level <= ::log::LOG_LEVEL { if ::log::module_enabled(module_path!()) { println!(...) } } Notably, the first layer of checking is still intended to be "super fast" in that it's just a load of a global word and a compare. The second layer of checking is executed to determine if the current module does indeed have logging turned on. This means that if any module has a debug log level turned on, all modules with debug log levels get a little bit slower (they all do more expensive dynamic checks to determine if they're turned on or not). Semantically, this migration brings no change in this respect, but runtime-wise, this will have a perf impact on some code. * A `RUST_LOG=::help` directive will no longer print out a list of all modules that can be logged. This is because the crate map will no longer specify the log levels of all modules, so the list of modules is not known. Additionally, warnings can no longer be provided if a malformed logging directive was supplied. The new "hello world" for logging looks like: #[phase(syntax, link)] extern crate log; fn main() { debug!("Hello, world!"); }
2014-02-11Move replace and swap to std::mem. Get rid of std::utilEdward Wang-2/+2
Also move Void to std::any, move drop to std::mem and reexport in prelude.
2014-01-03test: De-`@mut` the test suitePatrick Walton-3/+6
2013-10-23register snapshotsDaniel Micay-0/+2
2013-10-22Drop the '2' suffix from logging macrosAlex Crichton-3/+3
Who doesn't like a massive renaming?
2013-10-01Migrate users of 'loop' to 'continue'Alex Crichton-1/+1
Closes #9467
2013-09-30rpass: Remove usage of fmt!Alex Crichton-3/+3
2013-08-17Fix warnings it testsErick Tryzelaar-1/+1
2013-07-17Clean-up tests after debug!/std-macros change.Huon Wilson-2/+2
The entire testsuite is converted to using info! rather than debug! because some depend on the code within the debug! being trans'd.
2013-05-22test: Update tests to use the new syntax.Patrick Walton-1/+1
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-10Stop using the '<->' operatorAlex Crichton-1/+3
2013-03-29librustc: Remove `fail_unless!`Patrick Walton-3/+3
2013-03-22test: Remove `pure` from the test suitePatrick Walton-1/+1
2013-03-11Remove uses of logBrian Anderson-5/+0
2013-03-07test: Fix tests.Patrick Walton-2/+2
2013-03-07librustc: Convert all uses of `assert` over to `fail_unless!`Patrick Walton-3/+3
2013-02-15tests/tutorials: Get rid of `move`.Luqman Aden-2/+2
2013-02-13Remove die!, raplace invocations with fail! Issue #4524 pt 3Nick Desaulniers-1/+1
2013-02-01check-fast fallout from removing export, r=burningtreeGraydon Hoare-1/+1
2013-01-31Replace most invocations of fail keyword with die! macroNick Desaulniers-1/+1
2012-12-10Reliciense makefiles and testsuite. Yup.Graydon Hoare-0/+10
2012-10-23Remove uses of binary move - <- - from tests and librariesTim Chevalier-2/+2
2012-09-07Convert 'again' to 'loop'. Remove 'again' keywordBrian Anderson-1/+1
2012-09-04Parse 'loop' and 'again' the sameBrian Anderson-1/+1
2012-08-23Remove match check from test casesTim Chevalier-1/+2
2012-08-23`m1!{...}` -> `m1!(...)`Paul Stansifer-1/+1
2012-08-06Convert alt to match. Stop parsing altBrian Anderson-2/+2
2012-08-05Switch alts to use arrowsBrian Anderson-3/+3
2012-08-01Convert ret to returnBrian Anderson-15/+15
2012-07-30Change syntax extension syntax: `#m[...]` -> `m!{...}`.Paul Stansifer-1/+1
2012-07-14remove typestate from code, tests, and docsNiko Matsakis-2/+2
2012-07-09Catch one missing residual 'cont' -> 'again' change.Graydon Hoare-1/+1
2012-06-20Remove bind. Issue #2189Brian Anderson-1/+1
2012-05-10Remove `do ... while` loops from the tests and docs.Paul Stansifer-3/+4
2012-04-30Stop inferring bot/static when types/regions are unconstrained.Niko Matsakis-3/+4
Also, some other changes that came up along the way: - add a 'blk' region for the current block. - detect unused type/region variables.
2012-03-29resolve type variables with no constraints to botNiko Matsakis-4/+4
2012-03-26Bulk-edit mutable -> mut.Graydon Hoare-2/+2
2012-03-24Avoid unifying vars when possible; handle bot (more) correctlyNiko Matsakis-5/+5
2012-03-22make --enforce-mut-vars always on, add mut annotations to remaining filesNiko Matsakis-4/+4
2012-03-09Add an infinite loop constructTim Chevalier-1/+1
Add a loop {} construct for infinite loops, and use it in test cases. See #1906 for details.
2012-01-30Fix last failing testPaul Woolcock-1/+9
All tests now pass, without the ternary operator.
2012-01-30Alter/remove tests that include/concern ternaryPaul Woolcock-1/+1
3 tests, pretty/block-disambig.rs, run-pass/operator-overloading.rs, and run-pass/weird-exprs.rs, all included the ternary operator. These were changed to use the if-then-else construct instead. 2 tests, run-pass/block-arg-in-ternary.rs and run-pass/ternary.rs, were only there because of the ternary operator, and were removed.
2011-12-22Register new snapshots, purge log_err and log_full in favour of log(...).Graydon Hoare-2/+2