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

implement clock_gettime on macos #2679

Merged
merged 7 commits into from
Nov 19, 2022
Merged

Conversation

RalfJung
Copy link
Member

@RalfJung RalfJung commented Nov 19, 2022

and pull in rustc changes so we can test this against rust-lang/rust#103594.

Fixes #2664

bors and others added 6 commits November 17, 2022 10:48
Attempt to reuse `Vec<T>` backing storage for `Rc/Arc<[T]>`

If a `Vec<T>` has sufficient capacity to store the inner `RcBox<[T]>`, we can just reuse the existing allocation and shift the elements up, instead of making a new allocation.
Support `#[track_caller]` on async fns

Adds `#[track_caller]` to the generator that is created when we desugar the async fn.

Fixes #78840

Open questions:
- What is the performance impact of adding `#[track_caller]` to every `GenFuture`'s `poll(...)` function, even if it's unused (i.e., the parent span does not set `#[track_caller]`)? We might need to set it only conditionally, if the indirection causes overhead we don't want.
[watchos] Dynamic linking is not allowed for watchos targets

Dynamic linking of all apple targets was (re-) enabled in PR #100636. However, dynamic linking is not allowed on WatchOS so this broke the build of standard library for WatchOS.

This change disables dynamic linking for WatchOS non-simulator targets.
Remove allow(rustc::potential_query_instability) from rustc_ast_lowering

Related to rust-lang/rust#84447.

`@cjgillot` Thanks for helping me!
@RalfJung
Copy link
Member Author

@bors r+

@bors
Copy link
Contributor

bors commented Nov 19, 2022

📌 Commit d6fdb5e has been approved by RalfJung

It is now in the queue for this repository.

@bors
Copy link
Contributor

bors commented Nov 19, 2022

⌛ Testing commit d6fdb5e with merge c8014de...

bors added a commit that referenced this pull request Nov 19, 2022
implement clock_gettime on macos

and pull in rustc changes so we can test this against rust-lang/rust#103594.
@bors
Copy link
Contributor

bors commented Nov 19, 2022

💔 Test failed - checks-actions

@RalfJung
Copy link
Member Author

@bors r+

@bors
Copy link
Contributor

bors commented Nov 19, 2022

📌 Commit 445c2f5 has been approved by RalfJung

It is now in the queue for this repository.

@bors
Copy link
Contributor

bors commented Nov 19, 2022

⌛ Testing commit 445c2f5 with merge a6a38dc...

@bors
Copy link
Contributor

bors commented Nov 19, 2022

☀️ Test successful - checks-actions
Approved by: RalfJung
Pushing a6a38dc to master...

@bors bors merged commit a6a38dc into rust-lang:master Nov 19, 2022
@RalfJung RalfJung deleted the clock_gettime branch November 20, 2022 06:48
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.

can't call foreign function: clock_gettime on aarch64-apple-darwin
2 participants