about summary refs log tree commit diff
path: root/src/librustc_mir/transform
diff options
context:
space:
mode:
authorvarkor <github@varkor.com>2018-03-08 10:39:31 +0000
committervarkor <github@varkor.com>2018-05-15 14:20:19 +0100
commitfe0c119e7da2e9b068dd54bb88e8acb23d31bfa4 (patch)
tree462658be1ad5ebd454c533e4638a148c8636636f /src/librustc_mir/transform
parenteca0da59850d4a9eef17c0e6c3795397102d88a3 (diff)
downloadrust-fe0c119e7da2e9b068dd54bb88e8acb23d31bfa4.tar.gz
rust-fe0c119e7da2e9b068dd54bb88e8acb23d31bfa4.zip
Consolidate ty::Generics
Diffstat (limited to 'src/librustc_mir/transform')
-rw-r--r--src/librustc_mir/transform/check_unsafety.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_mir/transform/check_unsafety.rs b/src/librustc_mir/transform/check_unsafety.rs
index 2bf5a49c97e..1e8707157f7 100644
--- a/src/librustc_mir/transform/check_unsafety.rs
+++ b/src/librustc_mir/transform/check_unsafety.rs
@@ -357,7 +357,7 @@ fn unsafe_derive_on_repr_packed<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>, def_id: D
 
     // FIXME: when we make this a hard error, this should have its
     // own error code.
-    let message = if !tcx.generics_of(def_id).types.is_empty() {
+    let message = if !tcx.generics_of(def_id).types().is_empty() {
         format!("#[derive] can't be used on a #[repr(packed)] struct with \
                  type parameters (error E0133)")
     } else {