diff options
| author | Niko Matsakis <niko@alum.mit.edu> | 2015-02-24 09:24:42 -0500 |
|---|---|---|
| committer | Niko Matsakis <niko@alum.mit.edu> | 2015-03-04 15:06:33 -0500 |
| commit | bc9ae36dba3bcacdec98af1495d99593bfc59cac (patch) | |
| tree | 37e98899e1af44a082669ea979b27b610fdf4a24 /src/librustc_lint/builtin.rs | |
| parent | 4ee002a17c62d5e8f42b93cb02bb366423492d98 (diff) | |
| download | rust-bc9ae36dba3bcacdec98af1495d99593bfc59cac.tar.gz rust-bc9ae36dba3bcacdec98af1495d99593bfc59cac.zip | |
Separate supertrait collection from processing a `TraitDef`. This allows
us to construct trait-references and do other things without forcing a full evaluation of the supertraits. One downside of this scheme is that we must invoke `ensure_super_predicates` before using any construct that might require knowing about the super-predicates.
Diffstat (limited to 'src/librustc_lint/builtin.rs')
| -rw-r--r-- | src/librustc_lint/builtin.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustc_lint/builtin.rs b/src/librustc_lint/builtin.rs index 22311a71583..3682fdb74b7 100644 --- a/src/librustc_lint/builtin.rs +++ b/src/librustc_lint/builtin.rs @@ -432,8 +432,8 @@ impl<'a, 'tcx> ImproperCTypesVisitor<'a, 'tcx> { } def::DefTy(..) => { let tty = match self.cx.tcx.ast_ty_to_ty_cache.borrow().get(&id) { - Some(&ty::atttce_resolved(t)) => t, - _ => panic!("ast_ty_to_ty_cache was incomplete after typeck!") + Some(&t) => t, + None => panic!("ast_ty_to_ty_cache was incomplete after typeck!") }; if !ty::is_ffi_safe(self.cx.tcx, tty) { |
