about summary refs log tree commit diff
path: root/src/test/compile-fail/static-assert2.rs
AgeCommit message (Collapse)AuthorLines
2015-06-03Remove #[static_assert]Steve Klabnik-17/+0
This was always a weird feature, and isn't being used in the compiler. Static assertions should be done better than this. This implements RFC #1096. Fixes #13951 Fixes #23008 Fixes #6676 This is behind a feature gate, but that's still a [breaking-change]
2015-03-03Feature gate `#[static_assert]`.Huon Wilson-0/+1
The API this exposes is a little strange (being attached to `static`s), so it makes sense to conservatively feature gate it. If it is highly popular, it is possible to reverse this gating.
2015-01-31Kill more `isize`sTobias Bucher-1/+1
2015-01-08Update compile-fail tests to use is/us, not i/u.Huon Wilson-1/+1
2014-06-29librustc: Remove the fallback to `int` for integers and `f64` forPatrick Walton-1/+1
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-03-28Convert most code to new inner attribute syntax.Brian Anderson-1/+1
Closes #2569
2014-02-07Added tests to make tidyDerek Guenther-0/+10
2013-12-08Add dead-code warning passKiet Tran-0/+2
2013-07-01rustc: add a lint to enforce uppercase statics.Huon Wilson-1/+1
2013-05-22Implement static_assert attributeCorey Richardson-0/+4
This verifies that a static item evaluates to true, at compile time.