about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAaron Hill <aa1ronham@gmail.com>2020-06-12 20:44:19 -0400
committerAaron Hill <aa1ronham@gmail.com>2020-07-22 00:58:31 -0400
commit90aee14eb95ac0b9ddb7cf5db6d003155e94800c (patch)
treee7936b2679bf779ada0a87abd1a4436a2a02853c
parent117a60e1f5045e317d3f76ce60be28d18c694608 (diff)
downloadrust-90aee14eb95ac0b9ddb7cf5db6d003155e94800c.tar.gz
rust-90aee14eb95ac0b9ddb7cf5db6d003155e94800c.zip
Skip computing param_env and size if not needed
-rw-r--r--src/librustc_middle/ty/sty.rs1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/librustc_middle/ty/sty.rs b/src/librustc_middle/ty/sty.rs
index 3e705a2a297..03bf51c95c5 100644
--- a/src/librustc_middle/ty/sty.rs
+++ b/src/librustc_middle/ty/sty.rs
@@ -2225,4 +2225,3 @@ impl<'tcx> TyS<'tcx> {
         tcx.layout_of(tcx.param_env(did).and(self)).map(|layout| layout.is_zst()).unwrap_or(false)
     }
 }
-