Skip to content

Commit 9fe96eb

Browse files
committed
LateParamRegion Copy -> Clone
1 parent f2f8593 commit 9fe96eb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

compiler/rustc_type_ir/src/interner.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ pub trait Interner:
118118
// Kinds of regions
119119
type Region: Region<Self>;
120120
type EarlyParamRegion: Clone + Debug + Hash + Eq + ParamLike;
121-
type LateParamRegion: Copy + Debug + Hash + Eq;
121+
type LateParamRegion: Clone + Debug + Hash + Eq;
122122
type BoundRegion: Clone + Debug + Hash + Eq + BoundVarLike<Self>;
123123
type PlaceholderRegion: PlaceholderLike;
124124

compiler/rustc_type_ir/src/region_kind.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ rustc_index::newtype_index! {
126126
/// [2]: https://smallcultfollowing.com/babysteps/blog/2013/11/04/intermingled-parameter-lists/
127127
/// [rustc dev guide]: https://rustc-dev-guide.rust-lang.org/traits/hrtb.html
128128
#[derive_where(Clone, Hash, PartialEq, Eq; I: Interner)]
129-
#[derive_where(Copy; I: Interner, I::EarlyParamRegion: Copy, I::BoundRegion: Copy, I::PlaceholderRegion: Copy)]
129+
#[derive_where(Copy; I: Interner, I::EarlyParamRegion: Copy, I::BoundRegion: Copy, I::PlaceholderRegion: Copy, I::LateParamRegion: Copy)]
130130
#[cfg_attr(feature = "nightly", derive(TyEncodable, TyDecodable))]
131131
pub enum RegionKind<I: Interner> {
132132
/// A region parameter; for example `'a` in `impl<'a> Trait for &'a ()`.

0 commit comments

Comments
 (0)