This commit replaces the use of `expect_local` and `hir().get` to fetch the identifier for a ADT with `item_name` - which works across crates. Signed-off-by: David Wood <david@davidtw.co>
13 lines
274 B
Rust
13 lines
274 B
Rust
// aux-build:issue-73112.rs
|
|
|
|
extern crate issue_73112;
|
|
|
|
fn main() {
|
|
use issue_73112::PageTable;
|
|
|
|
#[repr(C, packed)]
|
|
struct SomeStruct {
|
|
//~^ ERROR packed type cannot transitively contain a `#[repr(align)]` type [E0588]
|
|
page_table: PageTable,
|
|
}
|
|
}
|