Commit Graph

862 Commits

Author SHA1 Message Date
Niko Matsakis a583ba2fa0 Remove `McResult` from the mem-categorization interface. 2014-12-25 07:04:07 -05:00
Alex Crichton 082bfde412 Fallout of std::str stabilization 2014-12-21 23:31:42 -08:00
Eduard Burtescu 5193d542f6 Fix the fallout of removing feature(import_shadowing). 2014-12-20 07:49:37 +02:00
Eduard Burtescu d5267d5845 Remove feature(import_shadowing) from all crates. 2014-12-20 06:37:14 +02:00
Jorge Aparicio 392ea799b8 librustc_borrowck: use `#[deriving(Copy)]` 2014-12-19 10:51:00 -05:00
Patrick Walton ddb2466f6a librustc: Always parse `macro!()`/`macro![]` as expressions if not
followed by a semicolon.

This allows code like `vec![1i, 2, 3].len();` to work.

This breaks code that uses macros as statements without putting
semicolons after them, such as:

    fn main() {
        ...
        assert!(a == b)
        assert!(c == d)
        println(...);
    }

It also breaks code that uses macros as items without semicolons:

    local_data_key!(foo)

    fn main() {
        println("hello world")
    }

Add semicolons to fix this code. Those two examples can be fixed as
follows:

    fn main() {
        ...
        assert!(a == b);
        assert!(c == d);
        println(...);
    }

    local_data_key!(foo);

    fn main() {
        println("hello world")
    }

RFC #378.

Closes #18635.

[breaking-change]
2014-12-18 12:09:07 -05:00
Pedro Larroy 2e74291290 remove explicit if_let and tuple_indexing feature enables as they now trigger warnings 2014-12-15 15:01:26 +01:00
Niko Matsakis d258d68db6 Remove `proc` types/expressions from the parser, compiler, and
language. Recommend `move||` instead.
2014-12-14 04:21:56 -05:00
Jorge Aparicio 821b836634 librustc: use tuple indexing 2014-12-13 20:04:41 -05:00
Jorge Aparicio b8e0b81dd5 librustc_borrowck: add `#![feature(unboxed_closures)]` 2014-12-13 17:40:34 -05:00
Jorge Aparicio 1195708f64 librustc: use unboxed closures 2014-12-13 17:03:47 -05:00
Niko Matsakis 2854d1bfc2 Separate borrowck into its own crate and remove dead code as well. 2014-12-13 06:01:19 -05:00