Skip to content

feat: added new adtdef queries to rustc_public - #133

Closed
adpthegreat wants to merge 1 commit into
rust-lang:mainfrom
adpthegreat:add_adtdef_queries
Closed

adpthegreat wants to merge 1 commit into
rust-lang:mainfrom
adpthegreat:add_adtdef_queries

Conversation

@adpthegreat

@adpthegreat adpthegreat commented Nov 14, 2026 •

Copy link
Copy Markdown

closes #86

In order to fully close this task, currently working on a PR to include the new AdtDef queries in the rustc_public_bridge here

Also i'm having troubles finding an AdtDef query for is_anonymous all my research leads me to anonymous lifetimes which are not ADTs

Also more AdtDef queries such as is_fundamental is_unsafe_pinned is_pin is_pin_project is_field_representing_type can be added to add support for more language items, can i add them too?

@makai410 @celinval

@makai410

Copy link
Copy Markdown
Member

Hi @adpthegreat, thank you for working on this! I'm sorry for the confusion, but please send your PR to rust-lang/rust. Currently we're developing rustc_public in rustc, and working on moving it to this repo, but our sync CI is not ready yet >.<

@adpthegreat

Copy link
Copy Markdown
Author

Okay i've made the pr @makai410 rust-lang/rust#166012 thank you

JonathanBrouwer added a commit to JonathanBrouwer/rust that referenced this pull request Nov 20, 2026
JonathanBrouwer added a commit to JonathanBrouwer/rust that referenced this pull request Nov 20, 2026
JonathanBrouwer added a commit to JonathanBrouwer/rust that referenced this pull request Nov 21, 2026
Zalathar added a commit to Zalathar/rust that referenced this pull request Nov 22, 2026
JonathanBrouwer added a commit to JonathanBrouwer/rust that referenced this pull request Nov 22, 2026
JonathanBrouwer added a commit to JonathanBrouwer/rust that referenced this pull request Nov 22, 2026
JonathanBrouwer added a commit to JonathanBrouwer/rust that referenced this pull request Nov 22, 2026
rust-bors Bot pushed a commit to rust-lang/rust that referenced this pull request Nov 22, 2026
Rollup merge of #166012 - adpthegreat:add_more_adtdef_queries, r=makai410

Added more queries to AdtDef in rustc_public to check for rust language types

Closes  rust-lang/rustc_public#86 was redirected to make a pr to this repo here rust-lang/rustc_public#133

No llm was used in the generation of this PR

Also i'm having troubles finding an `AdtDef` query for `is_anonymous` all my research leads me to anonymous lifetimes which are not `ADT`s

Also [more](https://github.com/rust-lang/rust/blob/1a4d65fa9d3ff3990d766c52e741c7027ffa4fc6/compiler/rustc_middle/src/ty/adt.rs#L524) AdtDef queries such as [is_fundamental](https://github.com/rust-lang/rust/blob/1a4d65fa9d3ff3990d766c52e741c7027ffa4fc6/compiler/rustc_middle/src/ty/adt.rs#L500) [is_unsafe_pinned](https://github.com/rust-lang/rust/blob/1a4d65fa9d3ff3990d766c52e741c7027ffa4fc6/compiler/rustc_middle/src/ty/adt.rs#L524) [is_pin](https://github.com/rust-lang/rust/blob/1a4d65fa9d3ff3990d766c52e741c7027ffa4fc6/compiler/rustc_middle/src/ty/adt.rs#L536) [is_pin_project](https://github.com/rust-lang/rust/blob/1a4d65fa9d3ff3990d766c52e741c7027ffa4fc6/compiler/rustc_middle/src/ty/adt.rs#L543) [is_field_representing_type](https://github.com/rust-lang/rust/blob/1a4d65fa9d3ff3990d766c52e741c7027ffa4fc6/compiler/rustc_middle/src/ty/adt.rs#L547) can be added to add support for more language items, can i add them too?

@makai410 @celinval
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add more queries to AdtDef to check for rust language types

2 participants