]> git.lizzy.rs Git - rust.git/commitdiff
rollup merge of #22127: alexcrichton/stability-holes
authorAlex Crichton <alex@alexcrichton.com>
Wed, 11 Feb 2015 22:02:04 +0000 (14:02 -0800)
committerAlex Crichton <alex@alexcrichton.com>
Wed, 11 Feb 2015 22:02:04 +0000 (14:02 -0800)
There are a number of holes that the stability lint did not previously cover,
including:

* Types
* Bounds on type parameters on functions and impls
* Where clauses
* Imports
* Patterns (structs and enums)

These holes have all been fixed by overriding the `visit_path` function on the
AST visitor instead of a few specialized cases. This change also necessitated a
few stability changes:

* The `collections::fmt` module is now stable (it was already supposed to be).
* The `thread_local::imp::Key` type is now stable (it was already supposed to
  be).
* The `std::rt::{begin_unwind, begin_unwind_fmt}` functions are now stable.
  These are required via the `panic!` macro.
* The `std::old_io::stdio::{println, println_args}` functions are now stable.
  These are required by the `print!` and `println!` macros.
* The `ops::{FnOnce, FnMut, Fn}` traits are now `#[stable]`. This is required to
  make bounds with these traits stable. Note that manual implementations of
  these traits are still gated by default, this stability only allows bounds
  such as `F: FnOnce()`.

Closes #8962
Closes #16360
Closes #20327

1  2 
src/librustc/lint/builtin.rs
src/librustc_resolve/lib.rs
src/libstd/old_io/mod.rs
src/libstd/old_io/stdio.rs

Simple merge
Simple merge
Simple merge
Simple merge