diff options
| author | Aaron Hill <aa1ronham@gmail.com> | 2020-06-12 20:44:19 -0400 |
|---|---|---|
| committer | Aaron Hill <aa1ronham@gmail.com> | 2020-07-22 00:58:31 -0400 |
| commit | 90aee14eb95ac0b9ddb7cf5db6d003155e94800c (patch) | |
| tree | e7936b2679bf779ada0a87abd1a4436a2a02853c | |
| parent | 117a60e1f5045e317d3f76ce60be28d18c694608 (diff) | |
| download | rust-90aee14eb95ac0b9ddb7cf5db6d003155e94800c.tar.gz rust-90aee14eb95ac0b9ddb7cf5db6d003155e94800c.zip | |
Skip computing param_env and size if not needed
| -rw-r--r-- | src/librustc_middle/ty/sty.rs | 1 |
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) } } - |
