Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 4d97376

Browse files
committedOct 11, 2020
Rename ty::TyKind to ty::TyData, Ty::kind to Ty::data
1 parent c38f001 commit 4d97376

File tree

266 files changed

+1340
-1340
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

266 files changed

+1340
-1340
lines changed
 

‎compiler/rustc_codegen_llvm/src/builder.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ impl BuilderMethods<'a, 'tcx> for Builder<'a, 'll, 'tcx> {
307307
use rustc_ast::UintTy::*;
308308
use rustc_middle::ty::{Int, Uint};
309309

310-
let new_kind = match ty.kind() {
310+
let new_kind = match ty.data() {
311311
Int(t @ Isize) => Int(t.normalize(self.tcx.sess.target.ptr_width)),
312312
Uint(t @ Usize) => Uint(t.normalize(self.tcx.sess.target.ptr_width)),
313313
t @ (Uint(_) | Int(_)) => t.clone(),

‎compiler/rustc_codegen_llvm/src/consts.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ fn check_and_apply_linkage(
121121
// extern "C" fn() from being non-null, so we can't just declare a
122122
// static and call it a day. Some linkages (like weak) will make it such
123123
// that the static actually has a null value.
124-
let llty2 = if let ty::RawPtr(ref mt) = ty.kind() {
124+
let llty2 = if let ty::RawPtr(ref mt) = ty.data() {
125125
cx.layout_of(mt.ty).llvm_type(cx)
126126
} else {
127127
cx.sess().span_fatal(

0 commit comments

Comments
 (0)
Please sign in to comment.