address review comments
This commit is contained in:
parent
30a661409c
commit
b34a7ffb25
34 changed files with 109 additions and 82 deletions
|
@ -1036,8 +1036,8 @@ options! {DebuggingOptions, DebuggingSetter, basic_debugging_options,
|
||||||
"run all passes except translation; no output"),
|
"run all passes except translation; no output"),
|
||||||
treat_err_as_bug: bool = (false, parse_bool, [TRACKED],
|
treat_err_as_bug: bool = (false, parse_bool, [TRACKED],
|
||||||
"treat all errors that occur as bugs"),
|
"treat all errors that occur as bugs"),
|
||||||
macro_backtrace: bool = (false, parse_bool, [UNTRACKED],
|
external_macro_backtrace: bool = (false, parse_bool, [UNTRACKED],
|
||||||
"show macro backtraces even for foreign macros"),
|
"show macro backtraces even for non-local macros"),
|
||||||
continue_parse_after_error: bool = (false, parse_bool, [TRACKED],
|
continue_parse_after_error: bool = (false, parse_bool, [TRACKED],
|
||||||
"attempt to recover from parse errors (experimental)"),
|
"attempt to recover from parse errors (experimental)"),
|
||||||
incremental: Option<String> = (None, parse_opt_string, [UNTRACKED],
|
incremental: Option<String> = (None, parse_opt_string, [UNTRACKED],
|
||||||
|
@ -2102,7 +2102,7 @@ mod tests {
|
||||||
let registry = errors::registry::Registry::new(&[]);
|
let registry = errors::registry::Registry::new(&[]);
|
||||||
let (sessopts, _) = build_session_options_and_crate_config(&matches);
|
let (sessopts, _) = build_session_options_and_crate_config(&matches);
|
||||||
let sess = build_session(sessopts, None, registry);
|
let sess = build_session(sessopts, None, registry);
|
||||||
assert!(!sess.diagnostic().can_emit_warnings);
|
assert!(!sess.diagnostic().flags.can_emit_warnings);
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
|
@ -2113,7 +2113,7 @@ mod tests {
|
||||||
let registry = errors::registry::Registry::new(&[]);
|
let registry = errors::registry::Registry::new(&[]);
|
||||||
let (sessopts, _) = build_session_options_and_crate_config(&matches);
|
let (sessopts, _) = build_session_options_and_crate_config(&matches);
|
||||||
let sess = build_session(sessopts, None, registry);
|
let sess = build_session(sessopts, None, registry);
|
||||||
assert!(sess.diagnostic().can_emit_warnings);
|
assert!(sess.diagnostic().flags.can_emit_warnings);
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
|
@ -2123,7 +2123,7 @@ mod tests {
|
||||||
let registry = errors::registry::Registry::new(&[]);
|
let registry = errors::registry::Registry::new(&[]);
|
||||||
let (sessopts, _) = build_session_options_and_crate_config(&matches);
|
let (sessopts, _) = build_session_options_and_crate_config(&matches);
|
||||||
let sess = build_session(sessopts, None, registry);
|
let sess = build_session(sessopts, None, registry);
|
||||||
assert!(sess.diagnostic().can_emit_warnings);
|
assert!(sess.diagnostic().flags.can_emit_warnings);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -727,11 +727,11 @@ pub fn build_session_with_codemap(sopts: config::Options,
|
||||||
.unwrap_or(false);
|
.unwrap_or(false);
|
||||||
let cap_lints_allow = sopts.lint_cap.map_or(false, |cap| cap == lint::Allow);
|
let cap_lints_allow = sopts.lint_cap.map_or(false, |cap| cap == lint::Allow);
|
||||||
|
|
||||||
let can_print_warnings = !(warnings_allow || cap_lints_allow);
|
let can_emit_warnings = !(warnings_allow || cap_lints_allow);
|
||||||
|
|
||||||
let treat_err_as_bug = sopts.debugging_opts.treat_err_as_bug;
|
let treat_err_as_bug = sopts.debugging_opts.treat_err_as_bug;
|
||||||
|
|
||||||
let macro_backtrace = sopts.debugging_opts.macro_backtrace;
|
let external_macro_backtrace = sopts.debugging_opts.external_macro_backtrace;
|
||||||
|
|
||||||
let emitter: Box<Emitter> = match (sopts.error_format, emitter_dest) {
|
let emitter: Box<Emitter> = match (sopts.error_format, emitter_dest) {
|
||||||
(config::ErrorOutputType::HumanReadable(color_config), None) => {
|
(config::ErrorOutputType::HumanReadable(color_config), None) => {
|
||||||
|
@ -755,10 +755,14 @@ pub fn build_session_with_codemap(sopts: config::Options,
|
||||||
};
|
};
|
||||||
|
|
||||||
let diagnostic_handler =
|
let diagnostic_handler =
|
||||||
errors::Handler::with_emitter(can_print_warnings,
|
errors::Handler::with_emitter_and_flags(
|
||||||
|
emitter,
|
||||||
|
errors::HandlerFlags {
|
||||||
|
can_emit_warnings,
|
||||||
treat_err_as_bug,
|
treat_err_as_bug,
|
||||||
macro_backtrace,
|
external_macro_backtrace,
|
||||||
emitter);
|
.. Default::default()
|
||||||
|
});
|
||||||
|
|
||||||
build_session_(sopts,
|
build_session_(sopts,
|
||||||
local_crate_source_file,
|
local_crate_source_file,
|
||||||
|
@ -928,7 +932,7 @@ pub fn early_error(output: config::ErrorOutputType, msg: &str) -> ! {
|
||||||
Box::new(EmitterWriter::stderr(color_config, None, true))
|
Box::new(EmitterWriter::stderr(color_config, None, true))
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
let handler = errors::Handler::with_emitter(true, false, false, emitter);
|
let handler = errors::Handler::with_emitter(true, false, emitter);
|
||||||
handler.emit(&MultiSpan::new(), msg, errors::Level::Fatal);
|
handler.emit(&MultiSpan::new(), msg, errors::Level::Fatal);
|
||||||
panic!(errors::FatalError);
|
panic!(errors::FatalError);
|
||||||
}
|
}
|
||||||
|
@ -943,7 +947,7 @@ pub fn early_warn(output: config::ErrorOutputType, msg: &str) {
|
||||||
Box::new(EmitterWriter::stderr(color_config, None, true))
|
Box::new(EmitterWriter::stderr(color_config, None, true))
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
let handler = errors::Handler::with_emitter(true, false, false, emitter);
|
let handler = errors::Handler::with_emitter(true, false, emitter);
|
||||||
handler.emit(&MultiSpan::new(), msg, errors::Level::Warning);
|
handler.emit(&MultiSpan::new(), msg, errors::Level::Warning);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -141,8 +141,7 @@ pub fn run<F>(run_compiler: F) -> isize
|
||||||
errors::emitter::EmitterWriter::stderr(errors::ColorConfig::Auto,
|
errors::emitter::EmitterWriter::stderr(errors::ColorConfig::Auto,
|
||||||
None,
|
None,
|
||||||
true);
|
true);
|
||||||
let handler = errors::Handler::with_emitter(true, false, false,
|
let handler = errors::Handler::with_emitter(true, false, Box::new(emitter));
|
||||||
Box::new(emitter));
|
|
||||||
handler.emit(&MultiSpan::new(),
|
handler.emit(&MultiSpan::new(),
|
||||||
"aborting due to previous error(s)",
|
"aborting due to previous error(s)",
|
||||||
errors::Level::Fatal);
|
errors::Level::Fatal);
|
||||||
|
@ -1222,7 +1221,7 @@ pub fn monitor<F: FnOnce() + Send + 'static>(f: F) {
|
||||||
Box::new(errors::emitter::EmitterWriter::stderr(errors::ColorConfig::Auto,
|
Box::new(errors::emitter::EmitterWriter::stderr(errors::ColorConfig::Auto,
|
||||||
None,
|
None,
|
||||||
false));
|
false));
|
||||||
let handler = errors::Handler::with_emitter(true, false, false, emitter);
|
let handler = errors::Handler::with_emitter(true, false, emitter);
|
||||||
|
|
||||||
// a .span_bug or .bug call has already printed what
|
// a .span_bug or .bug call has already printed what
|
||||||
// it wants to print.
|
// it wants to print.
|
||||||
|
|
|
@ -104,7 +104,7 @@ fn test_env<F>(source_string: &str,
|
||||||
let mut options = config::basic_options();
|
let mut options = config::basic_options();
|
||||||
options.debugging_opts.verbose = true;
|
options.debugging_opts.verbose = true;
|
||||||
options.unstable_features = UnstableFeatures::Allow;
|
options.unstable_features = UnstableFeatures::Allow;
|
||||||
let diagnostic_handler = errors::Handler::with_emitter(true, false, false, emitter);
|
let diagnostic_handler = errors::Handler::with_emitter(true, false, emitter);
|
||||||
|
|
||||||
let cstore = Rc::new(CStore::new(::DefaultTransCrate::metadata_loader()));
|
let cstore = Rc::new(CStore::new(::DefaultTransCrate::metadata_loader()));
|
||||||
let sess = session::build_session_(options,
|
let sess = session::build_session_(options,
|
||||||
|
|
|
@ -64,11 +64,11 @@ impl Emitter for EmitterWriter {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if !db.handler.macro_backtrace {
|
if !db.handler.flags.external_macro_backtrace {
|
||||||
self.fix_multispans_in_std_macros(&mut primary_span, &mut children);
|
self.fix_multispans_in_std_macros(&mut primary_span, &mut children);
|
||||||
}
|
}
|
||||||
self.emit_messages_default(&db.level,
|
self.emit_messages_default(&db.level,
|
||||||
db.handler.macro_backtrace,
|
db.handler.flags.external_macro_backtrace,
|
||||||
&db.styled_message(),
|
&db.styled_message(),
|
||||||
&db.code,
|
&db.code,
|
||||||
&primary_span,
|
&primary_span,
|
||||||
|
@ -798,7 +798,7 @@ impl EmitterWriter {
|
||||||
level: Level::Note,
|
level: Level::Note,
|
||||||
message: vec![
|
message: vec![
|
||||||
(["this error originates in a macro outside of the current crate",
|
(["this error originates in a macro outside of the current crate",
|
||||||
"(run with -Z macro-backtrace for more info)"].join(" "),
|
"(run with -Z external-macro-backtrace for more info)"].join(" "),
|
||||||
Style::NoStyle),
|
Style::NoStyle),
|
||||||
],
|
],
|
||||||
span: MultiSpan::new(),
|
span: MultiSpan::new(),
|
||||||
|
@ -888,7 +888,7 @@ impl EmitterWriter {
|
||||||
msg: &Vec<(String, Style)>,
|
msg: &Vec<(String, Style)>,
|
||||||
code: &Option<DiagnosticId>,
|
code: &Option<DiagnosticId>,
|
||||||
level: &Level,
|
level: &Level,
|
||||||
macro_backtrace: bool,
|
external_macro_backtrace: bool,
|
||||||
max_line_num_len: usize,
|
max_line_num_len: usize,
|
||||||
is_secondary: bool)
|
is_secondary: bool)
|
||||||
-> io::Result<()> {
|
-> io::Result<()> {
|
||||||
|
@ -1086,7 +1086,7 @@ impl EmitterWriter {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if macro_backtrace {
|
if external_macro_backtrace {
|
||||||
if let Some(ref primary_span) = msp.primary_span().as_ref() {
|
if let Some(ref primary_span) = msp.primary_span().as_ref() {
|
||||||
self.render_macro_backtrace_old_school(primary_span, &mut buffer)?;
|
self.render_macro_backtrace_old_school(primary_span, &mut buffer)?;
|
||||||
}
|
}
|
||||||
|
@ -1183,7 +1183,7 @@ impl EmitterWriter {
|
||||||
}
|
}
|
||||||
fn emit_messages_default(&mut self,
|
fn emit_messages_default(&mut self,
|
||||||
level: &Level,
|
level: &Level,
|
||||||
macro_backtrace: bool,
|
external_macro_backtrace: bool,
|
||||||
message: &Vec<(String, Style)>,
|
message: &Vec<(String, Style)>,
|
||||||
code: &Option<DiagnosticId>,
|
code: &Option<DiagnosticId>,
|
||||||
span: &MultiSpan,
|
span: &MultiSpan,
|
||||||
|
@ -1196,7 +1196,7 @@ impl EmitterWriter {
|
||||||
message,
|
message,
|
||||||
code,
|
code,
|
||||||
level,
|
level,
|
||||||
macro_backtrace,
|
external_macro_backtrace,
|
||||||
max_line_num_len,
|
max_line_num_len,
|
||||||
false) {
|
false) {
|
||||||
Ok(()) => {
|
Ok(()) => {
|
||||||
|
@ -1218,7 +1218,7 @@ impl EmitterWriter {
|
||||||
&child.styled_message(),
|
&child.styled_message(),
|
||||||
&None,
|
&None,
|
||||||
&child.level,
|
&child.level,
|
||||||
macro_backtrace,
|
external_macro_backtrace,
|
||||||
max_line_num_len,
|
max_line_num_len,
|
||||||
true) {
|
true) {
|
||||||
Err(e) => panic!("failed to emit error: {}", e),
|
Err(e) => panic!("failed to emit error: {}", e),
|
||||||
|
|
|
@ -233,11 +233,10 @@ pub use diagnostic_builder::DiagnosticBuilder;
|
||||||
/// (fatal, bug, unimpl) may cause immediate exit,
|
/// (fatal, bug, unimpl) may cause immediate exit,
|
||||||
/// others log errors for later reporting.
|
/// others log errors for later reporting.
|
||||||
pub struct Handler {
|
pub struct Handler {
|
||||||
|
pub flags: HandlerFlags,
|
||||||
|
|
||||||
err_count: Cell<usize>,
|
err_count: Cell<usize>,
|
||||||
emitter: RefCell<Box<Emitter>>,
|
emitter: RefCell<Box<Emitter>>,
|
||||||
pub can_emit_warnings: bool,
|
|
||||||
treat_err_as_bug: bool,
|
|
||||||
pub macro_backtrace: bool,
|
|
||||||
continue_after_error: Cell<bool>,
|
continue_after_error: Cell<bool>,
|
||||||
delayed_span_bug: RefCell<Option<Diagnostic>>,
|
delayed_span_bug: RefCell<Option<Diagnostic>>,
|
||||||
tracked_diagnostics: RefCell<Option<Vec<Diagnostic>>>,
|
tracked_diagnostics: RefCell<Option<Vec<Diagnostic>>>,
|
||||||
|
@ -248,28 +247,55 @@ pub struct Handler {
|
||||||
emitted_diagnostics: RefCell<FxHashSet<u128>>,
|
emitted_diagnostics: RefCell<FxHashSet<u128>>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[derive(Default)]
|
||||||
|
pub struct HandlerFlags {
|
||||||
|
pub can_emit_warnings: bool,
|
||||||
|
pub treat_err_as_bug: bool,
|
||||||
|
pub external_macro_backtrace: bool,
|
||||||
|
}
|
||||||
|
|
||||||
impl Handler {
|
impl Handler {
|
||||||
pub fn with_tty_emitter(color_config: ColorConfig,
|
pub fn with_tty_emitter(color_config: ColorConfig,
|
||||||
can_emit_warnings: bool,
|
can_emit_warnings: bool,
|
||||||
treat_err_as_bug: bool,
|
treat_err_as_bug: bool,
|
||||||
macro_backtrace: bool,
|
|
||||||
cm: Option<Rc<CodeMapper>>)
|
cm: Option<Rc<CodeMapper>>)
|
||||||
-> Handler {
|
-> Handler {
|
||||||
|
Handler::with_tty_emitter_and_flags(
|
||||||
|
color_config,
|
||||||
|
cm,
|
||||||
|
HandlerFlags {
|
||||||
|
can_emit_warnings,
|
||||||
|
treat_err_as_bug,
|
||||||
|
.. Default::default()
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
pub fn with_tty_emitter_and_flags(color_config: ColorConfig,
|
||||||
|
cm: Option<Rc<CodeMapper>>,
|
||||||
|
flags: HandlerFlags)
|
||||||
|
-> Handler {
|
||||||
let emitter = Box::new(EmitterWriter::stderr(color_config, cm, false));
|
let emitter = Box::new(EmitterWriter::stderr(color_config, cm, false));
|
||||||
Handler::with_emitter(can_emit_warnings, treat_err_as_bug, macro_backtrace, emitter)
|
Handler::with_emitter_and_flags(emitter, flags)
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn with_emitter(can_emit_warnings: bool,
|
pub fn with_emitter(can_emit_warnings: bool,
|
||||||
treat_err_as_bug: bool,
|
treat_err_as_bug: bool,
|
||||||
macro_backtrace: bool,
|
|
||||||
e: Box<Emitter>)
|
e: Box<Emitter>)
|
||||||
-> Handler {
|
-> Handler {
|
||||||
Handler {
|
Handler::with_emitter_and_flags(
|
||||||
err_count: Cell::new(0),
|
e,
|
||||||
emitter: RefCell::new(e),
|
HandlerFlags {
|
||||||
can_emit_warnings,
|
can_emit_warnings,
|
||||||
treat_err_as_bug,
|
treat_err_as_bug,
|
||||||
macro_backtrace,
|
.. Default::default()
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
pub fn with_emitter_and_flags(e: Box<Emitter>, flags: HandlerFlags) -> Handler {
|
||||||
|
Handler {
|
||||||
|
flags,
|
||||||
|
err_count: Cell::new(0),
|
||||||
|
emitter: RefCell::new(e),
|
||||||
continue_after_error: Cell::new(true),
|
continue_after_error: Cell::new(true),
|
||||||
delayed_span_bug: RefCell::new(None),
|
delayed_span_bug: RefCell::new(None),
|
||||||
tracked_diagnostics: RefCell::new(None),
|
tracked_diagnostics: RefCell::new(None),
|
||||||
|
@ -297,7 +323,7 @@ impl Handler {
|
||||||
-> DiagnosticBuilder<'a> {
|
-> DiagnosticBuilder<'a> {
|
||||||
let mut result = DiagnosticBuilder::new(self, Level::Warning, msg);
|
let mut result = DiagnosticBuilder::new(self, Level::Warning, msg);
|
||||||
result.set_span(sp);
|
result.set_span(sp);
|
||||||
if !self.can_emit_warnings {
|
if !self.flags.can_emit_warnings {
|
||||||
result.cancel();
|
result.cancel();
|
||||||
}
|
}
|
||||||
result
|
result
|
||||||
|
@ -310,14 +336,14 @@ impl Handler {
|
||||||
let mut result = DiagnosticBuilder::new(self, Level::Warning, msg);
|
let mut result = DiagnosticBuilder::new(self, Level::Warning, msg);
|
||||||
result.set_span(sp);
|
result.set_span(sp);
|
||||||
result.code(code);
|
result.code(code);
|
||||||
if !self.can_emit_warnings {
|
if !self.flags.can_emit_warnings {
|
||||||
result.cancel();
|
result.cancel();
|
||||||
}
|
}
|
||||||
result
|
result
|
||||||
}
|
}
|
||||||
pub fn struct_warn<'a>(&'a self, msg: &str) -> DiagnosticBuilder<'a> {
|
pub fn struct_warn<'a>(&'a self, msg: &str) -> DiagnosticBuilder<'a> {
|
||||||
let mut result = DiagnosticBuilder::new(self, Level::Warning, msg);
|
let mut result = DiagnosticBuilder::new(self, Level::Warning, msg);
|
||||||
if !self.can_emit_warnings {
|
if !self.flags.can_emit_warnings {
|
||||||
result.cancel();
|
result.cancel();
|
||||||
}
|
}
|
||||||
result
|
result
|
||||||
|
@ -380,7 +406,7 @@ impl Handler {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn panic_if_treat_err_as_bug(&self) {
|
fn panic_if_treat_err_as_bug(&self) {
|
||||||
if self.treat_err_as_bug {
|
if self.flags.treat_err_as_bug {
|
||||||
panic!("encountered error with `-Z treat_err_as_bug");
|
panic!("encountered error with `-Z treat_err_as_bug");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -422,7 +448,7 @@ impl Handler {
|
||||||
panic!(ExplicitBug);
|
panic!(ExplicitBug);
|
||||||
}
|
}
|
||||||
pub fn delay_span_bug<S: Into<MultiSpan>>(&self, sp: S, msg: &str) {
|
pub fn delay_span_bug<S: Into<MultiSpan>>(&self, sp: S, msg: &str) {
|
||||||
if self.treat_err_as_bug {
|
if self.flags.treat_err_as_bug {
|
||||||
self.span_bug(sp, msg);
|
self.span_bug(sp, msg);
|
||||||
}
|
}
|
||||||
let mut diagnostic = Diagnostic::new(Level::Bug, msg);
|
let mut diagnostic = Diagnostic::new(Level::Bug, msg);
|
||||||
|
@ -447,7 +473,7 @@ impl Handler {
|
||||||
self.span_bug(sp, &format!("unimplemented {}", msg));
|
self.span_bug(sp, &format!("unimplemented {}", msg));
|
||||||
}
|
}
|
||||||
pub fn fatal(&self, msg: &str) -> FatalError {
|
pub fn fatal(&self, msg: &str) -> FatalError {
|
||||||
if self.treat_err_as_bug {
|
if self.flags.treat_err_as_bug {
|
||||||
self.bug(msg);
|
self.bug(msg);
|
||||||
}
|
}
|
||||||
let mut db = DiagnosticBuilder::new(self, Fatal, msg);
|
let mut db = DiagnosticBuilder::new(self, Fatal, msg);
|
||||||
|
@ -455,7 +481,7 @@ impl Handler {
|
||||||
FatalError
|
FatalError
|
||||||
}
|
}
|
||||||
pub fn err(&self, msg: &str) {
|
pub fn err(&self, msg: &str) {
|
||||||
if self.treat_err_as_bug {
|
if self.flags.treat_err_as_bug {
|
||||||
self.bug(msg);
|
self.bug(msg);
|
||||||
}
|
}
|
||||||
let mut db = DiagnosticBuilder::new(self, Error, msg);
|
let mut db = DiagnosticBuilder::new(self, Error, msg);
|
||||||
|
@ -508,7 +534,7 @@ impl Handler {
|
||||||
panic!(self.fatal(&s));
|
panic!(self.fatal(&s));
|
||||||
}
|
}
|
||||||
pub fn emit(&self, msp: &MultiSpan, msg: &str, lvl: Level) {
|
pub fn emit(&self, msp: &MultiSpan, msg: &str, lvl: Level) {
|
||||||
if lvl == Warning && !self.can_emit_warnings {
|
if lvl == Warning && !self.flags.can_emit_warnings {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
let mut db = DiagnosticBuilder::new(self, lvl, msg);
|
let mut db = DiagnosticBuilder::new(self, lvl, msg);
|
||||||
|
@ -519,7 +545,7 @@ impl Handler {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
pub fn emit_with_code(&self, msp: &MultiSpan, msg: &str, code: DiagnosticId, lvl: Level) {
|
pub fn emit_with_code(&self, msp: &MultiSpan, msg: &str, code: DiagnosticId, lvl: Level) {
|
||||||
if lvl == Warning && !self.can_emit_warnings {
|
if lvl == Warning && !self.flags.can_emit_warnings {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
let mut db = DiagnosticBuilder::new_with_code(self, lvl, Some(code), msg);
|
let mut db = DiagnosticBuilder::new_with_code(self, lvl, Some(code), msg);
|
||||||
|
|
|
@ -353,7 +353,7 @@ pub struct CodegenContext {
|
||||||
|
|
||||||
impl CodegenContext {
|
impl CodegenContext {
|
||||||
pub fn create_diag_handler(&self) -> Handler {
|
pub fn create_diag_handler(&self) -> Handler {
|
||||||
Handler::with_emitter(true, false, false, Box::new(self.diag_emitter.clone()))
|
Handler::with_emitter(true, false, Box::new(self.diag_emitter.clone()))
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn config(&self, kind: ModuleKind) -> &ModuleConfig {
|
pub fn config(&self, kind: ModuleKind) -> &ModuleConfig {
|
||||||
|
|
|
@ -141,7 +141,6 @@ pub fn run_core(search_paths: SearchPaths,
|
||||||
let diagnostic_handler = errors::Handler::with_tty_emitter(ColorConfig::Auto,
|
let diagnostic_handler = errors::Handler::with_tty_emitter(ColorConfig::Auto,
|
||||||
true,
|
true,
|
||||||
false,
|
false,
|
||||||
false,
|
|
||||||
Some(codemap.clone()));
|
Some(codemap.clone()));
|
||||||
|
|
||||||
let cstore = Rc::new(CStore::new(box rustc_trans::LlvmMetadataLoader));
|
let cstore = Rc::new(CStore::new(box rustc_trans::LlvmMetadataLoader));
|
||||||
|
|
|
@ -82,7 +82,7 @@ pub fn run(input: &str,
|
||||||
let codemap = Rc::new(CodeMap::new(sessopts.file_path_mapping()));
|
let codemap = Rc::new(CodeMap::new(sessopts.file_path_mapping()));
|
||||||
let handler =
|
let handler =
|
||||||
errors::Handler::with_tty_emitter(ColorConfig::Auto,
|
errors::Handler::with_tty_emitter(ColorConfig::Auto,
|
||||||
true, false, false,
|
true, false,
|
||||||
Some(codemap.clone()));
|
Some(codemap.clone()));
|
||||||
|
|
||||||
let cstore = Rc::new(CStore::new(box rustc_trans::LlvmMetadataLoader));
|
let cstore = Rc::new(CStore::new(box rustc_trans::LlvmMetadataLoader));
|
||||||
|
@ -246,7 +246,7 @@ fn run_test(test: &str, cratename: &str, filename: &str, cfgs: Vec<String>, libs
|
||||||
let _bomb = Bomb(data.clone(), old.unwrap_or(box io::stdout()));
|
let _bomb = Bomb(data.clone(), old.unwrap_or(box io::stdout()));
|
||||||
|
|
||||||
// Compile the code
|
// Compile the code
|
||||||
let diagnostic_handler = errors::Handler::with_emitter(true, false, false, box emitter);
|
let diagnostic_handler = errors::Handler::with_emitter(true, false, box emitter);
|
||||||
|
|
||||||
let cstore = Rc::new(CStore::new(box rustc_trans::LlvmMetadataLoader));
|
let cstore = Rc::new(CStore::new(box rustc_trans::LlvmMetadataLoader));
|
||||||
let mut sess = session::build_session_(
|
let mut sess = session::build_session_(
|
||||||
|
|
|
@ -1726,7 +1726,7 @@ mod tests {
|
||||||
Some(cm.clone()),
|
Some(cm.clone()),
|
||||||
false);
|
false);
|
||||||
ParseSess {
|
ParseSess {
|
||||||
span_diagnostic: errors::Handler::with_emitter(true, false, false, Box::new(emitter)),
|
span_diagnostic: errors::Handler::with_emitter(true, false, Box::new(emitter)),
|
||||||
unstable_features: UnstableFeatures::from_environment(),
|
unstable_features: UnstableFeatures::from_environment(),
|
||||||
config: CrateConfig::new(),
|
config: CrateConfig::new(),
|
||||||
included_mod_stack: RefCell::new(Vec::new()),
|
included_mod_stack: RefCell::new(Vec::new()),
|
||||||
|
|
|
@ -58,7 +58,6 @@ impl ParseSess {
|
||||||
let handler = Handler::with_tty_emitter(ColorConfig::Auto,
|
let handler = Handler::with_tty_emitter(ColorConfig::Auto,
|
||||||
true,
|
true,
|
||||||
false,
|
false,
|
||||||
false,
|
|
||||||
Some(cm.clone()));
|
Some(cm.clone()));
|
||||||
ParseSess::with_span_handler(handler, cm)
|
ParseSess::with_span_handler(handler, cm)
|
||||||
}
|
}
|
||||||
|
|
|
@ -58,7 +58,7 @@ impl<'a> ParserObsoleteMethods for parser::Parser<'a> {
|
||||||
};
|
};
|
||||||
|
|
||||||
if !self.obsolete_set.contains(&kind) &&
|
if !self.obsolete_set.contains(&kind) &&
|
||||||
(error || self.sess.span_diagnostic.can_emit_warnings) {
|
(error || self.sess.span_diagnostic.flags.can_emit_warnings) {
|
||||||
err.note(desc);
|
err.note(desc);
|
||||||
self.obsolete_set.insert(kind);
|
self.obsolete_set.insert(kind);
|
||||||
}
|
}
|
||||||
|
|
|
@ -62,7 +62,7 @@ fn test_harness(file_text: &str, span_labels: Vec<SpanLabel>, expected_output: &
|
||||||
let emitter = EmitterWriter::new(Box::new(Shared { data: output.clone() }),
|
let emitter = EmitterWriter::new(Box::new(Shared { data: output.clone() }),
|
||||||
Some(code_map.clone()),
|
Some(code_map.clone()),
|
||||||
false);
|
false);
|
||||||
let handler = Handler::with_emitter(true, false, false, Box::new(emitter));
|
let handler = Handler::with_emitter(true, false, Box::new(emitter));
|
||||||
handler.span_err(msp, "foo");
|
handler.span_err(msp, "foo");
|
||||||
|
|
||||||
assert!(expected_output.chars().next() == Some('\n'),
|
assert!(expected_output.chars().next() == Some('\n'),
|
||||||
|
|
|
@ -4,7 +4,7 @@ error: requires at least a format string argument
|
||||||
12 | format!();
|
12 | format!();
|
||||||
| ^^^^^^^^^^
|
| ^^^^^^^^^^
|
||||||
|
|
|
|
||||||
= note: this error originates in a macro outside of the current crate (run with -Z macro-backtrace for more info)
|
= note: this error originates in a macro outside of the current crate (run with -Z external-macro-backtrace for more info)
|
||||||
|
|
||||||
error: expected token: `,`
|
error: expected token: `,`
|
||||||
--> $DIR/bad-format-args.rs:13:5
|
--> $DIR/bad-format-args.rs:13:5
|
||||||
|
@ -12,7 +12,7 @@ error: expected token: `,`
|
||||||
13 | format!("" 1);
|
13 | format!("" 1);
|
||||||
| ^^^^^^^^^^^^^^
|
| ^^^^^^^^^^^^^^
|
||||||
|
|
|
|
||||||
= note: this error originates in a macro outside of the current crate (run with -Z macro-backtrace for more info)
|
= note: this error originates in a macro outside of the current crate (run with -Z external-macro-backtrace for more info)
|
||||||
|
|
||||||
error: expected token: `,`
|
error: expected token: `,`
|
||||||
--> $DIR/bad-format-args.rs:14:5
|
--> $DIR/bad-format-args.rs:14:5
|
||||||
|
@ -20,7 +20,7 @@ error: expected token: `,`
|
||||||
14 | format!("", 1 1);
|
14 | format!("", 1 1);
|
||||||
| ^^^^^^^^^^^^^^^^^
|
| ^^^^^^^^^^^^^^^^^
|
||||||
|
|
|
|
||||||
= note: this error originates in a macro outside of the current crate (run with -Z macro-backtrace for more info)
|
= note: this error originates in a macro outside of the current crate (run with -Z external-macro-backtrace for more info)
|
||||||
|
|
||||||
error: aborting due to 3 previous errors
|
error: aborting due to 3 previous errors
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@ error[E0600]: cannot apply unary operator `!` to type `&'static str`
|
||||||
12 | assert!("foo");
|
12 | assert!("foo");
|
||||||
| ^^^^^^^^^^^^^^^
|
| ^^^^^^^^^^^^^^^
|
||||||
|
|
|
|
||||||
= note: this error originates in a macro outside of the current crate (run with -Z macro-backtrace for more info)
|
= note: this error originates in a macro outside of the current crate (run with -Z external-macro-backtrace for more info)
|
||||||
|
|
||||||
error: aborting due to previous error
|
error: aborting due to previous error
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@ error: 1 positional argument in format string, but no arguments were given
|
||||||
16 | myprintln!("{}"); //~ ERROR in this macro
|
16 | myprintln!("{}"); //~ ERROR in this macro
|
||||||
| ^^^^^^^^^^^^^^^^^
|
| ^^^^^^^^^^^^^^^^^
|
||||||
|
|
|
|
||||||
= note: this error originates in a macro outside of the current crate (run with -Z macro-backtrace for more info)
|
= note: this error originates in a macro outside of the current crate (run with -Z external-macro-backtrace for more info)
|
||||||
|
|
||||||
error: aborting due to previous error
|
error: aborting due to previous error
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@ error: invalid format string: expected `'}'` but string was terminated
|
||||||
| ^^^^^^^^^^^^^^
|
| ^^^^^^^^^^^^^^
|
||||||
|
|
|
|
||||||
= note: if you intended to print `{`, you can escape it using `{{`
|
= note: if you intended to print `{`, you can escape it using `{{`
|
||||||
= note: this error originates in a macro outside of the current crate (run with -Z macro-backtrace for more info)
|
= note: this error originates in a macro outside of the current crate (run with -Z external-macro-backtrace for more info)
|
||||||
|
|
||||||
error: invalid format string: unmatched `}` found
|
error: invalid format string: unmatched `}` found
|
||||||
--> $DIR/format-string-error.rs:14:5
|
--> $DIR/format-string-error.rs:14:5
|
||||||
|
@ -14,7 +14,7 @@ error: invalid format string: unmatched `}` found
|
||||||
| ^^^^^^^^^^^^^^
|
| ^^^^^^^^^^^^^^
|
||||||
|
|
|
|
||||||
= note: if you intended to print `}`, you can escape it using `}}`
|
= note: if you intended to print `}`, you can escape it using `}}`
|
||||||
= note: this error originates in a macro outside of the current crate (run with -Z macro-backtrace for more info)
|
= note: this error originates in a macro outside of the current crate (run with -Z external-macro-backtrace for more info)
|
||||||
|
|
||||||
error: aborting due to 2 previous errors
|
error: aborting due to 2 previous errors
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,7 @@ error[E0597]: borrowed value does not live long enough
|
||||||
| - temporary value needs to live until here
|
| - temporary value needs to live until here
|
||||||
|
|
|
|
||||||
= note: consider using a `let` binding to increase its lifetime
|
= note: consider using a `let` binding to increase its lifetime
|
||||||
= note: this error originates in a macro outside of the current crate (run with -Z macro-backtrace for more info)
|
= note: this error originates in a macro outside of the current crate (run with -Z external-macro-backtrace for more info)
|
||||||
|
|
||||||
error: aborting due to previous error
|
error: aborting due to previous error
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
|
|
||||||
// Test that the macro backtrace facility works
|
// Test that the macro backtrace facility works
|
||||||
// aux-build:ping.rs
|
// aux-build:ping.rs
|
||||||
// compile-flags: -Z macro-backtrace
|
// compile-flags: -Z external-macro-backtrace
|
||||||
|
|
||||||
#[macro_use] extern crate ping;
|
#[macro_use] extern crate ping;
|
||||||
|
|
||||||
|
|
|
@ -11,7 +11,7 @@ error: multiple unused formatting arguments
|
||||||
= help: `%.*3$s` should be written as `{:.2$}`
|
= help: `%.*3$s` should be written as `{:.2$}`
|
||||||
= help: `%s` should be written as `{}`
|
= help: `%s` should be written as `{}`
|
||||||
= note: printf formatting not supported; see the documentation for `std::fmt`
|
= note: printf formatting not supported; see the documentation for `std::fmt`
|
||||||
= note: this error originates in a macro outside of the current crate (run with -Z macro-backtrace for more info)
|
= note: this error originates in a macro outside of the current crate (run with -Z external-macro-backtrace for more info)
|
||||||
|
|
||||||
error: argument never used
|
error: argument never used
|
||||||
--> $DIR/format-foreign.rs:13:29
|
--> $DIR/format-foreign.rs:13:29
|
||||||
|
|
|
@ -8,7 +8,7 @@ error: multiple unused formatting arguments
|
||||||
| | unused
|
| | unused
|
||||||
| unused
|
| unused
|
||||||
|
|
|
|
||||||
= note: this error originates in a macro outside of the current crate (run with -Z macro-backtrace for more info)
|
= note: this error originates in a macro outside of the current crate (run with -Z external-macro-backtrace for more info)
|
||||||
|
|
||||||
error: multiple unused formatting arguments
|
error: multiple unused formatting arguments
|
||||||
--> $DIR/format-unused-lables.rs:14:5
|
--> $DIR/format-unused-lables.rs:14:5
|
||||||
|
@ -23,7 +23,7 @@ error: multiple unused formatting arguments
|
||||||
18 | | );
|
18 | | );
|
||||||
| |______^
|
| |______^
|
||||||
|
|
|
|
||||||
= note: this error originates in a macro outside of the current crate (run with -Z macro-backtrace for more info)
|
= note: this error originates in a macro outside of the current crate (run with -Z external-macro-backtrace for more info)
|
||||||
|
|
||||||
error: named argument never used
|
error: named argument never used
|
||||||
--> $DIR/format-unused-lables.rs:20:35
|
--> $DIR/format-unused-lables.rs:20:35
|
||||||
|
@ -47,7 +47,7 @@ error: multiple unused formatting arguments
|
||||||
|
|
|
|
||||||
= help: `$STUFF` should be written as `{STUFF}`
|
= help: `$STUFF` should be written as `{STUFF}`
|
||||||
= note: shell formatting not supported; see the documentation for `std::fmt`
|
= note: shell formatting not supported; see the documentation for `std::fmt`
|
||||||
= note: this error originates in a macro outside of the current crate (run with -Z macro-backtrace for more info)
|
= note: this error originates in a macro outside of the current crate (run with -Z external-macro-backtrace for more info)
|
||||||
|
|
||||||
error: aborting due to 4 previous errors
|
error: aborting due to 4 previous errors
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,7 @@ note: lint level defined here
|
||||||
|
|
|
|
||||||
13 | #![deny(unreachable_code)]
|
13 | #![deny(unreachable_code)]
|
||||||
| ^^^^^^^^^^^^^^^^
|
| ^^^^^^^^^^^^^^^^
|
||||||
= note: this error originates in a macro outside of the current crate (run with -Z macro-backtrace for more info)
|
= note: this error originates in a macro outside of the current crate (run with -Z external-macro-backtrace for more info)
|
||||||
|
|
||||||
error: aborting due to previous error
|
error: aborting due to previous error
|
||||||
|
|
||||||
|
|
|
@ -16,7 +16,7 @@ error: unreachable statement
|
||||||
36 | println!("foo");
|
36 | println!("foo");
|
||||||
| ^^^^^^^^^^^^^^^^
|
| ^^^^^^^^^^^^^^^^
|
||||||
|
|
|
|
||||||
= note: this error originates in a macro outside of the current crate (run with -Z macro-backtrace for more info)
|
= note: this error originates in a macro outside of the current crate (run with -Z external-macro-backtrace for more info)
|
||||||
|
|
||||||
error: aborting due to 2 previous errors
|
error: aborting due to 2 previous errors
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,7 @@ note: lint level defined here
|
||||||
|
|
|
|
||||||
14 | #![deny(unreachable_code)]
|
14 | #![deny(unreachable_code)]
|
||||||
| ^^^^^^^^^^^^^^^^
|
| ^^^^^^^^^^^^^^^^
|
||||||
= note: this error originates in a macro outside of the current crate (run with -Z macro-backtrace for more info)
|
= note: this error originates in a macro outside of the current crate (run with -Z external-macro-backtrace for more info)
|
||||||
|
|
||||||
error: aborting due to previous error
|
error: aborting due to previous error
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,7 @@ note: lint level defined here
|
||||||
|
|
|
|
||||||
14 | #![deny(unreachable_code)]
|
14 | #![deny(unreachable_code)]
|
||||||
| ^^^^^^^^^^^^^^^^
|
| ^^^^^^^^^^^^^^^^
|
||||||
= note: this error originates in a macro outside of the current crate (run with -Z macro-backtrace for more info)
|
= note: this error originates in a macro outside of the current crate (run with -Z external-macro-backtrace for more info)
|
||||||
|
|
||||||
error: unreachable statement
|
error: unreachable statement
|
||||||
--> $DIR/expr_loop.rs:31:5
|
--> $DIR/expr_loop.rs:31:5
|
||||||
|
@ -17,7 +17,7 @@ error: unreachable statement
|
||||||
31 | println!("I am dead.");
|
31 | println!("I am dead.");
|
||||||
| ^^^^^^^^^^^^^^^^^^^^^^^
|
| ^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
|
|
||||||
= note: this error originates in a macro outside of the current crate (run with -Z macro-backtrace for more info)
|
= note: this error originates in a macro outside of the current crate (run with -Z external-macro-backtrace for more info)
|
||||||
|
|
||||||
error: unreachable statement
|
error: unreachable statement
|
||||||
--> $DIR/expr_loop.rs:41:5
|
--> $DIR/expr_loop.rs:41:5
|
||||||
|
@ -25,7 +25,7 @@ error: unreachable statement
|
||||||
41 | println!("I am dead.");
|
41 | println!("I am dead.");
|
||||||
| ^^^^^^^^^^^^^^^^^^^^^^^
|
| ^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
|
|
||||||
= note: this error originates in a macro outside of the current crate (run with -Z macro-backtrace for more info)
|
= note: this error originates in a macro outside of the current crate (run with -Z external-macro-backtrace for more info)
|
||||||
|
|
||||||
error: aborting due to 3 previous errors
|
error: aborting due to 3 previous errors
|
||||||
|
|
||||||
|
|
|
@ -16,7 +16,7 @@ error: unreachable statement
|
||||||
25 | println!("I am dead");
|
25 | println!("I am dead");
|
||||||
| ^^^^^^^^^^^^^^^^^^^^^^
|
| ^^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
|
|
||||||
= note: this error originates in a macro outside of the current crate (run with -Z macro-backtrace for more info)
|
= note: this error originates in a macro outside of the current crate (run with -Z external-macro-backtrace for more info)
|
||||||
|
|
||||||
error: unreachable statement
|
error: unreachable statement
|
||||||
--> $DIR/expr_match.rs:35:5
|
--> $DIR/expr_match.rs:35:5
|
||||||
|
@ -24,7 +24,7 @@ error: unreachable statement
|
||||||
35 | println!("I am dead");
|
35 | println!("I am dead");
|
||||||
| ^^^^^^^^^^^^^^^^^^^^^^
|
| ^^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
|
|
||||||
= note: this error originates in a macro outside of the current crate (run with -Z macro-backtrace for more info)
|
= note: this error originates in a macro outside of the current crate (run with -Z external-macro-backtrace for more info)
|
||||||
|
|
||||||
error: aborting due to 3 previous errors
|
error: aborting due to 3 previous errors
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,7 @@ note: lint level defined here
|
||||||
|
|
|
|
||||||
14 | #![deny(unreachable_code)]
|
14 | #![deny(unreachable_code)]
|
||||||
| ^^^^^^^^^^^^^^^^
|
| ^^^^^^^^^^^^^^^^
|
||||||
= note: this error originates in a macro outside of the current crate (run with -Z macro-backtrace for more info)
|
= note: this error originates in a macro outside of the current crate (run with -Z external-macro-backtrace for more info)
|
||||||
|
|
||||||
error: unreachable statement
|
error: unreachable statement
|
||||||
--> $DIR/expr_while.rs:33:9
|
--> $DIR/expr_while.rs:33:9
|
||||||
|
@ -17,7 +17,7 @@ error: unreachable statement
|
||||||
33 | println!("I am dead.");
|
33 | println!("I am dead.");
|
||||||
| ^^^^^^^^^^^^^^^^^^^^^^^
|
| ^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
|
|
||||||
= note: this error originates in a macro outside of the current crate (run with -Z macro-backtrace for more info)
|
= note: this error originates in a macro outside of the current crate (run with -Z external-macro-backtrace for more info)
|
||||||
|
|
||||||
error: unreachable statement
|
error: unreachable statement
|
||||||
--> $DIR/expr_while.rs:35:5
|
--> $DIR/expr_while.rs:35:5
|
||||||
|
@ -25,7 +25,7 @@ error: unreachable statement
|
||||||
35 | println!("I am, too.");
|
35 | println!("I am, too.");
|
||||||
| ^^^^^^^^^^^^^^^^^^^^^^^
|
| ^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
|
|
||||||
= note: this error originates in a macro outside of the current crate (run with -Z macro-backtrace for more info)
|
= note: this error originates in a macro outside of the current crate (run with -Z external-macro-backtrace for more info)
|
||||||
|
|
||||||
error: aborting due to 3 previous errors
|
error: aborting due to 3 previous errors
|
||||||
|
|
||||||
|
|
|
@ -56,7 +56,7 @@ error[E0308]: mismatched types
|
||||||
= note: expected type `&mut std::string::String`
|
= note: expected type `&mut std::string::String`
|
||||||
found type `std::string::String`
|
found type `std::string::String`
|
||||||
= help: try with `&mut format!("foo")`
|
= help: try with `&mut format!("foo")`
|
||||||
= note: this error originates in a macro outside of the current crate (run with -Z macro-backtrace for more info)
|
= note: this error originates in a macro outside of the current crate (run with -Z external-macro-backtrace for more info)
|
||||||
|
|
||||||
error: aborting due to 6 previous errors
|
error: aborting due to 6 previous errors
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@ error[E0308]: mismatched types
|
||||||
|
|
|
|
||||||
= note: expected type `std::fmt::Arguments<'_>`
|
= note: expected type `std::fmt::Arguments<'_>`
|
||||||
found type `std::string::String`
|
found type `std::string::String`
|
||||||
= note: this error originates in a macro outside of the current crate (run with -Z macro-backtrace for more info)
|
= note: this error originates in a macro outside of the current crate (run with -Z external-macro-backtrace for more info)
|
||||||
|
|
||||||
error: aborting due to previous error
|
error: aborting due to previous error
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,7 @@ error[E0597]: `foo` does not live long enough
|
||||||
| | borrow occurs here
|
| | borrow occurs here
|
||||||
| borrowed value needs to live until here
|
| borrowed value needs to live until here
|
||||||
|
|
|
|
||||||
= note: this error originates in a macro outside of the current crate (run with -Z macro-backtrace for more info)
|
= note: this error originates in a macro outside of the current crate (run with -Z external-macro-backtrace for more info)
|
||||||
|
|
||||||
error: aborting due to previous error
|
error: aborting due to previous error
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,7 @@ error[E0597]: borrowed value does not live long enough
|
||||||
19 | }
|
19 | }
|
||||||
| - temporary value needs to live until here
|
| - temporary value needs to live until here
|
||||||
|
|
|
|
||||||
= note: this error originates in a macro outside of the current crate (run with -Z macro-backtrace for more info)
|
= note: this error originates in a macro outside of the current crate (run with -Z external-macro-backtrace for more info)
|
||||||
|
|
||||||
error: aborting due to previous error
|
error: aborting due to previous error
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@ error[E0282]: type annotations needed
|
||||||
| |
|
| |
|
||||||
| consider giving `x` a type
|
| consider giving `x` a type
|
||||||
|
|
|
|
||||||
= note: this error originates in a macro outside of the current crate (run with -Z macro-backtrace for more info)
|
= note: this error originates in a macro outside of the current crate (run with -Z external-macro-backtrace for more info)
|
||||||
|
|
||||||
error: aborting due to previous error
|
error: aborting due to previous error
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@ error[E0282]: type annotations needed
|
||||||
| |
|
| |
|
||||||
| consider giving the pattern a type
|
| consider giving the pattern a type
|
||||||
|
|
|
|
||||||
= note: this error originates in a macro outside of the current crate (run with -Z macro-backtrace for more info)
|
= note: this error originates in a macro outside of the current crate (run with -Z external-macro-backtrace for more info)
|
||||||
|
|
||||||
error: aborting due to previous error
|
error: aborting due to previous error
|
||||||
|
|
||||||
|
|
|
@ -32,4 +32,4 @@ clippy = "Testing"
|
||||||
rls = "Testing"
|
rls = "Testing"
|
||||||
|
|
||||||
# ping @nrc
|
# ping @nrc
|
||||||
rustfmt = "Broken"
|
rustfmt = "Testing"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue