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 dc45735

Browse files
committedSep 26, 2019
Auto merge of #64513 - varkor:sty-begone, r=eddyb
Rename `TyS.sty` to `TyS.kind` Fixes #64353. r? @eddyb
2 parents a5bc0f0 + bc2a373 commit dc45735

File tree

179 files changed

+735
-736
lines changed

Some content is hidden

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

179 files changed

+735
-736
lines changed
 

‎src/librustc/infer/canonical/canonicalizer.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ impl<'cx, 'tcx> TypeFolder<'tcx> for Canonicalizer<'cx, 'tcx> {
343343
}
344344

345345
fn fold_ty(&mut self, t: Ty<'tcx>) -> Ty<'tcx> {
346-
match t.sty {
346+
match t.kind {
347347
ty::Infer(ty::TyVar(vid)) => {
348348
debug!("canonical: type var found with vid {:?}", vid);
349349
match self.infcx.unwrap().probe_ty_var(vid) {

‎src/librustc/infer/canonical/query_response.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,7 @@ impl<'cx, 'tcx> InferCtxt<'cx, 'tcx> {
471471
match result_value.unpack() {
472472
UnpackedKind::Type(result_value) => {
473473
// e.g., here `result_value` might be `?0` in the example above...
474-
if let ty::Bound(debruijn, b) = result_value.sty {
474+
if let ty::Bound(debruijn, b) = result_value.kind {
475475
// ...in which case we would set `canonical_vars[0]` to `Some(?U)`.
476476

477477
// We only allow a `ty::INNERMOST` index in substitutions.

0 commit comments

Comments
 (0)
Please sign in to comment.