ty::Alias: replace def_id: did with def_id#155063
ty::Alias: replace def_id: did with def_id#155063rust-bors[bot] merged 1 commit intorust-lang:mainfrom
ty::Alias: replace def_id: did with def_id#155063Conversation
|
|
|
HIR ty lowering was modified cc @fmease |
| // Skips type aliases, as they are meant to be transparent. | ||
| // FIXME(type_alias_impl_trait): can we require mentioning nested type aliases explicitly? | ||
| ty::Alias(alias_ty @ ty::AliasTy { kind: ty::Free { def_id }, .. }) | ||
| ty::Alias(ty::AliasTy { kind: ty::Free { def_id }, args, .. }) |
There was a problem hiding this comment.
I think the original issue calls for args: alias_ty_args. Using just args feels too broad.
| ty::Alias(ty::AliasTy { kind: ty::Free { def_id }, args: alias_ty_args, .. }) | ||
| if let Some(def_id) = def_id.as_local() => | ||
| { | ||
| if !self.seen.insert(def_id) { | ||
| return; | ||
| } | ||
| self.tcx.type_of(def_id).instantiate(self.tcx, alias_ty.args).visit_with(self); | ||
| self.tcx.type_of(def_id).instantiate(self.tcx, alias_ty_args).visit_with(self); |
There was a problem hiding this comment.
I would rather not split work of changing name @ ty::AliasTy per kind. #154941 already handles all of them (I think?) so please revert this.
|
Reminder, once the PR becomes ready for a review, use |
|
@rustbot ready |
ty::Freety::Alias: replace def_id: did with def_id
|
@bors r+ rollup |
|
@bors squash msg= |
This comment has been minimized.
This comment has been minimized.
|
🔨 4 commits were squashed into 53bf1ee. |
e18f23b to
53bf1ee
Compare
|
Hm. Let's try to set the commit message again... @bors squash msg=" |
|
❗ The PR has only one commit. |
|
I think the backticks ( ` ) made the commit message a little odd |
|
@josetorrs since bors isn't cooperating could you try renaming the commit instead? ^^' (you need to fetch the commit that bors squashed first) |
53bf1ee to
ec582d5
Compare
|
@WaffleLapkin should be good now |
|
@bors r+ rollup |
…uwer Rollup of 6 pull requests Successful merges: - #155057 (Update libc to v0.2.184) - #154967 (Test(lib/sync): Fix `test_rwlock_max_readers` for x86 Win7) - #154994 (don't leak internal temporaries from `dbg!`) - #155130 (Stabilize feature `isolate_most_least_significant_one`) - #154925 (Make Box/Rc/Arc::into_array allocator-aware (and add doctest)) - #155063 (`ty::Alias`: replace `def_id: did` with `def_id`)
…uwer Rollup of 6 pull requests Successful merges: - #155057 (Update libc to v0.2.184) - #154967 (Test(lib/sync): Fix `test_rwlock_max_readers` for x86 Win7) - #154994 (don't leak internal temporaries from `dbg!`) - #155130 (Stabilize feature `isolate_most_least_significant_one`) - #154925 (Make Box/Rc/Arc::into_array allocator-aware (and add doctest)) - #155063 (`ty::Alias`: replace `def_id: did` with `def_id`)
Rollup merge of #155063 - josetorrs:refactor-alias-free, r=WaffleLapkin `ty::Alias`: replace `def_id: did` with `def_id` related issue: #154941 tackling this task: - [x] replace def_id: did with def_id where possible r? @WaffleLapkin
View all comments
related issue: #154941
tackling this task:
r? @WaffleLapkin