]> git.lizzy.rs Git - rust.git/commitdiff
note -> help
authorAlex Burka <alex@alexburka.com>
Tue, 28 Feb 2017 18:18:54 +0000 (18:18 +0000)
committerAlex Burka <alex@alexburka.com>
Thu, 2 Mar 2017 07:11:22 +0000 (07:11 +0000)
src/librustc/traits/error_reporting.rs
src/libsyntax/ext/base.rs
src/test/ui/did_you_mean/recursion_limit.stderr
src/test/ui/did_you_mean/recursion_limit_macro.stderr

index 661d47199df13991861ca3023eeb302a4a9d6931..6ba593da51e8fd498a31c453c0b34e8d8e2e8dbd 100644 (file)
@@ -995,7 +995,7 @@ fn note_obligation_cause_code<T>(&self,
     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));
     }
index e7f794328b8935984d39fa5ada410ff29936299c..7085d0440d3c7a931a19422ca71fb93a7596c9ab 100644 (file)
@@ -678,7 +678,7 @@ pub fn bt_push(&mut self, ei: ExpnInfo) {
             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();
index 524aab87ccfe2a7f2bb02224de511026f66a0ff0..d157c5de6c7f57f98fd213b5da51db9a6015e9be 100644 (file)
@@ -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`
index 6bed78a3badc8e38454d012894e17f0e47e18cfe..19aac1f77e7c1888891c7971992b8055a1d1b825 100644 (file)
@@ -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