Bump chalk

This commit is contained in:
Lukas Wirth 2024-04-07 12:19:44 +02:00
parent a82e028e30
commit 8078c3d9e8
15 changed files with 102 additions and 88 deletions

17
Cargo.lock generated
View file

@ -161,9 +161,9 @@ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
[[package]] [[package]]
name = "chalk-derive" name = "chalk-derive"
version = "0.96.0" version = "0.97.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5676cea088c32290fe65c82895be9d06dd21e0fa49bb97ca840529e9417ab71a" checksum = "92a0aedc4ac2adc5c0b7dc9ec38c5c816284ad28da6d4ecd01873b9683f54972"
dependencies = [ dependencies = [
"proc-macro2", "proc-macro2",
"quote", "quote",
@ -173,20 +173,19 @@ dependencies = [
[[package]] [[package]]
name = "chalk-ir" name = "chalk-ir"
version = "0.96.0" version = "0.97.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ff550c2cdd63ff74394214dce03d06386928a641c0f08837535f04af573a966d" checksum = "db18493569b190f7266a04901e520fc3a5c00564475154287906f8a27302c119"
dependencies = [ dependencies = [
"bitflags 2.4.2", "bitflags 2.4.2",
"chalk-derive", "chalk-derive",
"lazy_static",
] ]
[[package]] [[package]]
name = "chalk-recursive" name = "chalk-recursive"
version = "0.96.0" version = "0.97.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4c4559e5c9b200240453b07d893f9c3c74413b53b0d33cbe272c68b0b77aa1c3" checksum = "ae4ba8ce5bd2e1b59f1f79495bc8704db09a8285e51cc5ddf01d9baee1bf447d"
dependencies = [ dependencies = [
"chalk-derive", "chalk-derive",
"chalk-ir", "chalk-ir",
@ -197,9 +196,9 @@ dependencies = [
[[package]] [[package]]
name = "chalk-solve" name = "chalk-solve"
version = "0.96.0" version = "0.97.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0882e68ce9eb5a0a2413806538494d19df6ee520ab17d1faf489e952f32e98b8" checksum = "b2ec1b3b7f7b1ec38f099ef39c2bc3ea29335be1b8316d114baff46d96d131e9"
dependencies = [ dependencies = [
"chalk-derive", "chalk-derive",
"chalk-ir", "chalk-ir",

View file

@ -106,10 +106,10 @@ arrayvec = "0.7.4"
bitflags = "2.4.1" bitflags = "2.4.1"
cargo_metadata = "0.18.1" cargo_metadata = "0.18.1"
camino = "1.1.6" camino = "1.1.6"
chalk-solve = { version = "0.96.0", default-features = false } chalk-solve = { version = "0.97.0", default-features = false }
chalk-ir = "0.96.0" chalk-ir = "0.97.0"
chalk-recursive = { version = "0.96.0", default-features = false } chalk-recursive = { version = "0.97.0", default-features = false }
chalk-derive = "0.96.0" chalk-derive = "0.97.0"
command-group = "2.0.1" command-group = "2.0.1"
crossbeam-channel = "0.5.8" crossbeam-channel = "0.5.8"
dissimilar = "1.0.7" dissimilar = "1.0.7"

View file

@ -42,9 +42,10 @@ use crate::{
primitive, to_assoc_type_id, primitive, to_assoc_type_id,
utils::{self, detect_variant_from_bytes, generics, ClosureSubst}, utils::{self, detect_variant_from_bytes, generics, ClosureSubst},
AdtId, AliasEq, AliasTy, Binders, CallableDefId, CallableSig, Const, ConstScalar, ConstValue, AdtId, AliasEq, AliasTy, Binders, CallableDefId, CallableSig, Const, ConstScalar, ConstValue,
DomainGoal, FnAbi, GenericArg, ImplTraitId, Interner, Lifetime, LifetimeData, LifetimeOutlives, DomainGoal, FnAbi, GenericArg, GenericArgData, ImplTraitId, Interner, Lifetime, LifetimeData,
MemoryMap, Mutability, OpaqueTy, ProjectionTy, ProjectionTyExt, QuantifiedWhereClause, Scalar, LifetimeOutlives, MemoryMap, Mutability, OpaqueTy, ProjectionTy, ProjectionTyExt,
Substitution, TraitEnvironment, TraitRef, TraitRefExt, Ty, TyExt, WhereClause, QuantifiedWhereClause, Scalar, Substitution, TraitEnvironment, TraitRef, TraitRefExt, Ty,
TyExt, WhereClause,
}; };
pub trait HirWrite: fmt::Write { pub trait HirWrite: fmt::Write {
@ -1367,8 +1368,8 @@ fn hir_fmt_generics(
return true; return true;
} }
} }
if parameter.lifetime(Interner).map(|it| it.data(Interner)) if let Some(crate::LifetimeData::Static | crate::LifetimeData::Error) =
== Some(&crate::LifetimeData::Static) parameter.lifetime(Interner).map(|it| it.data(Interner))
{ {
return true; return true;
} }
@ -1403,10 +1404,18 @@ fn hir_fmt_generics(
write!(f, ", ")?; write!(f, ", ")?;
} }
first = false; first = false;
if f.display_target.is_source_code() if f.display_target.is_source_code() {
&& generic_arg.ty(Interner).map(|ty| ty.kind(Interner)) == Some(&TyKind::Error) match generic_arg.data(Interner) {
GenericArgData::Lifetime(l)
if matches!(l.data(Interner), LifetimeData::Error) =>
{ {
write!(f, "_")?; write!(f, "'_")
}
GenericArgData::Ty(t) if matches!(t.kind(Interner), TyKind::Error) => {
write!(f, "_")
}
_ => generic_arg.hir_fmt(f),
}?
} else { } else {
generic_arg.hir_fmt(f)?; generic_arg.hir_fmt(f)?;
} }
@ -1729,6 +1738,7 @@ impl HirDisplay for LifetimeData {
Ok(()) Ok(())
} }
LifetimeData::Static => write!(f, "'static"), LifetimeData::Static => write!(f, "'static"),
LifetimeData::Error => write!(f, "'{{error}}"),
LifetimeData::Erased => Ok(()), LifetimeData::Erased => Ok(()),
LifetimeData::Phantom(_, _) => Ok(()), LifetimeData::Phantom(_, _) => Ok(()),
} }

View file

@ -612,8 +612,6 @@ has_interner!(ImplTraits);
#[derive(PartialEq, Eq, Debug, Hash)] #[derive(PartialEq, Eq, Debug, Hash)]
pub struct ImplTrait { pub struct ImplTrait {
// FIXME: Should be Arc<[QuantifiedWhereClause]>, but the HasInterner impl for Arc is missing a
// ?Sized bound
pub(crate) bounds: Binders<Vec<QuantifiedWhereClause>>, pub(crate) bounds: Binders<Vec<QuantifiedWhereClause>>,
} }
@ -624,7 +622,7 @@ pub fn static_lifetime() -> Lifetime {
} }
pub fn error_lifetime() -> Lifetime { pub fn error_lifetime() -> Lifetime {
LifetimeData::Static.intern(Interner) LifetimeData::Error.intern(Interner)
} }
pub(crate) fn fold_free_vars<T: HasInterner<Interner = Interner> + TypeFoldable<Interner>>( pub(crate) fn fold_free_vars<T: HasInterner<Interner = Interner> + TypeFoldable<Interner>>(

View file

@ -67,9 +67,9 @@ use crate::{
}, },
AliasEq, AliasTy, Binders, BoundVar, CallableSig, Const, ConstScalar, DebruijnIndex, DynTy, AliasEq, AliasTy, Binders, BoundVar, CallableSig, Const, ConstScalar, DebruijnIndex, DynTy,
FnAbi, FnPointer, FnSig, FnSubst, ImplTrait, ImplTraitId, ImplTraits, Interner, Lifetime, FnAbi, FnPointer, FnSig, FnSubst, ImplTrait, ImplTraitId, ImplTraits, Interner, Lifetime,
LifetimeData, LifetimeOutlives, ParamKind, PolyFnSig, ProjectionTy, QuantifiedWhereClause, LifetimeData, LifetimeOutlives, ParamKind, PolyFnSig, ProgramClause, ProjectionTy,
QuantifiedWhereClauses, Substitution, TraitEnvironment, TraitRef, TraitRefExt, Ty, TyBuilder, QuantifiedWhereClause, QuantifiedWhereClauses, Substitution, TraitEnvironment, TraitRef,
TyKind, WhereClause, TraitRefExt, Ty, TyBuilder, TyKind, WhereClause,
}; };
#[derive(Debug)] #[derive(Debug)]
@ -1052,11 +1052,11 @@ impl<'a> TyLoweringContext<'a> {
self_ty: Ty, self_ty: Ty,
ignore_bindings: bool, ignore_bindings: bool,
) -> impl Iterator<Item = QuantifiedWhereClause> + 'a { ) -> impl Iterator<Item = QuantifiedWhereClause> + 'a {
let mut bindings = None; let mut trait_ref = None;
let trait_ref = match bound.as_ref() { let clause = match bound.as_ref() {
TypeBound::Path(path, TraitBoundModifier::None) => { TypeBound::Path(path, TraitBoundModifier::None) => {
bindings = self.lower_trait_ref_from_path(path, Some(self_ty)); trait_ref = self.lower_trait_ref_from_path(path, Some(self_ty));
bindings trait_ref
.clone() .clone()
.filter(|tr| { .filter(|tr| {
// ignore `T: Drop` or `T: Destruct` bounds. // ignore `T: Drop` or `T: Destruct` bounds.
@ -1092,8 +1092,8 @@ impl<'a> TyLoweringContext<'a> {
} }
TypeBound::ForLifetime(_, path) => { TypeBound::ForLifetime(_, path) => {
// FIXME Don't silently drop the hrtb lifetimes here // FIXME Don't silently drop the hrtb lifetimes here
bindings = self.lower_trait_ref_from_path(path, Some(self_ty)); trait_ref = self.lower_trait_ref_from_path(path, Some(self_ty));
bindings.clone().map(WhereClause::Implemented).map(crate::wrap_empty_binders) trait_ref.clone().map(WhereClause::Implemented).map(crate::wrap_empty_binders)
} }
TypeBound::Lifetime(l) => { TypeBound::Lifetime(l) => {
let lifetime = self.lower_lifetime(l); let lifetime = self.lower_lifetime(l);
@ -1104,8 +1104,8 @@ impl<'a> TyLoweringContext<'a> {
} }
TypeBound::Error => None, TypeBound::Error => None,
}; };
trait_ref.into_iter().chain( clause.into_iter().chain(
bindings trait_ref
.into_iter() .into_iter()
.filter(move |_| !ignore_bindings) .filter(move |_| !ignore_bindings)
.flat_map(move |tr| self.assoc_type_bindings_from_type_bound(bound, tr)), .flat_map(move |tr| self.assoc_type_bindings_from_type_bound(bound, tr)),
@ -1624,10 +1624,14 @@ pub(crate) fn generic_predicates_for_param_query(
let subst = generics.bound_vars_subst(db, DebruijnIndex::INNERMOST); let subst = generics.bound_vars_subst(db, DebruijnIndex::INNERMOST);
let explicitly_unsized_tys = ctx.unsized_types.into_inner(); let explicitly_unsized_tys = ctx.unsized_types.into_inner();
let implicitly_sized_predicates = if let Some(implicitly_sized_predicates) =
implicitly_sized_clauses(db, param_id.parent, &explicitly_unsized_tys, &subst, &resolver) implicitly_sized_clauses(db, param_id.parent, &explicitly_unsized_tys, &subst, &resolver)
.map(|p| make_binders(db, &generics, crate::wrap_empty_binders(p))); {
predicates.extend(implicitly_sized_predicates); predicates.extend(
implicitly_sized_predicates
.map(|p| make_binders(db, &generics, crate::wrap_empty_binders(p))),
);
}
predicates.into() predicates.into()
} }
@ -1685,24 +1689,23 @@ pub(crate) fn trait_environment_query(
let substs = TyBuilder::placeholder_subst(db, trait_id); let substs = TyBuilder::placeholder_subst(db, trait_id);
let trait_ref = TraitRef { trait_id: to_chalk_trait_id(trait_id), substitution: substs }; let trait_ref = TraitRef { trait_id: to_chalk_trait_id(trait_id), substitution: substs };
let pred = WhereClause::Implemented(trait_ref); let pred = WhereClause::Implemented(trait_ref);
let program_clause: chalk_ir::ProgramClause<Interner> = pred.cast(Interner); clauses.push(pred.cast::<ProgramClause>(Interner).into_from_env_clause(Interner));
clauses.push(program_clause.into_from_env_clause(Interner));
} }
let subst = generics(db.upcast(), def).placeholder_subst(db); let subst = generics(db.upcast(), def).placeholder_subst(db);
let explicitly_unsized_tys = ctx.unsized_types.into_inner(); let explicitly_unsized_tys = ctx.unsized_types.into_inner();
let implicitly_sized_clauses = if let Some(implicitly_sized_clauses) =
implicitly_sized_clauses(db, def, &explicitly_unsized_tys, &subst, &resolver).map(|pred| { implicitly_sized_clauses(db, def, &explicitly_unsized_tys, &subst, &resolver)
let program_clause: chalk_ir::ProgramClause<Interner> = pred.cast(Interner); {
program_clause.into_from_env_clause(Interner) clauses.extend(
}); implicitly_sized_clauses
clauses.extend(implicitly_sized_clauses); .map(|pred| pred.cast::<ProgramClause>(Interner).into_from_env_clause(Interner)),
);
let krate = def.module(db.upcast()).krate(); }
let env = chalk_ir::Environment::new(Interner).add_clauses(Interner, clauses); let env = chalk_ir::Environment::new(Interner).add_clauses(Interner, clauses);
TraitEnvironment::new(krate, None, traits_in_scope.into_boxed_slice(), env) TraitEnvironment::new(resolver.krate(), None, traits_in_scope.into_boxed_slice(), env)
} }
/// Resolve the where clause(s) of an item with generics. /// Resolve the where clause(s) of an item with generics.
@ -1730,10 +1733,14 @@ pub(crate) fn generic_predicates_query(
let subst = generics.bound_vars_subst(db, DebruijnIndex::INNERMOST); let subst = generics.bound_vars_subst(db, DebruijnIndex::INNERMOST);
let explicitly_unsized_tys = ctx.unsized_types.into_inner(); let explicitly_unsized_tys = ctx.unsized_types.into_inner();
let implicitly_sized_predicates = if let Some(implicitly_sized_predicates) =
implicitly_sized_clauses(db, def, &explicitly_unsized_tys, &subst, &resolver) implicitly_sized_clauses(db, def, &explicitly_unsized_tys, &subst, &resolver)
.map(|p| make_binders(db, &generics, crate::wrap_empty_binders(p))); {
predicates.extend(implicitly_sized_predicates); predicates.extend(
implicitly_sized_predicates
.map(|p| make_binders(db, &generics, crate::wrap_empty_binders(p))),
);
}
predicates.into() predicates.into()
} }
@ -1745,19 +1752,19 @@ fn implicitly_sized_clauses<'a>(
explicitly_unsized_tys: &'a FxHashSet<Ty>, explicitly_unsized_tys: &'a FxHashSet<Ty>,
substitution: &'a Substitution, substitution: &'a Substitution,
resolver: &Resolver, resolver: &Resolver,
) -> impl Iterator<Item = WhereClause> + 'a { ) -> Option<impl Iterator<Item = WhereClause> + 'a> {
let is_trait_def = matches!(def, GenericDefId::TraitId(..)); let is_trait_def = matches!(def, GenericDefId::TraitId(..));
let generic_args = &substitution.as_slice(Interner)[is_trait_def as usize..]; let generic_args = &substitution.as_slice(Interner)[is_trait_def as usize..];
let sized_trait = db let sized_trait = db
.lang_item(resolver.krate(), LangItem::Sized) .lang_item(resolver.krate(), LangItem::Sized)
.and_then(|lang_item| lang_item.as_trait().map(to_chalk_trait_id)); .and_then(|lang_item| lang_item.as_trait().map(to_chalk_trait_id));
sized_trait.into_iter().flat_map(move |sized_trait| { sized_trait.map(move |sized_trait| {
let implicitly_sized_tys = generic_args generic_args
.iter() .iter()
.filter_map(|generic_arg| generic_arg.ty(Interner)) .filter_map(|generic_arg| generic_arg.ty(Interner))
.filter(move |&self_ty| !explicitly_unsized_tys.contains(self_ty)); .filter(move |&self_ty| !explicitly_unsized_tys.contains(self_ty))
implicitly_sized_tys.map(move |self_ty| { .map(move |self_ty| {
WhereClause::Implemented(TraitRef { WhereClause::Implemented(TraitRef {
trait_id: sized_trait, trait_id: sized_trait,
substitution: Substitution::from1(Interner, self_ty.clone()), substitution: Substitution::from1(Interner, self_ty.clone()),

View file

@ -85,7 +85,7 @@ fn render_dyn_for_ty() {
trait Foo<'a> {} trait Foo<'a> {}
fn foo(foo: &dyn for<'a> Foo<'a>) {} fn foo(foo: &dyn for<'a> Foo<'a>) {}
// ^^^ &dyn Foo<'static> // ^^^ &dyn Foo<'{error}>
"#, "#,
); );
} }

View file

@ -1109,7 +1109,7 @@ fn var_args() {
#[lang = "va_list"] #[lang = "va_list"]
pub struct VaListImpl<'f>; pub struct VaListImpl<'f>;
fn my_fn(foo: ...) {} fn my_fn(foo: ...) {}
//^^^ VaListImpl<'static> //^^^ VaListImpl<'{error}>
"#, "#,
); );
} }

View file

@ -896,13 +896,13 @@ fn flush(&self) {
"#, "#,
expect![[r#" expect![[r#"
123..127 'self': &Mutex<T> 123..127 'self': &Mutex<T>
150..152 '{}': MutexGuard<'static, T> 150..152 '{}': MutexGuard<'{error}, T>
234..238 'self': &{unknown} 234..238 'self': &{unknown}
240..290 '{ ...()); }': () 240..290 '{ ...()); }': ()
250..251 'w': &Mutex<BufWriter> 250..251 'w': &Mutex<BufWriter>
276..287 '*(w.lock())': BufWriter 276..287 '*(w.lock())': BufWriter
278..279 'w': &Mutex<BufWriter> 278..279 'w': &Mutex<BufWriter>
278..286 'w.lock()': MutexGuard<'static, BufWriter> 278..286 'w.lock()': MutexGuard<'{error}, BufWriter>
"#]], "#]],
); );
} }

View file

@ -3092,7 +3092,7 @@ fn main() {
389..394 'boxed': Box<Foo<i32>> 389..394 'boxed': Box<Foo<i32>>
389..406 'boxed....nner()': &i32 389..406 'boxed....nner()': &i32
416..421 'good1': &i32 416..421 'good1': &i32
424..438 'Foo::get_inner': fn get_inner<i32, 'static>(&Box<Foo<i32>>) -> &i32 424..438 'Foo::get_inner': fn get_inner<i32, '{error}>(&Box<Foo<i32>>) -> &i32
424..446 'Foo::g...boxed)': &i32 424..446 'Foo::g...boxed)': &i32
439..445 '&boxed': &Box<Foo<i32>> 439..445 '&boxed': &Box<Foo<i32>>
440..445 'boxed': Box<Foo<i32>> 440..445 'boxed': Box<Foo<i32>>
@ -3100,7 +3100,7 @@ fn main() {
464..469 'boxed': Box<Foo<i32>> 464..469 'boxed': Box<Foo<i32>>
464..480 'boxed....self()': &Foo<i32> 464..480 'boxed....self()': &Foo<i32>
490..495 'good2': &Foo<i32> 490..495 'good2': &Foo<i32>
498..511 'Foo::get_self': fn get_self<i32, 'static>(&Box<Foo<i32>>) -> &Foo<i32> 498..511 'Foo::get_self': fn get_self<i32, '{error}>(&Box<Foo<i32>>) -> &Foo<i32>
498..519 'Foo::g...boxed)': &Foo<i32> 498..519 'Foo::g...boxed)': &Foo<i32>
512..518 '&boxed': &Box<Foo<i32>> 512..518 '&boxed': &Box<Foo<i32>>
513..518 'boxed': Box<Foo<i32>> 513..518 'boxed': Box<Foo<i32>>
@ -3659,7 +3659,7 @@ fn main() {
let are = "are"; let are = "are";
let count = 10; let count = 10;
builtin#format_args("hello {count:02} {} friends, we {are:?} {0}{last}", "fancy", last = "!"); builtin#format_args("hello {count:02} {} friends, we {are:?} {0}{last}", "fancy", last = "!");
// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ type: Arguments<'static> // ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ type: Arguments<'{error}>
} }
"#, "#,
); );

View file

@ -1602,7 +1602,7 @@ fn weird_bounds() {
r#" r#"
//- minicore: sized //- minicore: sized
trait Trait {} trait Trait {}
fn test( fn test<'lifetime>(
a: impl Trait + 'lifetime, a: impl Trait + 'lifetime,
b: impl 'lifetime, b: impl 'lifetime,
c: impl (Trait), c: impl (Trait),
@ -1612,13 +1612,13 @@ fn test(
) {} ) {}
"#, "#,
expect![[r#" expect![[r#"
28..29 'a': impl Trait + 'static 39..40 'a': impl Trait + 'lifetime
59..60 'b': impl 'static 70..71 'b': impl 'lifetime
82..83 'c': impl Trait 93..94 'c': impl Trait
103..104 'd': impl 'static 114..115 'd': impl 'lifetime
128..129 'e': impl ?Sized 139..140 'e': impl ?Sized
148..149 'f': impl Trait + ?Sized 159..160 'f': impl Trait + ?Sized
173..175 '{}': () 184..186 '{}': ()
"#]], "#]],
); );
} }

View file

@ -5617,7 +5617,7 @@ fn func<T: Debug>(i: Struct<'_, T>) {
fun_name(i); fun_name(i);
} }
fn $0fun_name(i: Struct<'static, T>) { fn $0fun_name(i: Struct<'_, T>) {
foo(i); foo(i);
} }
"#, "#,

View file

@ -49,13 +49,13 @@ use crate::{
// //
// fn bar() { // fn bar() {
// { // {
// let word = "안녕하세요"; // let word: &str = "안녕하세요";
// if !word.is_empty() { // if !word.is_empty() {
// print(word); // print(word);
// } // }
// }; // };
// { // {
// let word = "여러분"; // let word: &str = "여러분";
// if !word.is_empty() { // if !word.is_empty() {
// print(word); // print(word);
// } // }

View file

@ -1820,13 +1820,13 @@ fn print(_: &str) {}
fn bar() { fn bar() {
{ {
let word = "안녕하세요"; let word: &str = "안녕하세요";
if !word.is_empty() { if !word.is_empty() {
print(word); print(word);
} }
}; };
{ {
let word = "여러분"; let word: &str = "여러분";
if !word.is_empty() { if !word.is_empty() {
print(word); print(word);
} }

View file

@ -19,7 +19,7 @@ struct Foo<'lt, T, const C: usize> where $0 {}
en Enum Enum en Enum Enum
ma makro!() macro_rules! makro ma makro!() macro_rules! makro
md module md module
st Foo<> Foo<'static, {unknown}, _> st Foo<> Foo<'{error}, {unknown}, _>
st Record Record st Record Record
st Tuple Tuple st Tuple Tuple
st Unit Unit st Unit Unit
@ -92,7 +92,7 @@ struct Foo<'lt, T, const C: usize> where for<'a> $0 {}
en Enum Enum en Enum Enum
ma makro!() macro_rules! makro ma makro!() macro_rules! makro
md module md module
st Foo<> Foo<'static, {unknown}, _> st Foo<> Foo<'{error}, {unknown}, _>
st Record Record st Record Record
st Tuple Tuple st Tuple Tuple
st Unit Unit st Unit Unit

View file

@ -20,8 +20,8 @@ struct Foo<'lt, T, const C: usize> {
en Enum Enum en Enum Enum
ma makro!() macro_rules! makro ma makro!() macro_rules! makro
md module md module
sp Self Foo<'static, {unknown}, _> sp Self Foo<'{error}, {unknown}, _>
st Foo<> Foo<'static, {unknown}, _> st Foo<> Foo<'{error}, {unknown}, _>
st Record Record st Record Record
st Tuple Tuple st Tuple Tuple
st Unit Unit st Unit Unit
@ -45,8 +45,8 @@ struct Foo<'lt, T, const C: usize>(f$0);
en Enum Enum en Enum Enum
ma makro!() macro_rules! makro ma makro!() macro_rules! makro
md module md module
sp Self Foo<'static, {unknown}, _> sp Self Foo<'{error}, {unknown}, _>
st Foo<> Foo<'static, {unknown}, _> st Foo<> Foo<'{error}, {unknown}, _>
st Record Record st Record Record
st Tuple Tuple st Tuple Tuple
st Unit Unit st Unit Unit