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:
parent
dfdbe30004
commit
e54ef0a7ab
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user