We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e64a1c1 + 69769fc commit 040db28Copy full SHA for 040db28
compiler/rustc_trait_selection/src/traits/error_reporting/type_err_ctxt_ext.rs
@@ -2069,12 +2069,16 @@ impl<'tcx> TypeErrCtxt<'_, 'tcx> {
2069
})
2070
.collect();
2071
2072
- let end = if candidates.len() <= 9 { candidates.len() } else { 8 };
+ let end = if candidates.len() <= 9 || self.tcx.sess.opts.verbose {
2073
+ candidates.len()
2074
+ } else {
2075
+ 8
2076
+ };
2077
err.help(format!(
2078
"the following {other}types implement trait `{}`:{}{}",
2079
trait_ref.print_trait_sugared(),
2080
candidates[..end].join(""),
- if candidates.len() > 9 {
2081
+ if candidates.len() > 9 && !self.tcx.sess.opts.verbose {
2082
format!("\nand {} others", candidates.len() - 8)
2083
} else {
2084
String::new()
0 commit comments