From 02d0a8bbcf0a64339e4279c4ddb4841189ba5069 Mon Sep 17 00:00:00 2001 From: Manish Goregaokar Date: Mon, 12 Jan 2015 01:35:16 +0530 Subject: docs --- src/doc/reference.md | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/doc/reference.md') diff --git a/src/doc/reference.md b/src/doc/reference.md index 2486466c869..62b922ea4be 100644 --- a/src/doc/reference.md +++ b/src/doc/reference.md @@ -2117,6 +2117,13 @@ macro scope. destructors from being run twice. Destructors might be run multiple times on the same object with this attribute. - `doc` - Doc comments such as `/// foo` are equivalent to `#[doc = "foo"]`. +- `rustc_on_unimplemented` - Write a custom note to be shown along with the error + when the trait is found to be unimplemented on a type. + You may use format arguments like `{T}`, `{A}` to correspond to the + types at the point of use corresponding to the type parameters of the + trait of the same name. `{Self}` will be replaced with the type that is supposed + to implement the trait but doesn't. To use this, the `on_unimplemented` feature gate + must be enabled. ### Conditional compilation -- cgit 1.4.1-3-g733a5