mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-22 11:53:44 +00:00

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();
|
|
}
|