about summary refs log tree commit diff
path: root/src/test/run-pass/static-assert.rs
AgeCommit message (Collapse)AuthorLines
2015-06-03Remove #[static_assert]Steve Klabnik-28/+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-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-03Feature gate `#[static_assert]`.Huon Wilson-0/+2
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-30Remove all `i` suffixesTobias Bucher-3/+3
2014-06-29librustc: Remove the fallback to `int` for integers and `f64` forPatrick Walton-3/+3
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-02-07Added tests to make tidyDerek Guenther-0/+10
2013-09-25Fix run-pass tests to have 'pub fn main'Alex Crichton-1/+1
This is required by the check-fast target because each test is slurped up into a submodule.
2013-05-22Implement static_assert attributeCorey Richardson-0/+14
This verifies that a static item evaluates to true, at compile time.