Also mentioned in the RFC:
4) Default arguments, see also RFC issue 323:
fn unwrap(self,
file: &'static str = file!(),
line: usize = line!(),
column: usize = column!()) -> T {
5) Support macros at method position (currently a syntax error so it is compatible), see also RFC issue 676
foo.unwrap!()
6) Make unwrap() adapt an attribute which changes the behavior of line!(), essentially the same as “1)” without exposing mir! to public
#[inline(always)] #[use_call_site_line_info]
fn unwrap(self) -> T {
7) Just introduce loc!() which expands to concat!(file!(), ":", line!(), ":", column!()) and tell people to use .expect(loc!())
8) Just promote error-chain instead.
“1)”, “2)”, “4)”, “6)” are compatible with the existing source code, while “0)”, “5)”, “7)”, “8)” requires user to modify their code to benefit from it.