Skip to content

Commit e54ef0a

Browse files
committed
Make --verbose imply -Z write-long-types-to-disk=no
When shortening the type it is necessary to take into account the `--verbose` flag, if it is activated, we must always show the entire type and not write it in a file. Fixes: #119130
1 parent dfdbe30 commit e54ef0a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_middle/src/ty/error.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ impl<'tcx> TyCtxt<'tcx> {
351351
})
352352
.expect("could not write to `String`");
353353

354-
if !self.sess.opts.unstable_opts.write_long_types_to_disk {
354+
if !self.sess.opts.unstable_opts.write_long_types_to_disk || self.sess.opts.verbose {
355355
return regular;
356356
}
357357

0 commit comments

Comments
 (0)