Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

collecting lang items thru AST #116470

Closed

Conversation

RickleAndMortimer
Copy link
Contributor

@RickleAndMortimer RickleAndMortimer commented Oct 6, 2023

see #115178 for more information

@rustbot
Copy link
Collaborator

rustbot commented Oct 6, 2023

r? @davidtwco

(rustbot has picked a reviewer for you, use r? to override)

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Oct 6, 2023
@RickleAndMortimer
Copy link
Contributor Author

r? cjgillot

@rustbot rustbot assigned cjgillot and unassigned davidtwco Oct 6, 2023
@RickleAndMortimer RickleAndMortimer changed the title getting lang items thru AST collecting lang items thru AST Oct 6, 2023
@rust-log-analyzer

This comment has been minimized.

@rust-log-analyzer

This comment has been minimized.

@rust-log-analyzer

This comment has been minimized.

@rust-log-analyzer
Copy link
Collaborator

The job x86_64-gnu-llvm-15 failed! Check out the build log: (web) (plain)

Click to see the possible cause of the failure (guessed by this bot)
GITHUB_ACTION=__run_7
GITHUB_ACTIONS=true
GITHUB_ACTION_REF=
GITHUB_ACTION_REPOSITORY=
GITHUB_ACTOR=RickleAndMortimer
GITHUB_API_URL=https://api.github.com
GITHUB_BASE_REF=master
GITHUB_ENV=/home/runner/work/_temp/_runner_file_commands/set_env_b9759aa6-7eed-4c4d-b676-9bff5e66500e
GITHUB_EVENT_NAME=pull_request
GITHUB_EVENT_NAME=pull_request
GITHUB_EVENT_PATH=/home/runner/work/_temp/_github_workflow/event.json
GITHUB_GRAPHQL_URL=https://api.github.com/graphql
GITHUB_HEAD_REF=ast_hir_lowering
GITHUB_JOB=pr
GITHUB_PATH=/home/runner/work/_temp/_runner_file_commands/add_path_b9759aa6-7eed-4c4d-b676-9bff5e66500e
GITHUB_REF=refs/pull/116470/merge
GITHUB_REF_NAME=116470/merge
GITHUB_REF_PROTECTED=false
---
GITHUB_SERVER_URL=https://github.com
GITHUB_SHA=ede57ae72a4408b5b6c354041ee03ce841968614
GITHUB_STATE=/home/runner/work/_temp/_runner_file_commands/save_state_b9759aa6-7eed-4c4d-b676-9bff5e66500e
GITHUB_STEP_SUMMARY=/home/runner/work/_temp/_runner_file_commands/step_summary_b9759aa6-7eed-4c4d-b676-9bff5e66500e
GITHUB_TRIGGERING_ACTOR=RickleAndMortimer
GITHUB_WORKFLOW_REF=rust-lang/rust/.github/workflows/ci.yml@refs/pull/116470/merge
GITHUB_WORKFLOW_SHA=ede57ae72a4408b5b6c354041ee03ce841968614
GITHUB_WORKSPACE=/home/runner/work/rust/rust
GOROOT_1_19_X64=/opt/hostedtoolcache/go/1.19.13/x64
---
   Compiling memchr v2.5.0
   Compiling std v0.0.0 (/checkout/library/std)
   Compiling compiler_builtins v0.1.101
   Compiling unwind v0.0.0 (/checkout/library/unwind)
running lower_to_hir
running visit_crate
exiting visit_crate
exiting lower_to_hir
warning: default bound relaxed for a type parameter, but this does nothing because the given bound is not a default; only `?Sized` is supported
   |
   |
