mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 23:34:48 +00:00
5d97724002
A refactoring in #117076 changed the `DefIdVisitorSkeleton` to avoid calling `visit_projection_ty` for `ty::Projection` aliases, and instead just iterate over the args - this makes sense, as `visit_projection_ty` will indirectly visit all of the same args, but in doing so, will also create a `TraitRef` containing the trait's `DefId`, which also gets visited. The trait's `DefId` isn't visited when we only visit the arguments without separating them into `TraitRef` and own args first. Signed-off-by: David Wood <david@davidtw.co>
9 lines
139 B
Rust
9 lines
139 B
Rust
// aux-build:issue-117997.rs
|
|
// build-pass
|
|
|
|
extern crate issue_117997;
|
|
|
|
pub fn main() {
|
|
issue_117997::get_assoc().method_on_assoc();
|
|
}
|