Repository navigation
feat: added new adtdef queries to rustc_public - #133
Closed
adpthegreat wants to merge 1 commit into
Closed
adpthegreat wants to merge 1 commit into
adpthegreat wants to merge 1 commit into
Conversation
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 >.< |
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
…s, 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
JonathanBrouwer
added a commit
to JonathanBrouwer/rust
that referenced
this pull request
Nov 20, 2026
…s, 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
JonathanBrouwer
added a commit
to JonathanBrouwer/rust
that referenced
this pull request
Nov 21, 2026
…s, 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
Zalathar
added a commit
to Zalathar/rust
that referenced
this pull request
Nov 22, 2026
…s, 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
JonathanBrouwer
added a commit
to JonathanBrouwer/rust
that referenced
this pull request
Nov 22, 2026
…s, 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
JonathanBrouwer
added a commit
to JonathanBrouwer/rust
that referenced
this pull request
Nov 22, 2026
…s, 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
JonathanBrouwer
added a commit
to JonathanBrouwer/rust
that referenced
this pull request
Nov 22, 2026
…s, 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
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
closes #86
In order to fully close this task, currently working on a PR to include the new
AdtDefqueries in therustc_public_bridgehereAlso i'm having troubles finding an
AdtDefquery foris_anonymousall my research leads me to anonymous lifetimes which are notADTsAlso 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