about summary refs log tree commit diff
path: root/compiler/rustc_driver_impl/src
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-09-05 03:47:44 +0200
committerGitHub <noreply@github.com>2024-09-05 03:47:44 +0200
commitc7c3ada95a33f0622be77d4cc0485e963cc4799c (patch)
tree0af4a036901182dc2688dec7db96557590f8e97b /compiler/rustc_driver_impl/src
parent94eea0abff47215aa3314aea75e9986117762533 (diff)
parent22bd31977294f0c948409ec24034895f14b59ade (diff)
downloadrust-c7c3ada95a33f0622be77d4cc0485e963cc4799c.tar.gz
rust-c7c3ada95a33f0622be77d4cc0485e963cc4799c.zip
Rollup merge of #129919 - kevinmehall:waker-getters, r=dtolnay
Stabilize `waker_getters`

Tracking issue: #96992

FCP completed on the tracking issue a while ago. It's not clear whether the libs-api team wanted the `RawWaker` methods moved to `Waker` or went back to the current API after further discussion. `@Amanieu` [wrote "This is just waiting for someone to submit a stabilization PR."](https://github.com/rust-lang/rust/issues/96992#issuecomment-2213685218) so I'm doing just that in hopes of nudging this along.

Edit: Moved the `data` and `vtable` methods from `RawWaker` to `Waker` and added `Waker::new` per https://github.com/rust-lang/rust/issues/96992#issuecomment-1941998046

```rs
impl Waker {
  pub const unsafe fn new(data: *const (), vtable: &'static RawWakerVTable) -> Self;
  pub fn data(&self) -> *const ();
  pub fn vtable(&self) -> &'static RawWakerVTable;
}
```

Closes #96992
Diffstat (limited to 'compiler/rustc_driver_impl/src')
0 files changed, 0 insertions, 0 deletions