]> git.lizzy.rs Git - rust.git/blob - RELEASES.txt
auto merge of #13115 : huonw/rust/rand-errors, r=alexcrichton
[rust.git] / RELEASES.txt
1 Version 0.10 (April 2014)
2 -------------------------
3
4   * ~1500 changes, numerous bugfixes
5
6   * Language
7     * A new RFC process is now in place for modifying the language.
8     * Patterns with `@`-pointers have been removed from the language.
9     * Patterns with unique vectors have been removed from the language.
10     * `@str` has been removed from the language.
11     * `@[T]` has been removed from the language.
12     * `@self` has been removed from the language.
13     * `@Trait` has been removed from the language.
14     * Headers on `~` allocations which contain `@` boxes inside the type for
15       reference counting have been removed.
16     * The semantics around the lifetimes of temporary expressions have changed,
17       see #3511 and #11585 for more information.
18     * Cross-crate syntax extensions are now possible, but feature gated. See
19       #11151 for more information. This includes both `macro_rules!` macros as
20       well as syntax extensions such as `format!`.
21     * New lint modes have been added, and older ones have been turned on to be
22       warn-by-default.
23       * Unnecessary parentheses
24       * Uppercase statics
25       * Camel Case types
26       * Uppercase variables
27       * Publicly visible private types
28     * Unsafe functions can no longer be coerced to closures.
29     * Various obscure macros such as `log_syntax!` are now behind feature gates.
30     * The #[simd] attribute is now behind a feature gate.
31     * Visibility is no longer allowed on `extern crate` statements, and
32       unnecessary visibility (`priv`) is no longer allowed on `use` statements.
33     * Trailing commas are now allowed in argument lists and tuple patterns.
34     * The `do` keyword has been removed, it is now a reserved keyword.
35     * Default type parameters have been implemented, but are feature gated.
36     * Borrowed variables through captures in closures are now considered soundly.
37     * `extern mod` is now `extern crate`
38     * The `Freeze` trait has been removed.
39     * The `Share` trait has been added for types that can be shared among
40       threads.
41     * Labels in macros are now hygienic.
42     * Expresson/statement macro invocations can be delimited with `{}` now.
43     * Treatment of types allowed in `static mut` locations has been tweaked.
44     * The `*` and `.` operators are now overloadable through the `Deref` and
45       `DerefMut` traits.
46     * `~Trait` and `proc` no longer have `Send` bounds by default.
47     * Partial type hints are now supported with the `_` type marker.
48     * An `Unsafe` type was introduced for interior mutability. It is now
49       considered undefined to transmute from `&T` to `&mut T` without using the
50       `Unsafe` type.
51     * The #[linkage] attribute was implemented for extern statics/functions.
52     * The inner attribute syntax has changed from `#[foo];` to `#![foo]`.
53     * `Pod` was renamed to `Copy`.
54
55   * Libraries
56     * The `libextra` library has been removed. It has now been decomposed into
57       component libraries with smaller and more focused nuggets of
58       functionality. The full list of libraries can be found on the
59       documentation index page.
60     * std: `std::condition` has been removed. All I/O errors are now propagated
61       through the `Result` type. In order to assist with error handling, a
62       `try!` macro for unwrapping errors with an early return and an lint for
63       unused results has been added. See #12039 for more information.
64     * std: The `vec` module has been renamed to `slice`.
65     * std: A new vector type, `Vec<T>`, has been added in preparation for DST.
66       This will become the only growable vector in the future.
67     * std: `std::io` now has more public-reexports. Types such as `BufferedReader`
68       are now found at `std::io::BufferedReader` instead of
69       `std::io::buffered::BufferedReader`.
70     * std: `print` and `println` are no longer in the prelude, the `print!` and
71       `println!` macros are intended to be used instead.
72     * std: `Rc` now has a `Weak` pointer for breaking cycles, and it no longer
73       attempts to statically prevent cycles.
74     * std: The standard distribution is adopting the policy of pushing failure
75       to the user rather than failing in libraries. Many functions (such as
76       `slice::last()`) now return `Option<T>` instead of `T` + failing.
77     * std: `fmt::Default` has been renamed to `fmt::Show`, and it now has a new
78       deriving mode: `#[deriving(Show)]`.
79     * std: `ToStr` is now implemented for all types implementing `Show`.
80     * std: The formatting trait methods now take `&self` instead of `&T`
81     * std: The `invert()` method on iterators has been renamed to `rev()`
82     * std: `std::num` has seen a reduction in the genericity of its traits,
83       consolidating functionality into a few core traits.
84     * std: Backtraces are now printed on task failure if the environment
85       variable `RUST_BACKTRACE` is present.
86     * std: Naming conventions for iterators have been standardized. More details
87       can be found on the wiki's style guide.
88     * std: `eof()` has been removed from the `Reader` trait. Specific types may
89       still implement the function.
90     * std: Networking types are now cloneable to allow simultaneous reads/writes.
91     * std: `assert_approx_eq!` has been removed
92     * std: The `e` and `E` formatting specifiers for floats have been added to
93       print them in exponential notation.
94     * std: The `Times` trait has been removed
95     * std: Indications of variance and opting out of builtin bounds is done
96       through marker types in `std::kinds::marker` now
97     * std: `hash` has been rewritten, `IterBytes` has been removed, and
98       `#[deriving(Hash)]` is now possible.
99     * std: `SharedChan` has been removed, `Sender` is now cloneable.
100     * std: `Chan` and `Port` were renamed to `Sender` and `Receiver`.
101     * std: `Chan::new` is now `channel()`.
102     * std: A new synchronous channel type has been implemented.
103     * std: A `select!` macro is now provided for selecting over `Receiver`s.
104     * std: `hashmap` and `trie` have been moved to `libcollections`
105     * std: `run` has been rolled into `io::process`
106     * std: `assert_eq!` now uses `{}` instead of `{:?}`
107     * std: The equality and comparison traits have seen some reorganization.
108     * std: `rand` has moved to `librand`.
109     * std: `to_{lower,upper}case` has been implemented for `char`.
110     * std: Logging has been moved to `liblog`.
111     * collections: `HashMap` has been rewritten for higher performance and less
112       memory usage.
113     * native: The default runtime is now `libnative`. If `libgreen` is desired,
114       it can be booted manually. The runtime guide has more information and
115       examples.
116     * native: All I/O functionality except signals has been implemented.
117     * green: Task spawning with `libgreen` has been optimized with stack caching
118       and various trimming of code.
119     * green: Tasks spawned by `libgreen` now have an unmapped guard page.
120     * sync: The `extra::sync` module has been updated to modern rust (and moved
121       to the `sync` library), tweaking and improving various interfaces while
122       dropping redundant functionality.
123     * sync: A new `Barrier` type has been added to the `sync` library.
124     * sync: An efficient mutex for native and green tasks has been implemented.
125     * serialize: The `base64` module has seen some improvement. It treats
126       newlines better, has non-string error values, and has seen general
127       cleanup.
128     * fourcc: A `fourcc!` macro was introduced
129     * hexfloat: A `hexfloat!` macro was implemented for specifying floats via a
130       hexadecimal literal.
131
132   * Tooling
133     * `rustpkg` has been deprecated and removed from the main repository. Its
134       replacement, `cargo`, is under development.
135     * Nightly builds of rust are now available (INSERT URL HERE)
136     * The memory usage of rustc has been improved many times throughout this
137       release cycle.
138     * The build process supports disabling rpath support for the rustc binary
139       itself.
140     * Code generation has improved in some cases, giving more information to the
141       LLVM optimization passes to enable more extensive optimizations.
142     * Debuginfo compatibility with lldb on OSX has been restored.
143     * The master branch is now gated on an android bot, making building for
144       android much more reliable.
145     * Output flags have been centralized into one `--emit` flag.
146     * Crate type flags have been centralized into one `--crate-type` flag.
147     * Codegen flags have been consolidated behind a `-C` flag.
148     * `rustdoc` now implements syntax highlighting and rendering markdown files.
149     * `rustdoc --test` now tests all code blocks by default.
150     * `rustdoc` now shows documented macros.
151     * `rustdoc` inlines documentation for reexported types.
152     * `rustdoc` search works across crates now.
153     * Linking against outdated crates now has improved error messages.
154     * Error messages with lifetimes will often suggest how to annotate the
155       function to fix the error.
156     * Many more types are documented in the standard library, and new guides
157       were written.
158
159 Version 0.9 (January 2014)
160 --------------------------
161
162    * ~1800 changes, numerous bugfixes
163
164    * Language
165       * The `float` type has been removed. Use `f32` or `f64` instead.
166       * A new facility for enabling experimental features (feature gating) has
167         been added, using the crate-level `#[feature(foo)]` attribute.
168       * Managed boxes (@) are now behind a feature gate
169         (`#[feature(managed_boxes)]`) in preperation for future removal. Use the
170         standard library's `Gc` or `Rc` types instead.
171       * `@mut` has been removed. Use `std::cell::{Cell, RefCell}` instead.
172       * Jumping back to the top of a loop is now done with `continue` instead of
173         `loop`.
174       * Strings can no longer be mutated through index assignment.
175       * Raw strings can be created via the basic `r"foo"` syntax or with matched
176         hash delimiters, as in `r###"foo"###`.
177       * `~fn` is now written `proc (args) -> retval { ... }` and may only be
178         called once.
179       * The `&fn` type is now written `|args| -> ret` to match the literal form.
180       * `@fn`s have been removed.
181       * `do` only works with procs in order to make it obvious what the cost
182         of `do` is.
183       * Single-element tuple-like structs can no longer be dereferenced to
184         obtain the inner value. A more comprehensive solution for overloading
185         the dereference operator will be provided in the future.
186       * The `#[link(...)]` attribute has been replaced with
187         `#[crate_id = "name#vers"]`.
188       * Empty `impl`s must be terminated with empty braces and may not be
189         terminated with a semicolon.
190       * Keywords are no longer allowed as lifetime names; the `self` lifetime
191         no longer has any special meaning.
192       * The old `fmt!` string formatting macro has been removed.
193       * `printf!` and `printfln!` (old-style formatting) removed in favor of
194         `print!` and `println!`.
195       * `mut` works in patterns now, as in `let (mut x, y) = (1, 2);`.
196       * The `extern mod foo (name = "bar")` syntax has been removed. Use
197         `extern mod foo = "bar"` instead.
198       * New reserved keywords: `alignof`, `offsetof`, `sizeof`.
199       * Macros can have attributes.
200       * Macros can expand to items with attributes.
201       * Macros can expand to multiple items.
202       * The `asm!` macro is feature-gated (`#[feature(asm)]`).
203       * Comments may be nested.
204       * Values automatically coerce to trait objects they implement, without
205         an explicit `as`.
206       * Enum discriminants are no longer an entire word but as small as needed to
207         contain all the variants. The `repr` attribute can be used to override
208         the discriminant size, as in `#[repr(int)]` for integer-sized, and
209         `#[repr(C)]` to match C enums.
210       * Non-string literals are not allowed in attributes (they never worked).
211       * The FFI now supports variadic functions.
212       * Octal numeric literals, as in `0o7777`.
213       * The `concat!` syntax extension performs compile-time string concatenation.
214       * The `#[fixed_stack_segment]` and `#[rust_stack]` attributes have been
215         removed as Rust no longer uses segmented stacks.
216       * Non-ascii identifiers are feature-gated (`#[feature(non_ascii_idents)]`).
217       * Ignoring all fields of an enum variant or tuple-struct is done with `..`,
218         not `*`; ignoring remaining fields of a struct is also done with `..`,
219         not `_`; ignoring a slice of a vector is done with `..`, not `.._`.
220       * `rustc` supports the "win64" calling convention via `extern "win64"`.
221       * `rustc` supports the "system" calling convention, which defaults to the
222         preferred convention for the target platform, "stdcall" on 32-bit Windows,
223         "C" elsewhere.
224       * The `type_overflow` lint (default: warn) checks literals for overflow.
225       * The `unsafe_block` lint (default: allow) checks for usage of `unsafe`.
226       * The `attribute_usage` lint (default: warn) warns about unknown
227         attributes.
228       * The `unknown_features` lint (default: warn) warns about unknown
229         feature gates.
230       * The `dead_code` lint (default: warn) checks for dead code.
231       * Rust libraries can be linked statically to one another
232       * `#[link_args]` is behind the `link_args` feature gate.
233       * Native libraries are now linked with `#[link(name = "foo")]`
234       * Native libraries can be statically linked to a rust crate
235         (`#[link(name = "foo", kind = "static")]`).
236       * Native OS X frameworks are now officially supported
237         (`#[link(name = "foo", kind = "framework")]`).
238       * The `#[thread_local]` attribute creates thread-local (not task-local)
239         variables. Currently behind the `thread_local` feature gate.
240       * The `return` keyword may be used in closures.
241       * Types that can be copied via a memcpy implement the `Pod` kind.
242       * The `cfg` attribute can now be used on struct fields and enum variants.
243
244    * Libraries
245       * std: The `option` and `result` API's have been overhauled to make them
246         simpler, more consistent, and more composable.
247       * std: The entire `std::io` module has been replaced with one that is
248         more comprehensive and that properly interfaces with the underlying
249         scheduler. File, TCP, UDP, Unix sockets, pipes, and timers are all
250         implemented.
251       * std: `io::util` contains a number of useful implementations of
252         `Reader` and `Writer`, including `NullReader`, `NullWriter`,
253         `ZeroReader`, `TeeReader`.
254       * std: The reference counted pointer type `extra::rc` moved into std.
255       * std: The `Gc` type in the `gc` module will replace `@` (it is currently
256         just a wrapper around it).
257       * std: The `Either` type has been removed.
258       * std: `fmt::Default` can be implemented for any type to provide default
259         formatting to the `format!` macro, as in `format!("{}", myfoo)`.
260       * std: The `rand` API continues to be tweaked.
261       * std: The `rust_begin_unwind` function, useful for insterting breakpoints
262         on failure in gdb, is now named `rust_fail`.
263       * std: The `each_key` and `each_value` methods on `HashMap` have been
264         replaced by the `keys` and `values` iterators.
265       * std: Functions dealing with type size and alignment have moved from the
266         `sys` module to the `mem` module.
267       * std: The `path` module was written and API changed.
268       * std: `str::from_utf8` has been changed to cast instead of allocate.
269       * std: `starts_with` and `ends_with` methods added to vectors via the
270         `ImmutableEqVector` trait, which is in the prelude.
271       * std: Vectors can be indexed with the `get_opt` method, which returns `None`
272         if the index is out of bounds.
273       * std: Task failure no longer propagates between tasks, as the model was
274         complex, expensive, and incompatible with thread-based tasks.
275       * std: The `Any` type can be used for dynamic typing.
276       * std: `~Any` can be passed to the `fail!` macro and retrieved via
277         `task::try`.
278       * std: Methods that produce iterators generally do not have an `_iter`
279         suffix now.
280       * std: `cell::Cell` and `cell::RefCell` can be used to introduce mutability
281         roots (mutable fields, etc.). Use instead of e.g. `@mut`.
282       * std: `util::ignore` renamed to `prelude::drop`.
283       * std: Slices have `sort` and `sort_by` methods via the `MutableVector`
284         trait.
285       * std: `vec::raw` has seen a lot of cleanup and API changes.
286       * std: The standard library no longer includes any C++ code, and very
287         minimal C, eliminating the dependency on libstdc++.
288       * std: Runtime scheduling and I/O functionality has been factored out into
289         extensible interfaces and is now implemented by two different crates:
290         libnative, for native threading and I/O; and libgreen, for green threading
291         and I/O. This paves the way for using the standard library in more limited
292         embeded environments.
293       * std: The `comm` module has been rewritten to be much faster, have a
294         simpler, more consistent API, and to work for both native and green
295         threading.
296       * std: All libuv dependencies have been moved into the rustuv crate.
297       * native: New implementations of runtime scheduling on top of OS threads.
298       * native: New native implementations of TCP, UDP, file I/O, process spawning,
299         and other I/O.
300       * green: The green thread scheduler and message passing types are almost
301         entirely lock-free.
302       * extra: The `flatpipes` module had bitrotted and was removed.
303       * extra: All crypto functions have been removed and Rust now has a policy of
304         not reimplementing crypto in the standard library. In the future crypto
305         will be provided by external crates with bindings to established libraries.
306       * extra: `c_vec` has been modernized.
307       * extra: The `sort` module has been removed. Use the `sort` method on
308         mutable slices.
309
310    * Tooling
311       * The `rust` and `rusti` commands have been removed, due to lack of
312         maintenance.
313       * `rustdoc` was completely rewritten.
314       * `rustdoc` can test code examples in documentation.
315       * `rustpkg` can test packages with the argument, 'test'.
316       * `rustpkg` supports arbitrary dependencies, including C libraries.
317       * `rustc`'s support for generating debug info is improved again.
318       * `rustc` has better error reporting for unbalanced delimiters.
319       * `rustc`'s JIT support was removed due to bitrot.
320       * Executables and static libraries can be built with LTO (-Z lto)
321       * `rustc` adds a `--dep-info` flag for communicating dependencies to
322         build tools.
323
324 Version 0.8 (September 2013)
325 --------------------------
326
327    * ~2200 changes, numerous bugfixes
328
329    * Language
330       * The `for` loop syntax has changed to work with the `Iterator` trait.
331       * At long last, unwinding works on Windows.
332       * Default methods are ready for use.
333       * Many trait inheritance bugs fixed.
334       * Owned and borrowed trait objects work more reliably.
335       * `copy` is no longer a keyword. It has been replaced by the `Clone` trait.
336       * rustc can omit emission of code for the `debug!` macro if it is passed
337         `--cfg ndebug`
338       * mod.rs is now "blessed". When loading `mod foo;`, rustc will now look
339         for foo.rs, then foo/mod.rs, and will generate an error when both are
340         present.
341       * Strings no longer contain trailing nulls. The new `std::c_str` module
342         provides new mechanisms for converting to C strings.
343       * The type of foreign functions is now `extern "C" fn` instead of `*u8'.
344       * The FFI has been overhauled such that foreign functions are called directly,
345         instead of through a stack-switching wrapper.
346       * Calling a foreign function must be done through a Rust function with the
347         `#[fixed_stack_segment]` attribute.
348       * The `externfn!` macro can be used to declare both a foreign function and
349         a `#[fixed_stack_segment]` wrapper at once.
350       * `pub` and `priv` modifiers on `extern` blocks are no longer parsed.
351       * `unsafe` is no longer allowed on extern fns - they are all unsafe.
352       * `priv` is disallowed everywhere except for struct fields and enum variants.
353       * `&T` (besides `&'static T`) is no longer allowed in `@T`.
354       * `ref` bindings in irrefutable patterns work correctly now.
355       * `char` is now prevented from containing invalid code points.
356       * Casting to `bool` is no longer allowed.
357       * `\0` is now accepted as an escape in chars and strings.
358       * `yield` is a reserved keyword.
359       * `typeof` is a reserved keyword.
360       * Crates may be imported by URL with `extern mod foo = "url";`.
361       * Explicit enum discriminants may be given as uints as in `enum E { V = 0u }`
362       * Static vectors can be initialized with repeating elements,
363         e.g. `static foo: [u8, .. 100]: [0, .. 100];`.
364       * Static structs can be initialized with functional record update,
365         e.g. `static foo: Foo = Foo { a: 5, .. bar };`.
366       * `cfg!` can be used to conditionally execute code based on the crate
367         configuration, similarly to `#[cfg(...)]`.
368       * The `unnecessary_qualification` lint detects unneeded module
369         prefixes (default: allow).
370       * Arithmetic operations have been implemented on the SIMD types in
371         `std::unstable::simd`.
372       * Exchange allocation headers were removed, reducing memory usage.
373       * `format!` implements a completely new, extensible, and higher-performance
374         string formatting system. It will replace `fmt!`.
375       * `print!` and `println!` write formatted strings (using the `format!`
376         extension) to stdout.
377       * `write!` and `writeln!` write formatted strings (using the `format!`
378         extension) to the new Writers in `std::rt::io`.
379       * The library section in which a function or static is placed may
380         be specified with `#[link_section = "..."]`.
381       * The `proto!` syntax extension for defining bounded message protocols
382         was removed.
383       * `macro_rules!` is hygienic for `let` declarations.
384       * The `#[export_name]` attribute specifies the name of a symbol.
385       * `unreachable!` can be used to indicate unreachable code, and fails
386         if executed.
387
388    * Libraries
389       * std: Transitioned to the new runtime, written in Rust.
390       * std: Added an experimental I/O library, `rt::io`, based on the new
391         runtime.
392       * std: A new generic `range` function was added to the prelude, replacing
393         `uint::range` and friends.
394       * std: `range_rev` no longer exists. Since range is an iterator it can be
395         reversed with `range(lo, hi).invert()`.
396       * std: The `chain` method on option renamed to `and_then`; `unwrap_or_default`
397         renamed to `unwrap_or`.
398       * std: The `iterator` module was renamed to `iter`.
399       * std: Integral types now support the `checked_add`, `checked_sub`, and
400         `checked_mul` operations for detecting overflow.
401       * std: Many methods in `str`, `vec`, `option, `result` were renamed for
402         consistency.
403       * std: Methods are standardizing on conventions for casting methods:
404         `to_foo` for copying, `into_foo` for moving, `as_foo` for temporary
405         and cheap casts.
406       * std: The `CString` type in `c_str` provides new ways to convert to and
407         from C strings.
408       * std: `DoubleEndedIterator` can yield elements in two directions.
409       * std: The `mut_split` method on vectors partitions an `&mut [T]` into
410         two splices.
411       * std: `str::from_bytes` renamed to `str::from_utf8`.
412       * std: `pop_opt` and `shift_opt` methods added to vectors.
413       * std: The task-local data interface no longer uses @, and keys are
414         no longer function pointers.
415       * std: The `swap_unwrap` method of `Option` renamed to `take_unwrap`.
416       * std: Added `SharedPort` to `comm`.
417       * std: `Eq` has a default method for `ne`; only `eq` is required
418         in implementations.
419       * std: `Ord` has default methods for `le`, `gt` and `ge`; only `lt`
420         is required in implementations.
421       * std: `is_utf8` performance is improved, impacting many string functions.
422       * std: `os::MemoryMap` provides cross-platform mmap.
423       * std: `ptr::offset` is now unsafe, but also more optimized. Offsets that
424         are not 'in-bounds' are considered undefined.
425       * std: Many freestanding functions in `vec` removed in favor of methods.
426       * std: Many freestanding functions on scalar types removed in favor of
427         methods.
428       * std: Many options to task builders were removed since they don't make
429         sense in the new scheduler design.
430       * std: More containers implement `FromIterator` so can be created by the
431         `collect` method.
432       * std: More complete atomic types in `unstable::atomics`.
433       * std: `comm::PortSet` removed.
434       * std: Mutating methods in the `Set` and `Map` traits have been moved into
435         the `MutableSet` and `MutableMap` traits. `Container::is_empty`,
436         `Map::contains_key`, `MutableMap::insert`, and `MutableMap::remove` have
437         default implementations.
438       * std: Various `from_str` functions were removed in favor of a generic
439         `from_str` which is available in the prelude.
440       * std: `util::unreachable` removed in favor of the `unreachable!` macro.
441       * extra: `dlist`, the doubly-linked list was modernized.
442       * extra: Added a `hex` module with `ToHex` and `FromHex` traits.
443       * extra: Added `glob` module, replacing `std::os::glob`.
444       * extra: `rope` was removed.
445       * extra: `deque` was renamed to `ringbuf`. `RingBuf` implements `Deque`.
446       * extra: `net`, and `timer` were removed. The experimental replacements
447         are `std::rt::io::net` and `std::rt::io::timer`.
448       * extra: Iterators implemented for `SmallIntMap`.
449       * extra: Iterators implemented for `Bitv` and `BitvSet`.
450       * extra: `SmallIntSet` removed. Use `BitvSet`.
451       * extra: Performance of JSON parsing greatly improved.
452       * extra: `semver` updated to SemVer 2.0.0.
453       * extra: `term` handles more terminals correctly.
454       * extra: `dbg` module removed.
455       * extra: `par` module removed.
456       * extra: `future` was cleaned up, with some method renames.
457       * extra: Most free functions in `getopts` were converted to methods.
458
459    * Other
460       * rustc's debug info generation (`-Z debug-info`) is greatly improved.
461       * rustc accepts `--target-cpu` to compile to a specific CPU architecture,
462         similarly to gcc's `--march` flag.
463       * rustc's performance compiling small crates is much better.
464       * rustpkg has received many improvements.
465       * rustpkg supports git tags as package IDs.
466       * rustpkg builds into target-specific directories so it can be used for
467         cross-compiling.
468       * The number of concurrent test tasks is controlled by the environment
469         variable RUST_TEST_TASKS.
470       * The test harness can now report metrics for benchmarks.
471       * All tools have man pages.
472       * Programs compiled with `--test` now support the `-h` and `--help` flags.
473       * The runtime uses jemalloc for allocations.
474       * Segmented stacks are temporarily disabled as part of the transition to
475         the new runtime. Stack overflows are possible!
476       * A new documentation backend, rustdoc_ng, is available for use. It is
477         still invoked through the normal `rustdoc` command.
478
479 Version 0.7 (July 2013)
480 -----------------------
481
482    * ~2000 changes, numerous bugfixes
483
484    * Language
485       * `impl`s no longer accept a visibility qualifier. Put them on methods
486         instead.
487       * The borrow checker has been rewritten with flow-sensitivity, fixing
488         many bugs and inconveniences.
489       * The `self` parameter no longer implicitly means `&'self self`,
490         and can be explicitly marked with a lifetime.
491       * Overloadable compound operators (`+=`, etc.) have been temporarily
492         removed due to bugs.
493       * The `for` loop protocol now requires `for`-iterators to return `bool`
494         so they compose better.
495       * The `Durable` trait is replaced with the `'static` bounds.
496       * Trait default methods work more often.
497       * Structs with the `#[packed]` attribute have byte alignment and
498         no padding between fields.
499       * Type parameters bound by `Copy` must now be copied explicitly with
500         the `copy` keyword.
501       * It is now illegal to move out of a dereferenced unsafe pointer.
502       * `Option<~T>` is now represented as a nullable pointer.
503       * `@mut` does dynamic borrow checks correctly.
504       * The `main` function is only detected at the topmost level of the crate.
505         The `#[main]` attribute is still valid anywhere.
506       * Struct fields may no longer be mutable. Use inherited mutability.
507       * The `#[no_send]` attribute makes a type that would otherwise be
508         `Send`, not.
509       * The `#[no_freeze]` attribute makes a type that would otherwise be
510         `Freeze`, not.
511       * Unbounded recursion will abort the process after reaching the limit
512         specified by the `RUST_MAX_STACK` environment variable (default: 1GB).
513       * The `vecs_implicitly_copyable` lint mode has been removed. Vectors
514         are never implicitly copyable.
515       * `#[static_assert]` makes compile-time assertions about static bools.
516       * At long last, 'argument modes' no longer exist.
517       * The rarely used `use mod` statement no longer exists.
518
519    * Syntax extensions
520       * `fail!` and `assert!` accept `~str`, `&'static str` or `fmt!`-style
521         argument list.
522       * `Encodable`, `Decodable`, `Ord`, `TotalOrd`, `TotalEq`, `DeepClone`,
523         `Rand`, `Zero` and `ToStr` can all be automatically derived with
524         `#[deriving(...)]`.
525       * The `bytes!` macro returns a vector of bytes for string, u8, char,
526         and unsuffixed integer literals.
527
528    * Libraries
529       * The `core` crate was renamed to `std`.
530       * The `std` crate was renamed to `extra`.
531       * More and improved documentation.
532       * std: `iterator` module for external iterator objects.
533       * Many old-style (internal, higher-order function) iterators replaced by
534         implementations of `Iterator`.
535       * std: Many old internal vector and string iterators,
536         incl. `any`, `all`. removed.
537       * std: The `finalize` method of `Drop` renamed to `drop`.
538       * std: The `drop` method now takes `&mut self` instead of `&self`.
539       * std: The prelude no longer reexports any modules, only types and traits.
540       * std: Prelude additions: `print`, `println`, `FromStr`, `ApproxEq`, `Equiv`,
541         `Iterator`, `IteratorUtil`, many numeric traits, many tuple traits.
542       * std: New numeric traits: `Fractional`, `Real`, `RealExt`, `Integer`, `Ratio`,
543         `Algebraic`, `Trigonometric`, `Exponential`, `Primitive`.
544       * std: Tuple traits and accessors defined for up to 12-tuples, e.g.
545         `(0, 1, 2).n2()` or `(0, 1, 2).n2_ref()`.
546       * std: Many types implement `Clone`.
547       * std: `path` type renamed to `Path`.
548       * std: `mut` module and `Mut` type removed.
549       * std: Many standalone functions removed in favor of methods and iterators
550         in `vec`, `str`. In the future methods will also work as functions.
551       * std: `reinterpret_cast` removed. Use `transmute`.
552       * std: ascii string handling in `std::ascii`.
553       * std: `Rand` is implemented for ~/@.
554       * std: `run` module for spawning processes overhauled.
555       * std: Various atomic types added to `unstable::atomic`.
556       * std: Various types implement `Zero`.
557       * std: `LinearMap` and `LinearSet` renamed to `HashMap` and `HashSet`.
558       * std: Borrowed pointer functions moved from `ptr` to `borrow`.
559       * std: Added `os::mkdir_recursive`.
560       * std: Added `os::glob` function performs filesystems globs.
561       * std: `FuzzyEq` renamed to `ApproxEq`.
562       * std: `Map` now defines `pop` and `swap` methods.
563       * std: `Cell` constructors converted to static methods.
564       * extra: `rc` module adds the reference counted pointers, `Rc` and `RcMut`.
565       * extra: `flate` module moved from `std` to `extra`.
566       * extra: `fileinput` module for iterating over a series of files.
567       * extra: `Complex` number type and `complex` module.
568       * extra: `Rational` number type and `rational` module.
569       * extra: `BigInt`, `BigUint` implement numeric and comparison traits.
570       * extra: `term` uses terminfo now, is more correct.
571       * extra: `arc` functions converted to methods.
572       * extra: Implementation of fixed output size variations of SHA-2.
573
574    * Tooling
575       * `unused_variable`  lint mode for unused variables (default: warn).
576       * `unused_unsafe` lint mode for detecting unnecessary `unsafe` blocks
577         (default: warn).
578       * `unused_mut` lint mode for identifying unused `mut` qualifiers
579         (default: warn).
580       * `dead_assignment` lint mode for unread variables (default: warn).
581       * `unnecessary_allocation` lint mode detects some heap allocations that are
582         immediately borrowed so could be written without allocating (default: warn).
583       * `missing_doc` lint mode (default: allow).
584       * `unreachable_code` lint mode (default: warn).
585       * The `rusti` command has been rewritten and a number of bugs addressed.
586       * rustc outputs in color on more terminals.
587       * rustc accepts a `--link-args` flag to pass arguments to the linker.
588       * rustc accepts a `-Z print-link-args` flag for debugging linkage.
589       * Compiling with `-g` will make the binary record information about
590         dynamic borrowcheck failures for debugging.
591       * rustdoc has a nicer stylesheet.
592       * Various improvements to rustdoc.
593       * Improvements to rustpkg (see the detailed release notes).
594
595 Version 0.6 (April 2013)
596 ------------------------
597
598    * ~2100 changes, numerous bugfixes
599
600    * Syntax changes
601       * The self type parameter in traits is now spelled `Self`
602       * The `self` parameter in trait and impl methods must now be explicitly
603         named (for example: `fn f(&self) { }`). Implicit self is deprecated.
604       * Static methods no longer require the `static` keyword and instead
605         are distinguished by the lack of a `self` parameter
606       * Replaced the `Durable` trait with the `'static` lifetime
607       * The old closure type syntax with the trailing sigil has been
608         removed in favor of the more consistent leading sigil
609       * `super` is a keyword, and may be prefixed to paths
610       * Trait bounds are separated with `+` instead of whitespace
611       * Traits are implemented with `impl Trait for Type`
612         instead of `impl Type: Trait`
613       * Lifetime syntax is now `&'l foo` instead of `&l/foo`
614       * The `export` keyword has finally been removed
615       * The `move` keyword has been removed (see "Semantic changes")
616       * The interior mutability qualifier on vectors, `[mut T]`, has been
617         removed. Use `&mut [T]`, etc.
618       * `mut` is no longer valid in `~mut T`. Use inherited mutability
619       * `fail` is no longer a keyword. Use `fail!()`
620       * `assert` is no longer a keyword. Use `assert!()`
621       * `log` is no longer a keyword. use `debug!`, etc.
622       * 1-tuples may be represented as `(T,)`
623       * Struct fields may no longer be `mut`. Use inherited mutability,
624         `@mut T`, `core::mut` or `core::cell`
625       * `extern mod { ... }` is no longer valid syntax for foreign
626         function modules. Use extern blocks: `extern { ... }`
627       * Newtype enums removed. Use tuple-structs.
628       * Trait implementations no longer support visibility modifiers
629       * Pattern matching over vectors improved and expanded
630       * `const` renamed to `static` to correspond to lifetime name,
631         and make room for future `static mut` unsafe mutable globals.
632       * Replaced `#[deriving_eq]` with `#[deriving(Eq)]`, etc.
633       * `Clone` implementations can be automatically generated with
634         `#[deriving(Clone)]`
635       * Casts to traits must use a pointer sigil, e.g. `@foo as @Bar`
636         instead of `foo as Bar`.
637       * Fixed length vector types are now written as `[int, .. 3]`
638         instead of `[int * 3]`.
639       * Fixed length vector types can express the length as a constant
640         expression. (ex: `[int, .. GL_BUFFER_SIZE - 2]`)
641
642    * Semantic changes
643       * Types with owned pointers or custom destructors move by default,
644         eliminating the `move` keyword
645       * All foreign functions are considered unsafe
646       * &mut is now unaliasable
647       * Writes to borrowed @mut pointers are prevented dynamically
648       * () has size 0
649       * The name of the main function can be customized using #[main]
650       * The default type of an inferred closure is &fn instead of @fn
651       * `use` statements may no longer be "chained" - they cannot import
652         identifiers imported by previous `use` statements
653       * `use` statements are crate relative, importing from the "top"
654         of the crate by default. Paths may be prefixed with `super::`
655         or `self::` to change the search behavior.
656       * Method visibility is inherited from the implementation declaration
657       * Structural records have been removed
658       * Many more types can be used in static items, including enums
659         'static-lifetime pointers and vectors
660       * Pattern matching over vectors improved and expanded
661       * Typechecking of closure types has been overhauled to
662         improve inference and eliminate unsoundness
663       * Macros leave scope at the end of modules, unless that module is
664         tagged with #[macro_escape]
665
666    * Libraries
667       * Added big integers to `std::bigint`
668       * Removed `core::oldcomm` module
669       * Added pipe-based `core::comm` module
670       * Numeric traits have been reorganized under `core::num`
671       * `vec::slice` finally returns a slice
672       * `debug!` and friends don't require a format string, e.g. `debug!(Foo)`
673       * Containers reorganized around traits in `core::container`
674       * `core::dvec` removed, `~[T]` is a drop-in replacement
675       * `core::send_map` renamed to `core::hashmap`
676       * `std::map` removed; replaced with `core::hashmap`
677       * `std::treemap` reimplemented as an owned balanced tree
678       * `std::deque` and `std::smallintmap` reimplemented as owned containers
679       * `core::trie` added as a fast ordered map for integer keys
680       * Set types added to `core::hashmap`, `core::trie` and `std::treemap`
681       * `Ord` split into `Ord` and `TotalOrd`. `Ord` is still used to
682         overload the comparison operators, whereas `TotalOrd` is used
683         by certain container types
684
685    * Other
686       * Replaced the 'cargo' package manager with 'rustpkg'
687       * Added all-purpose 'rust' tool
688       * `rustc --test` now supports benchmarks with the `#[bench]` attribute
689       * rustc now *attempts* to offer spelling suggestions
690       * Improved support for ARM and Android
691       * Preliminary MIPS backend
692       * Improved foreign function ABI implementation for x86, x86_64
693       * Various memory usage improvements
694       * Rust code may be embedded in foreign code under limited circumstances
695       * Inline assembler supported by new asm!() syntax extension.
696
697 Version 0.5 (December 2012)
698 ---------------------------
699
700    * ~900 changes, numerous bugfixes
701
702    * Syntax changes
703       * Removed `<-` move operator
704       * Completed the transition from the `#fmt` extension syntax to `fmt!`
705       * Removed old fixed length vector syntax - `[T]/N`
706       * New token-based quasi-quoters, `quote_tokens!`, `quote_expr!`, etc.
707       * Macros may now expand to items and statements
708       * `a.b()` is always parsed as a method call, never as a field projection
709       * `Eq` and `IterBytes` implementations can be automatically generated
710         with `#[deriving_eq]` and `#[deriving_iter_bytes]` respectively
711       * Removed the special crate language for `.rc` files
712       * Function arguments may consist of any irrefutable pattern
713
714    * Semantic changes
715       * `&` and `~` pointers may point to objects
716       * Tuple structs - `struct Foo(Bar, Baz)`. Will replace newtype enums.
717       * Enum variants may be structs
718       * Destructors can be added to all nominal types with the Drop trait
719       * Structs and nullary enum variants may be constants
720       * Values that cannot be implicitly copied are now automatically moved
721         without writing `move` explicitly
722       * `&T` may now be coerced to `*T`
723       * Coercions happen in `let` statements as well as function calls
724       * `use` statements now take crate-relative paths
725       * The module and type namespaces have been merged so that static
726         method names can be resolved under the trait in which they are
727         declared
728
729    * Improved support for language features
730       * Trait inheritance works in many scenarios
731       * More support for explicit self arguments in methods - `self`, `&self`
732         `@self`, and `~self` all generally work as expected
733       * Static methods work in more situations
734       * Experimental: Traits may declare default methods for the implementations
735         to use
736
737    * Libraries
738       * New condition handling system in `core::condition`
739       * Timsort added to `std::sort`
740       * New priority queue, `std::priority_queue`
741       * Pipes for serializable types, `std::flatpipes'
742       * Serialization overhauled to be trait-based
743       * Expanded `getopts` definitions
744       * Moved futures to `std`
745       * More functions are pure now
746       * `core::comm` renamed to `oldcomm`. Still deprecated
747       * `rustdoc` and `cargo` are libraries now
748
749    * Misc
750       * Added a preliminary REPL, `rusti`
751       * License changed from MIT to dual MIT/APL2
752
753 Version 0.4 (October 2012)
754 --------------------------
755
756    * ~2000 changes, numerous bugfixes
757
758    * Syntax
759       * All keywords are now strict and may not be used as identifiers anywhere
760       * Keyword removal: 'again', 'import', 'check', 'new', 'owned', 'send',
761         'of', 'with', 'to', 'class'.
762       * Classes are replaced with simpler structs
763       * Explicit method self types
764       * `ret` became `return` and `alt` became `match`
765       * `import` is now `use`; `use is now `extern mod`
766       * `extern mod { ... }` is now `extern { ... }`
767       * `use mod` is the recommended way to import modules
768       * `pub` and `priv` replace deprecated export lists
769       * The syntax of `match` pattern arms now uses fat arrow (=>)
770       * `main` no longer accepts an args vector; use `os::args` instead
771
772    * Semantics
773       * Trait implementations are now coherent, ala Haskell typeclasses
774       * Trait methods may be static
775       * Argument modes are deprecated
776       * Borrowed pointers are much more mature and recommended for use
777       * Strings and vectors in the static region are stored in constant memory
778       * Typestate was removed
779       * Resolution rewritten to be more reliable
780       * Support for 'dual-mode' data structures (freezing and thawing)
781
782    * Libraries
783       * Most binary operators can now be overloaded via the traits in
784         `core::ops'
785       * `std::net::url` for representing URLs
786       * Sendable hash maps in `core::send_map`
787       * `core::task' gained a (currently unsafe) task-local storage API
788
789    * Concurrency
790       * An efficient new intertask communication primitive called the pipe,
791         along with a number of higher-level channel types, in `core::pipes`
792       * `std::arc`, an atomically reference counted, immutable, shared memory
793         type
794       * `std::sync`, various exotic synchronization tools based on arcs and pipes
795       * Futures are now based on pipes and sendable
796       * More robust linked task failure
797       * Improved task builder API
798
799    * Other
800       * Improved error reporting
801       * Preliminary JIT support
802       * Preliminary work on precise GC
803       * Extensive architectural improvements to rustc
804       * Begun a transition away from buggy C++-based reflection (shape) code to
805         Rust-based (visitor) code
806       * All hash functions and tables converted to secure, randomized SipHash
807
808 Version 0.3  (July 2012)
809 ------------------------
810
811    * ~1900 changes, numerous bugfixes
812
813    * New coding conveniences
814       * Integer-literal suffix inference
815       * Per-item control over warnings, errors
816       * #[cfg(windows)] and #[cfg(unix)] attributes
817       * Documentation comments
818       * More compact closure syntax
819       * 'do' expressions for treating higher-order functions as
820         control structures
821       * *-patterns (wildcard extended to all constructor fields)
822
823    * Semantic cleanup
824       * Name resolution pass and exhaustiveness checker rewritten
825       * Region pointers and borrow checking supersede alias
826         analysis
827       * Init-ness checking is now provided by a region-based liveness
828         pass instead of the typestate pass; same for last-use analysis
829       * Extensive work on region pointers
830
831    * Experimental new language features
832       * Slices and fixed-size, interior-allocated vectors
833       * #!-comments for lang versioning, shell execution
834       * Destructors and iface implementation for classes;
835         type-parameterized classes and class methods
836       * 'const' type kind for types that can be used to implement
837         shared-memory concurrency patterns
838
839    * Type reflection
840
841    * Removal of various obsolete features
842       * Keywords: 'be', 'prove', 'syntax', 'note', 'mutable', 'bind',
843                  'crust', 'native' (now 'extern'), 'cont' (now 'again')
844
845       * Constructs: do-while loops ('do' repurposed), fn binding,
846                     resources (replaced by destructors)
847
848    * Compiler reorganization
849       * Syntax-layer of compiler split into separate crate
850       * Clang (from LLVM project) integrated into build
851       * Typechecker split into sub-modules
852
853    * New library code
854       * New time functions
855       * Extension methods for many built-in types
856       * Arc: atomic-refcount read-only / exclusive-use shared cells
857       * Par: parallel map and search routines
858       * Extensive work on libuv interface
859       * Much vector code moved to libraries
860       * Syntax extensions: #line, #col, #file, #mod, #stringify,
861         #include, #include_str, #include_bin
862
863    * Tool improvements
864       * Cargo automatically resolves dependencies
865
866 Version 0.2  (March 2012)
867 -------------------------
868
869    * >1500 changes, numerous bugfixes
870
871    * New docs and doc tooling
872
873    * New port: FreeBSD x86_64
874
875    * Compilation model enhancements
876       * Generics now specialized, multiply instantiated
877       * Functions now inlined across separate crates
878
879    * Scheduling, stack and threading fixes
880       * Noticeably improved message-passing performance
881       * Explicit schedulers
882       * Callbacks from C
883       * Helgrind clean
884
885    * Experimental new language features
886       * Operator overloading
887       * Region pointers
888       * Classes
889
890    * Various language extensions
891       * C-callback function types: 'crust fn ...'
892       * Infinite-loop construct: 'loop { ... }'
893       * Shorten 'mutable' to 'mut'
894       * Required mutable-local qualifier: 'let mut ...'
895       * Basic glob-exporting: 'export foo::*;'
896       * Alt now exhaustive, 'alt check' for runtime-checked
897       * Block-function form of 'for' loop, with 'break' and 'ret'.
898
899    * New library code
900       * AST quasi-quote syntax extension
901       * Revived libuv interface
902       * New modules: core::{future, iter}, std::arena
903       * Merged per-platform std::{os*, fs*} to core::{libc, os}
904       * Extensive cleanup, regularization in libstd, libcore
905
906 Version 0.1  (January 20, 2012)
907 -------------------------------
908
909    * Most language features work, including:
910       * Unique pointers, unique closures, move semantics
911       * Interface-constrained generics
912       * Static interface dispatch
913       * Stack growth
914       * Multithread task scheduling
915       * Typestate predicates
916       * Failure unwinding, destructors
917       * Pattern matching and destructuring assignment
918       * Lightweight block-lambda syntax
919       * Preliminary macro-by-example
920
921    * Compiler works with the following configurations:
922       * Linux: x86 and x86_64 hosts and targets
923       * MacOS: x86 and x86_64 hosts and targets
924       * Windows: x86 hosts and targets
925
926    * Cross compilation / multi-target configuration supported.
927
928    * Preliminary API-documentation and package-management tools included.
929
930 Known issues:
931
932    * Documentation is incomplete.
933
934    * Performance is below intended target.
935
936    * Standard library APIs are subject to extensive change, reorganization.
937
938    * Language-level versioning is not yet operational - future code will
939      break unexpectedly.