X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Flibrustc_mir%2Fborrow_check%2Fmod.rs;h=cf02878ec82ed28db372f7877d2b2c1626c9781c;hb=33fb1c501c95b9089b67c079aa79b50f1adedfe5;hp=fc1f5eb5d5a7a45a85db4fbf4d5a55a3a3216ae8;hpb=50a0defd5a93523067ef239936cc2e0755220904;p=rust.git diff --git a/src/librustc_mir/borrow_check/mod.rs b/src/librustc_mir/borrow_check/mod.rs index fc1f5eb5d5a..cf02878ec82 100644 --- a/src/librustc_mir/borrow_check/mod.rs +++ b/src/librustc_mir/borrow_check/mod.rs @@ -439,10 +439,11 @@ fn downgrade_if_error(diag: &mut Diagnostic) { diag.warn( "this error has been downgraded to a warning for backwards \ compatibility with previous releases", - ); - diag.warn( + ).warn( "this represents potential undefined behavior in your code and \ this warning will become a hard error in the future", + ).note( + "for more information, try `rustc --explain E0729`" ); } }