Skip to content

Commit 8120e28

Browse files
authored
Rollup merge of #141495 - compiler-errors:rename-unpack, r=fmease
Rename `{GenericArg,Term}::unpack()` to `kind()` A well-deserved rename IMO. r? `@oli-obk` or `@lcnr` (or anyone) cc `@rust-lang/types,` but I'd be surprised if this is controversial.
2 parents fbc7e43 + d26e6b1 commit 8120e28

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/machine.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1775,7 +1775,7 @@ impl<'tcx> Machine<'tcx> for MiriMachine<'tcx> {
17751775
let is_generic = instance
17761776
.args
17771777
.into_iter()
1778-
.any(|kind| !matches!(kind.unpack(), ty::GenericArgKind::Lifetime(_)));
1778+
.any(|arg| !matches!(arg.kind(), ty::GenericArgKind::Lifetime(_)));
17791779
let can_be_inlined = matches!(
17801780
ecx.tcx.sess.opts.unstable_opts.cross_crate_inline_threshold,
17811781
InliningThreshold::Always

0 commit comments

Comments
 (0)