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.
1 parent db8aca4 commit 69769fcCopy full SHA for 69769fc
compiler/rustc_trait_selection/src/traits/error_reporting/type_err_ctxt_ext.rs
@@ -2082,12 +2082,16 @@ impl<'tcx> TypeErrCtxt<'_, 'tcx> {
2082
})
2083
.collect();
2084
2085
- let end = if candidates.len() <= 9 { candidates.len() } else { 8 };
+ let end = if candidates.len() <= 9 || self.tcx.sess.opts.verbose {
2086
+ candidates.len()
2087
+ } else {
2088
+ 8
2089
+ };
2090
err.help(format!(
2091
"the following {other}types implement trait `{}`:{}{}",
2092
trait_ref.print_trait_sugared(),
2093
candidates[..end].join(""),
- if candidates.len() > 9 {
2094
+ if candidates.len() > 9 && !self.tcx.sess.opts.verbose {
2095
format!("\nand {} others", candidates.len() - 8)
2096
} else {
2097
String::new()
0 commit comments