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 4cdc441 commit c40411cCopy full SHA for c40411c
src/librustc/ty/print.rs
@@ -33,10 +33,9 @@ pub struct PrintContext {
33
34
impl PrintContext {
35
pub(crate) fn new() -> Self {
36
- ty::tls::with_opt(|tcx| {
37
- let (is_verbose, identify_regions) = tcx.map(
38
- |tcx| (tcx.sess.verbose(), tcx.sess.opts.debugging_opts.identify_regions)
39
- ).unwrap_or((false, false));
+ ty::tls::with(|tcx| {
+ let (is_verbose, identify_regions) =
+ (tcx.sess.verbose(), tcx.sess.opts.debugging_opts.identify_regions);
40
PrintContext {
41
is_debug: false,
42
is_verbose: is_verbose,
0 commit comments