Skip to content

Commit 6e259dc

Browse files
committed
note -> help
1 parent b4993ec commit 6e259dc

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/librustc/traits/error_reporting.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -995,7 +995,7 @@ impl<'a, 'gcx, 'tcx> InferCtxt<'a, 'gcx, 'tcx> {
995995
fn suggest_new_overflow_limit(&self, err: &mut DiagnosticBuilder) {
996996
let current_limit = self.tcx.sess.recursion_limit.get();
997997
let suggested_limit = current_limit * 2;
998-
err.note(&format!(
998+
err.help(&format!(
999999
"consider adding a `#![recursion_limit=\"{}\"]` attribute to your crate",
10001000
suggested_limit));
10011001
}

src/libsyntax/ext/base.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -678,7 +678,7 @@ impl<'a> ExtCtxt<'a> {
678678
let mut err = self.struct_span_fatal(ei.call_site,
679679
&format!("recursion limit reached while expanding the macro `{}`",
680680
ei.callee.name()));
681-
err.note(&format!(
681+
err.help(&format!(
682682
"consider adding a `#![recursion_limit=\"{}\"]` attribute to your crate",
683683
suggested_limit));
684684
err.emit();

src/test/ui/did_you_mean/recursion_limit.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ error[E0275]: overflow evaluating the requirement `K: std::marker::Send`
44
44 | is_send::<A>();
55
| ^^^^^^^^^^^^
66
|
7-
= note: consider adding a `#![recursion_limit="20"]` attribute to your crate
7+
= help: consider adding a `#![recursion_limit="20"]` attribute to your crate
88
= note: required because it appears within the type `J`
99
= note: required because it appears within the type `I`
1010
= note: required because it appears within the type `H`

src/test/ui/did_you_mean/recursion_limit_macro.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ error: recursion limit reached while expanding the macro `recurse`
77
24 | recurse!(0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9);
88
| -------------------------------------------------- in this macro invocation
99
|
10-
= note: consider adding a `#![recursion_limit="20"]` attribute to your crate
10+
= help: consider adding a `#![recursion_limit="20"]` attribute to your crate
1111

0 commit comments

Comments
 (0)