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: https://github.com/rust-lang/rust/issues/119130
This commit is contained in:
Fernando Fernandez Mancera 2024-02-20 01:20:00 +01:00
parent dfdbe30004
commit e54ef0a7ab

View File

@ -351,7 +351,7 @@ impl<'tcx> TyCtxt<'tcx> {
})
.expect("could not write to `String`");
if !self.sess.opts.unstable_opts.write_long_types_to_disk {
if !self.sess.opts.unstable_opts.write_long_types_to_disk || self.sess.opts.verbose {
return regular;
}