50 | pub struct ManuallyDrop<T: ?Sized> {


warning: default bound relaxed for a type parameter, but this does nothing because the given bound is not a default; only `?Sized` is supported
   --> library/core/src/ptr/metadata.rs:146:22
    |
146 | struct PtrComponents<T: ?Sized> {


warning: default bound relaxed for a type parameter, but this does nothing because the given bound is not a default; only `?Sized` is supported
    |
    |
789 | pub struct PhantomData<T: ?Sized>;


warning: default bound relaxed for a type parameter, but this does nothing because the given bound is not a default; only `?Sized` is supported
   |
   |
72 | pub struct NonNull<T: ?Sized> {


warning: default bound relaxed for a type parameter, but this does nothing because the given bound is not a default; only `?Sized` is supported
     |
     |
2025 | pub struct UnsafeCell<T: ?Sized> {


warning: default bound relaxed for a type parameter, but this does nothing because the given bound is not a default; only `?Sized` is supported
    |
    |
294 | pub struct Cell<T: ?Sized> {


warning: default bound relaxed for a type parameter, but this does nothing because the given bound is not a default; only `?Sized` is supported
   |
   |
72 | pub unsafe fn drop_in_place<T: ?Sized>(to_drop: *mut T) {


warning: default bound relaxed for a type parameter, but this does nothing because the given bound is not a default; only `?Sized` is supported
     |
     |
1026 |     pub fn size_of_val<T: ?Sized>(_: *const T) -> usize;


warning: default bound relaxed for a type parameter, but this does nothing because the given bound is not a default; only `?Sized` is supported
     |
     |
1032 |     pub fn min_align_of_val<T: ?Sized>(_: *const T) -> usize;


warning: default bound relaxed for a type parameter, but this does nothing because the given bound is not a default; only `?Sized` is supported
     |
     |
1045 |     pub fn type_name<T: ?Sized>() -> &'static str;


warning: default bound relaxed for a type parameter, but this does nothing because the given bound is not a default; only `?Sized` is supported
     |
     |
1060 |     pub fn type_id<T: ?Sized + 'static>() -> u128;


warning: default bound relaxed for a type parameter, but this does nothing because the given bound is not a default; only `?Sized` is supported
     |
     |
1113 |     pub fn forget<T: ?Sized>(_: T);


warning: default bound relaxed for a type parameter, but this does nothing because the given bound is not a default; only `?Sized` is supported
     |
     |
1411 |     pub fn needs_drop<T: ?Sized>() -> bool;


warning: default bound relaxed for a type parameter, but this does nothing because the given bound is not a default; only `?Sized` is supported
    |
    |
117 | impl<T: ?Sized> ManuallyDrop<T> {


warning: default bound relaxed for a type parameter, but this does nothing because the given bound is not a default; only `?Sized` is supported
    |
    |
149 | impl<T: ?Sized> Deref for ManuallyDrop<T> {


warning: default bound relaxed for a type parameter, but this does nothing because the given bound is not a default; only `?Sized` is supported
    |
    |
158 | impl<T: ?Sized> DerefMut for ManuallyDrop<T> {


warning: default bound relaxed for a type parameter, but this does nothing because the given bound is not a default; only `?Sized` is supported
  --> library/core/src/mem/transmutability.rs:12:40
   |
12 | pub unsafe trait BikeshedIntrinsicFrom<Src, Context, const ASSUME: Assume = { Assume::NOTHING }>


warning: default bound relaxed for a type parameter, but this does nothing because the given bound is not a default; only `?Sized` is supported
    |
    |
158 | pub fn forget_unsized<T: ?Sized>(t: T) {


warning: default bound relaxed for a type parameter, but this does nothing because the given bound is not a default; only `?Sized` is supported
    |
    |
342 | pub const fn size_of_val<T: ?Sized>(val: &T) -> usize {


warning: default bound relaxed for a type parameter, but this does nothing because the given bound is not a default; only `?Sized` is supported
    |
    |
392 | pub const unsafe fn size_of_val_raw<T: ?Sized>(val: *const T) -> usize {


warning: default bound relaxed for a type parameter, but this does nothing because the given bound is not a default; only `?Sized` is supported
    |
    |
440 | pub fn min_align_of_val<T: ?Sized>(val: &T) -> usize {


warning: default bound relaxed for a type parameter, but this does nothing because the given bound is not a default; only `?Sized` is supported
    |
    |
488 | pub const fn align_of_val<T: ?Sized>(val: &T) -> usize {


warning: default bound relaxed for a type parameter, but this does nothing because the given bound is not a default; only `?Sized` is supported
    |
    |
534 | pub const unsafe fn align_of_val_raw<T: ?Sized>(val: *const T) -> usize {


warning: default bound relaxed for a type parameter, but this does nothing because the given bound is not a default; only `?Sized` is supported
    |
    |
600 | pub const fn needs_drop<T: ?Sized>() -> bool {


warning: default bound relaxed for a type parameter, but this does nothing because the given bound is not a default; only `?Sized` is supported
  --> library/core/src/ptr/metadata.rs:94:23
   |
94 | pub const fn metadata<T: ?Sized>(ptr: *const T) -> <T as Pointee>::Metadata {


warning: default bound relaxed for a type parameter, but this does nothing because the given bound is not a default; only `?Sized` is supported
   --> library/core/src/ptr/metadata.rs:111:29
    |
111 | pub const fn from_raw_parts<T: ?Sized>(


warning: default bound relaxed for a type parameter, but this does nothing because the given bound is not a default; only `?Sized` is supported
   --> library/core/src/ptr/metadata.rs:128:33
    |
128 | pub const fn from_raw_parts_mut<T: ?Sized>(


warning: default bound relaxed for a type parameter, but this does nothing because the given bound is not a default; only `?Sized` is supported
   --> library/core/src/ptr/metadata.rs:152:6
    |
152 | impl<T: ?Sized> Copy for PtrComponents<T> {}


warning: default bound relaxed for a type parameter, but this does nothing because the given bound is not a default; only `?Sized` is supported
   --> library/core/src/ptr/metadata.rs:155:6
    |
155 | impl<T: ?Sized> Clone for PtrComponents<T> {


warning: default bound relaxed for a type parameter, but this does nothing because the given bound is not a default; only `?Sized` is supported
   --> library/core/src/ptr/metadata.rs:179:24
    |
179 | pub struct DynMetadata<Dyn: ?Sized> {


warning: default bound relaxed for a type parameter, but this does nothing because the given bound is not a default; only `?Sized` is supported
   --> library/core/src/ptr/metadata.rs:192:6
    |
192 | impl<Dyn: ?Sized> DynMetadata<Dyn> {


warning: default bound relaxed for a type parameter, but this does nothing because the given bound is not a default; only `?Sized` is supported
   --> library/core/src/ptr/metadata.rs:223:13
    |
223 | unsafe impl<Dyn: ?Sized> Send for DynMetadata<Dyn> {}


warning: default bound relaxed for a type parameter, but this does nothing because the given bound is not a default; only `?Sized` is supported
   --> library/core/src/ptr/metadata.rs:224:13
    |
224 | unsafe impl<Dyn: ?Sized> Sync for DynMetadata<Dyn> {}


warning: default bound relaxed for a type parameter, but this does nothing because the given bound is not a default; only `?Sized` is supported
   --> library/core/src/ptr/metadata.rs:226:6
    |
226 | impl<Dyn: ?Sized> fmt::Debug for DynMetadata<Dyn> {


warning: default bound relaxed for a type parameter, but this does nothing because the given bound is not a default; only `?Sized` is supported
   --> library/core/src/ptr/metadata.rs:234:6
    |
234 | impl<Dyn: ?Sized> Unpin for DynMetadata<Dyn> {}


warning: default bound relaxed for a type parameter, but this does nothing because the given bound is not a default; only `?Sized` is supported
   --> library/core/src/ptr/metadata.rs:236:6
    |
236 | impl<Dyn: ?Sized> Copy for DynMetadata<Dyn> {}


warning: default bound relaxed for a type parameter, but this does nothing because the given bound is not a default; only `?Sized` is supported
   --> library/core/src/ptr/metadata.rs:238:6
    |
238 | impl<Dyn: ?Sized> Clone for DynMetadata<Dyn> {


warning: default bound relaxed for a type parameter, but this does nothing because the given bound is not a default; only `?Sized` is supported
   --> library/core/src/ptr/metadata.rs:245:6
    |
245 | impl<Dyn: ?Sized> Eq for DynMetadata<Dyn> {}


warning: default bound relaxed for a type parameter, but this does nothing because the given bound is not a default; only `?Sized` is supported
   --> library/core/src/ptr/metadata.rs:247:6
    |
247 | impl<Dyn: ?Sized> PartialEq for DynMetadata<Dyn> {


warning: default bound relaxed for a type parameter, but this does nothing because the given bound is not a default; only `?Sized` is supported
   --> library/core/src/ptr/metadata.rs:254:6
    |
254 | impl<Dyn: ?Sized> Ord for DynMetadata<Dyn> {


warning: default bound relaxed for a type parameter, but this does nothing because the given bound is not a default; only `?Sized` is supported
   --> library/core/src/ptr/metadata.rs:261:6
    |
261 | impl<Dyn: ?Sized> PartialOrd for DynMetadata<Dyn> {


warning: default bound relaxed for a type parameter, but this does nothing because the given bound is not a default; only `?Sized` is supported
   --> library/core/src/ptr/metadata.rs:268:6
    |
268 | impl<Dyn: ?Sized> Hash for DynMetadata<Dyn> {


warning: default bound relaxed for a type parameter, but this does nothing because the given bound is not a default; only `?Sized` is supported
   |
   |
79 | impl<T: ?Sized> !Send for NonNull<T> {}


warning: default bound relaxed for a type parameter, but this does nothing because the given bound is not a default; only `?Sized` is supported
   |
   |
84 | impl<T: ?Sized> !Sync for NonNull<T> {}


warning: default bound relaxed for a type parameter, but this does nothing because the given bound is not a default; only `?Sized` is supported
    |
    |
189 | impl<T: ?Sized> NonNull<T> {


warning: default bound relaxed for a type parameter, but this does nothing because the given bound is not a default; only `?Sized` is supported
    |
    |
750 | impl<T: ?Sized> Clone for NonNull<T> {


warning: default bound relaxed for a type parameter, but this does nothing because the given bound is not a default; only `?Sized` is supported
    |
    |
758 | impl<T: ?Sized> Copy for NonNull<T> {}


warning: default bound relaxed for a type parameter, but this does nothing because the given bound is not a default; only `?Sized` is supported
    |
    |
761 | impl<T: ?Sized, U: ?Sized> CoerceUnsized<NonNull<U>> for NonNull<T> where T: Unsize<U> {}


warning: default bound relaxed for a type parameter, but this does nothing because the given bound is not a default; only `?Sized` is supported
    |
    |
761 | impl<T: ?Sized, U: ?Sized> CoerceUnsized<NonNull<U>> for NonNull<T> where T: Unsize<U> {}


warning: default bound relaxed for a type parameter, but this does nothing because the given bound is not a default; only `?Sized` is supported
    |
    |
764 | impl<T: ?Sized, U: ?Sized> DispatchFromDyn<NonNull<U>> for NonNull<T> where T: Unsize<U> {}


warning: default bound relaxed for a type parameter, but this does nothing because the given bound is not a default; only `?Sized` is supported
    |
    |
764 | impl<T: ?Sized, U: ?Sized> DispatchFromDyn<NonNull<U>> for NonNull<T> where T: Unsize<U> {}


warning: default bound relaxed for a type parameter, but this does nothing because the given bound is not a default; only `?Sized` is supported
    |
    |
767 | impl<T: ?Sized> fmt::Debug for NonNull<T> {


warning: default bound relaxed for a type parameter, but this does nothing because the given bound is not a default; only `?Sized` is supported
    |
    |
774 | impl<T: ?Sized> fmt::Pointer for NonNull<T> {


warning: default bound relaxed for a type parameter, but this does nothing because the given bound is not a default; only `?Sized` is supported
    |
    |
781 | impl<T: ?Sized> Eq for NonNull<T> {}


warning: default bound relaxed for a type parameter, but this does nothing because the given bound is not a default; only `?Sized` is supported
    |
    |
784 | impl<T: ?Sized> PartialEq for NonNull<T> {


warning: default bound relaxed for a type parameter, but this does nothing because the given bound is not a default; only `?Sized` is supported
    |
    |
792 | impl<T: ?Sized> Ord for NonNull<T> {


warning: default bound relaxed for a type parameter, but this does nothing because the given bound is not a default; only `?Sized` is supported
    |
    |
800 | impl<T: ?Sized> PartialOrd for NonNull<T> {


warning: default bound relaxed for a type parameter, but this does nothing because the given bound is not a default; only `?Sized` is supported
    |
    |
808 | impl<T: ?Sized> hash::Hash for NonNull<T> {


warning: default bound relaxed for a type parameter, but this does nothing because the given bound is not a default; only `?Sized` is supported
    |
    |
816 | impl<T: ?Sized> From<Unique<T>> for NonNull<T> {


warning: default bound relaxed for a type parameter, but this does nothing because the given bound is not a default; only `?Sized` is supported
    |
    |
826 | impl<T: ?Sized> From<&mut T> for NonNull<T> {


warning: default bound relaxed for a type parameter, but this does nothing because the given bound is not a default; only `?Sized` is supported
    |
    |
838 | impl<T: ?Sized> From<&T> for NonNull<T> {


warning: default bound relaxed for a type parameter, but this does nothing because the given bound is not a default; only `?Sized` is supported
  --> library/core/src/ptr/unique.rs:37:19
   |
37 | pub struct Unique<T: ?Sized> {


warning: default bound relaxed for a type parameter, but this does nothing because the given bound is not a default; only `?Sized` is supported
  --> library/core/src/ptr/unique.rs:52:13
   |
52 | unsafe impl<T: Send + ?Sized> Send for Unique<T> {}


warning: default bound relaxed for a type parameter, but this does nothing because the given bound is not a default; only `?Sized` is supported
  --> library/core/src/ptr/unique.rs:59:13
   |
59 | unsafe impl<T: Sync + ?Sized> Sync for Unique<T> {}


warning: default bound relaxed for a type parameter, but this does nothing because the given bound is not a default; only `?Sized` is supported
  --> library/core/src/ptr/unique.rs:81:6
   |
81 | impl<T: ?Sized> Unique<T> {


warning: default bound relaxed for a type parameter, but this does nothing because the given bound is not a default; only `?Sized` is supported
   --> library/core/src/ptr/unique.rs:147:6
    |
147 | impl<T: ?Sized> Clone for Unique<T> {


warning: default bound relaxed for a type parameter, but this does nothing because the given bound is not a default; only `?Sized` is supported
   --> library/core/src/ptr/unique.rs:155:6
    |
155 | impl<T: ?Sized> Copy for Unique<T> {}


warning: default bound relaxed for a type parameter, but this does nothing because the given bound is not a default; only `?Sized` is supported
   --> library/core/src/ptr/unique.rs:158:6
    |
158 | impl<T: ?Sized, U: ?Sized> CoerceUnsized<Unique<U>> for Unique<T> where T: Unsize<U> {}


warning: default bound relaxed for a type parameter, but this does nothing because the given bound is not a default; only `?Sized` is supported
   --> library/core/src/ptr/unique.rs:158:17
    |
158 | impl<T: ?Sized, U: ?Sized> CoerceUnsized<Unique<U>> for Unique<T> where T: Unsize<U> {}


warning: default bound relaxed for a type parameter, but this does nothing because the given bound is not a default; only `?Sized` is supported
   --> library/core/src/ptr/unique.rs:161:6
    |
161 | impl<T: ?Sized, U: ?Sized> DispatchFromDyn<Unique<U>> for Unique<T> where T: Unsize<U> {}


warning: default bound relaxed for a type parameter, but this does nothing because the given bound is not a default; only `?Sized` is supported
   --> library/core/src/ptr/unique.rs:161:17
    |
161 | impl<T: ?Sized, U: ?Sized> DispatchFromDyn<Unique<U>> for Unique<T> where T: Unsize<U> {}


warning: default bound relaxed for a type parameter, but this does nothing because the given bound is not a default; only `?Sized` is supported
   --> library/core/src/ptr/unique.rs:164:6
    |
164 | impl<T: ?Sized> fmt::Debug for Unique<T> {


warning: default bound relaxed for a type parameter, but this does nothing because the given bound is not a default; only `?Sized` is supported
   --> library/core/src/ptr/unique.rs:171:6
    |
171 | impl<T: ?Sized> fmt::Pointer for Unique<T> {


warning: default bound relaxed for a type parameter, but this does nothing because the given bound is not a default; only `?Sized` is supported
   --> library/core/src/ptr/unique.rs:178:6
    |
178 | impl<T: ?Sized> From<&mut T> for Unique<T> {


warning: default bound relaxed for a type parameter, but this does nothing because the given bound is not a default; only `?Sized` is supported
   --> library/core/src/ptr/unique.rs:189:6
    |
189 | impl<T: ?Sized> From<NonNull<T>> for Unique<T> {


warning: default bound relaxed for a type parameter, but this does nothing because the given bound is not a default; only `?Sized` is supported
  |
  |
7 | impl<T: ?Sized> *const T {


warning: default bound relaxed for a type parameter, but this does nothing because the given bound is not a default; only `?Sized` is supported
   |
   |
96 |     pub const fn with_metadata_of<U>(self, meta: *const U) -> *const U


warning: default bound relaxed for a type parameter, but this does nothing because the given bound is not a default; only `?Sized` is supported
    |
    |
732 |     pub const unsafe fn byte_offset_from<U: ?Sized>(self, origin: *const U) -> isize {


warning: default bound relaxed for a type parameter, but this does nothing because the given bound is not a default; only `?Sized` is supported
     |
     |
1743 | impl<T: ?Sized> PartialEq for *const T {


warning: default bound relaxed for a type parameter, but this does nothing because the given bound is not a default; only `?Sized` is supported
     |
     |
1751 | impl<T: ?Sized> Eq for *const T {}


warning: default bound relaxed for a type parameter, but this does nothing because the given bound is not a default; only `?Sized` is supported
     |
     |
1755 | impl<T: ?Sized> Ord for *const T {


warning: default bound relaxed for a type parameter, but this does nothing because the given bound is not a default; only `?Sized` is supported
     |
     |
1769 | impl<T: ?Sized> PartialOrd for *const T {


@cjgillot cjgillot added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Oct 13, 2023
@bors
Copy link
Contributor

bors commented Oct 15, 2023

☔ The latest upstream changes (presumably #116688) made this pull request unmergeable. Please resolve the merge conflicts.

@compiler-errors
Copy link
Member

@RickleAndMortimer: Are you still working on this? If not, please let me know, since I would like to get this done sooner than later.

@RickleAndMortimer RickleAndMortimer deleted the ast_hir_lowering branch December 20, 2023 05:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants