about summary refs log tree commit diff
path: root/src/test/run-pass/new-box-syntax.rs
AgeCommit message (Collapse)AuthorLines
2018-12-25Remove licensesMark Rousskov-10/+0
2018-04-03Remove all unstable placement featuresAidan Hobson Sayers-8/+2
Closes #22181, #27779
2015-09-24Remove the deprecated box(PLACE) syntax.Eduard Burtescu-3/+3
2015-07-23fix pretty printing tests by opting into the features that the expanded code ↵Felix S. Klock II-0/+4
needs.
2015-07-22refine set of allowed warnings in `new-box-syntax.rs` test.Felix S. Klock II-1/+1
2015-07-22Add actual use of the `struct Structure` lying dormant in `new-box-syntax.rs`.Felix S. Klock II-0/+5
The original test program exercised the (garbage-collected heap) allocation form `box (GC) ...`, feeding an instance of `Structure` in as the expression. This obviously went away when `GC` went away, but there's no reason for us not to include an appropriate unit test here for the same form, just for heap-allocated instances of `Structure`.
2015-07-22Add new feature gate opt-in necessary for `new-box-syntax.rs`.Felix S. Klock II-0/+1
2015-06-17Fallout in tests and docs from feature renamingsAlex Crichton-2/+2
2015-03-26Mass rename uint/int to usize/isizeAlex Crichton-5/+5
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-23Require feature attributes, and add them where necessaryBrian Anderson-1/+1
2015-01-30Remove all `i` suffixesTobias Bucher-4/+4
2015-01-08fallout: run-pass tests that use box. (many could be ported to `Box::new` ↵Felix S. Klock II-0/+1
instead in the future.)
2015-01-08run-pass tests: Add feature attributes to enable box pat/expr syntax in ↵Felix S. Klock II-0/+2
various tests.
2014-10-02tests: remove uses of Gc.Eduard Burtescu-8/+1
2014-07-13Stabilization for `owned` (now `boxed`) and `cell`Aaron Turon-2/+1
This PR is the outcome of the library stabilization meeting for the `liballoc::owned` and `libcore::cell` modules. Aside from the stability attributes, there are a few breaking changes: * The `owned` modules is now named `boxed`, to better represent its contents. (`box` was unavailable, since it's a keyword.) This will help avoid the misconception that `Box` plays a special role wrt ownership. * The `AnyOwnExt` extension trait is renamed to `BoxAny`, and its `move` method is renamed to `downcast`, in both cases to improve clarity. * The recently-added `AnySendOwnExt` extension trait is removed; it was not being used and is unnecessary. [breaking-change]
2014-06-29librustc: Remove the fallback to `int` for integers and `f64` forPatrick Walton-6/+6
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-14rustc: Obsolete the `@` syntax entirelyAlex Crichton-1/+1
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-05-06librustc: Remove `~EXPR`, `~TYPE`, and `~PAT` from the language, exceptPatrick Walton-4/+4
for `~str`/`~[]`. Note that `~self` still remains, since I forgot to add support for `Box<self>` before the snapshot. How to update your code: * Instead of `~EXPR`, you should write `box EXPR`. * Instead of `~TYPE`, you should write `Box<Type>`. * Instead of `~PATTERN`, you should write `box PATTERN`. [breaking-change]
2014-02-07Added tests to make tidyDerek Guenther-0/+10
2014-01-09librustc: Implement placement `box` for GC and unique pointers.Patrick Walton-2/+20
2013-12-15libstd: Fix merge fallout.Patrick Walton-1/+1
2013-12-15libsyntax: Implement the new `box` syntax for unique pointers.Patrick Walton-0/+8