Skip to content

Conversation

martin-g
Copy link
Contributor

Motivation

There are few minor errors in the last entries in tokio/CHANGELOG.md

Solution

  • Close the tick for OnceLock to fix Markdown formatting
  • Add missing links for 2 PRs
  • Fix the name of a field/method in TaskMeta (there is no "spawn_location at
    pub struct TaskMeta<'a> {
    /// The opaque ID of the task.
    pub(crate) id: super::task::Id,
    /// The location where the task was spawned.
    #[cfg_attr(not(tokio_unstable), allow(unreachable_pub, dead_code))]
    pub(crate) spawned_at: crate::runtime::task::SpawnLocation,
    pub(crate) _phantom: PhantomData<&'a ()>,
    }
    impl<'a> TaskMeta<'a> {
    /// Return the opaque ID of the task.
    #[cfg_attr(not(tokio_unstable), allow(unreachable_pub, dead_code))]
    pub fn id(&self) -> super::task::Id {
    self.id
    }
    /// Return the source code location where the task was spawned.
    #[cfg(tokio_unstable)]
    pub fn spawned_at(&self) -> &'static std::panic::Location<'static> {
    self.spawned_at.0
    }
    }
    (current master)

* Close the tick for OnceLock to fix Markdown formatting
* Add missing links for 2 PRs
* Fix the name of a field/method in TaskMeta (there is no
  "spawn_location at
  https://github.com/tokio-rs/tokio/blob/7a0ca807be828606b14cff2c9a3d150ff9d999ce/tokio/src/runtime/task_hooks.rs#L59-L80
  (current master)
@Darksonn Darksonn added the A-tokio Area: The main tokio crate label Sep 11, 2025
Copy link
Contributor

@Darksonn Darksonn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you.

@Darksonn Darksonn enabled auto-merge (squash) September 11, 2025 09:48
@Darksonn Darksonn merged commit 637fc1d into tokio-rs:master Sep 11, 2025
95 checks passed
@martin-g martin-g deleted the typos-in-changelog branch September 11, 2025 10:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-tokio Area: The main tokio crate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants