Skip to content

Commit 132207b

Browse files
authored
Rollup merge of #126567 - compiler-errors:instance-kind, r=oli-obk,lcnr
Rename `InstanceDef` -> `InstanceKind` Renames `InstanceDef` to `InstanceKind`. The `Def` here is confusing, and makes it hard to distinguish `Instance` and `InstanceDef`. `InstanceKind` makes this more obvious, since it's really just describing what *kind* of instance we have. Not sure if this is large enough to warrant a types team MCP -- it's only 53 files. I don't personally think it does, but happy to write one if anyone disagrees. cc ``@rust-lang/types`` r? types
2 parents b3109ae + b93bd82 commit 132207b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/intrinsics/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ pub trait EvalContextExt<'tcx>: crate::MiriInterpCxExt<'tcx> {
5757
);
5858
}
5959
Ok(Some(ty::Instance {
60-
def: ty::InstanceDef::Item(instance.def_id()),
60+
def: ty::InstanceKind::Item(instance.def_id()),
6161
args: instance.args,
6262
}))
6363
}

0 commit comments

Comments
 (0)