Update deprecated rustc_hir imports - #163170
Conversation
|
This PR changes MIR cc @oli-obk, @RalfJung, @JakobDegen, @vakaras Some changes occurred in compiler/rustc_passes/src/check_attr.rs cc @jdonszelmann, @JonathanBrouwer
cc @rust-lang/clippy Some changes occurred in compiler/rustc_ast_lowering/src/format.rs cc @m-ou-se These commits modify the If this was unintentional then you should revert the changes before this PR is merged. |
|
r? @oli-obk rustbot has assigned @oli-obk. Use Why was this reviewer chosen?The reviewer was selected based on:
|
|
|
||
| struct AdditionInfo { | ||
| pub equals: fn(&hir::Attribute) -> bool, | ||
| pub equals: fn(&rustc_attr_ir::Attribute) -> bool, |
There was a problem hiding this comment.
Writing that out everywhere seems unfortunate. Maybe just import them?
There was a problem hiding this comment.
I would do that elsewhere but this is rustc_ast_lowering, and the convention there is that generally there's an use rustc_ast::*; at the top of the file, so a bare Attribute would be ambiguous.
|
Is there some previous work or an issue? If so pls link it from the main post |
|
|
@bors r+ rollup=iffy |
Update deprecated rustc_hir imports Followup to rust-lang#160336 That's ~half of them, I'm not doing it all in one go to reduce conflicts.
This comment has been minimized.
This comment has been minimized.
|
This PR was rebased onto a different main commit. Here's a range-diff highlighting what actually changed. Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers. |
|
@bors r=oli-obk |
Rollup of 7 pull requests Successful merges: - #163170 (Update deprecated rustc_hir imports) - #156882 (alloc: stabilise `Allocator`) - #163121 (Borrow the destination place with a raw pointer in MIR inlining) - #162824 (link the offload with in-tree lld if possible) - #163018 (implement (OnceLock,LazyLock)::(get_unchecked,get_unchecked_mut)) - #163171 (Make it clear what the alignment needs to be for `deallocate`) - #163176 (Test unused lifetime params for 'type' and 'union')
Followup to #160336
That's ~half of them, I'm not doing it all in one go to reduce conflicts.