about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/librustc/ty/sty.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc/ty/sty.rs b/src/librustc/ty/sty.rs
index dfd8168985c..ebeb26be23d 100644
--- a/src/librustc/ty/sty.rs
+++ b/src/librustc/ty/sty.rs
@@ -1778,7 +1778,7 @@ impl<'tcx> TyS<'tcx> {
 
     /// Returns `true` if this type is a `str`.
     #[inline]
-    pub fn is_str(&self) -> bool { self.sty == Str }
+    pub fn is_str(&self) -> bool { self.kind == Str }
 
     #[inline]
     pub fn is_param(&self, index: u32) -> bool {