"treat all errors that occur as bugs"),
external_macro_backtrace: bool = (false, parse_bool, [UNTRACKED],
"show macro backtraces even for non-local macros"),
- explain: bool = (false, parse_bool, [TRACKED],
+ teach: bool = (false, parse_bool, [TRACKED],
"show extended diagnostic help"),
continue_parse_after_error: bool = (false, parse_bool, [TRACKED],
"attempt to recover from parse errors (experimental)"),
}
}
- pub fn explain(&self, code: &DiagnosticId) -> bool {
- self.opts.debugging_opts.explain && !self.parse_sess.span_diagnostic.code_emitted(code)
+ pub fn teach(&self, code: &DiagnosticId) -> bool {
+ self.opts.debugging_opts.teach && !self.parse_sess.span_diagnostic.code_emitted(code)
}
}