note -> help
This commit is contained in:
parent
b4993ec863
commit
6e259dc778
|
@ -995,7 +995,7 @@ impl<'a, 'gcx, 'tcx> InferCtxt<'a, 'gcx, 'tcx> {
|
|||
fn suggest_new_overflow_limit(&self, err: &mut DiagnosticBuilder) {
|
||||
let current_limit = self.tcx.sess.recursion_limit.get();
|
||||
let suggested_limit = current_limit * 2;
|
||||
err.note(&format!(
|
||||
err.help(&format!(
|
||||
"consider adding a `#![recursion_limit=\"{}\"]` attribute to your crate",
|
||||
suggested_limit));
|
||||
}
|
||||
|
|
|
@ -678,7 +678,7 @@ impl<'a> ExtCtxt<'a> {
|
|||
let mut err = self.struct_span_fatal(ei.call_site,
|
||||
&format!("recursion limit reached while expanding the macro `{}`",
|
||||
ei.callee.name()));
|
||||
err.note(&format!(
|
||||
err.help(&format!(
|
||||
"consider adding a `#![recursion_limit=\"{}\"]` attribute to your crate",
|
||||
suggested_limit));
|
||||
err.emit();
|
||||
|
|
|
@ -4,7 +4,7 @@ error[E0275]: overflow evaluating the requirement `K: std::marker::Send`
|
|||
44 | is_send::<A>();
|
||||
| ^^^^^^^^^^^^
|
||||
|
|
||||
= note: consider adding a `#![recursion_limit="20"]` attribute to your crate
|
||||
= help: consider adding a `#![recursion_limit="20"]` attribute to your crate
|
||||
= note: required because it appears within the type `J`
|
||||
= note: required because it appears within the type `I`
|
||||
= note: required because it appears within the type `H`
|
||||
|
|
|
@ -7,5 +7,5 @@ error: recursion limit reached while expanding the macro `recurse`
|
|||
24 | recurse!(0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9);
|
||||
| -------------------------------------------------- in this macro invocation
|
||||
|
|
||||
= note: consider adding a `#![recursion_limit="20"]` attribute to your crate
|
||||
= help: consider adding a `#![recursion_limit="20"]` attribute to your crate
|
||||
|
||||
|
|
Loading…
Reference in New Issue