rust/src/librustc_error_codes
David Tolnay 4646a88b7a
Deprecate Error::description for real
`description` has been documented as soft-deprecated since 1.27.0 (17
months ago). There is no longer any reason to call it or implement it.

This commit:

- adds #[rustc_deprecated(since = "1.41.0")] to Error::description;

- moves description (and cause, which is also deprecated) below the
  source and backtrace methods in the Error trait;

- reduces documentation of description and cause to take up much less
  vertical real estate in rustdocs, while preserving the example that
  shows how to render errors without needing to call description;

- removes the description function of all *currently unstable* Error
  impls in the standard library;

- marks #[allow(deprecated)] the description function of all *stable*
  Error impls in the standard library;

- replaces miscellaneous uses of description in example code and the
  compiler.
2019-12-24 22:39:49 -08:00
..
error_codes Deprecate Error::description for real 2019-12-24 22:39:49 -08:00
Cargo.toml Create new librustc_error_codes lib and move error codes declaration inside it 2019-11-14 13:05:42 +01:00
error_codes.rs Add long error code explanation message for E0627 2019-12-23 21:05:02 +08:00
lib.rs move DIAGNOSTICS usage to rustc_driver 2019-11-16 02:32:33 +01:00