Change Ty::Param to contain param ID
This commit is contained in:
@@ -697,7 +697,7 @@ fn test<U, T: Trait<U>>(t: T) {
|
||||
[71; 72) 't': T
|
||||
[77; 96) '{ ...d(); }': ()
|
||||
[83; 84) 't': T
|
||||
[83; 93) 't.method()': [missing name]
|
||||
[83; 93) 't.method()': U
|
||||
"###
|
||||
);
|
||||
}
|
||||
|
||||
@@ -822,8 +822,7 @@ fn test<T: ApplyL>() {
|
||||
"#,
|
||||
);
|
||||
// inside the generic function, the associated type gets normalized to a placeholder `ApplL::Out<T>` [https://rust-lang.github.io/rustc-guide/traits/associated-types.html#placeholder-associated-types].
|
||||
// FIXME: fix type parameter names going missing when going through Chalk
|
||||
assert_eq!(t, "ApplyL::Out<[missing name]>");
|
||||
assert_eq!(t, "ApplyL::Out<T>");
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
||||
Reference in New Issue
Block a user