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

unsafe-ness not visible in library reference doc #3804

Closed
dckc opened this issue Oct 18, 2012 · 3 comments
Closed

unsafe-ness not visible in library reference doc #3804

dckc opened this issue Oct 18, 2012 · 3 comments
Assignees
Labels
T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.
Milestone

Comments

@dckc
Copy link
Contributor

dckc commented Oct 18, 2012

local_data.rs line 55 declares this function unsafe:

pub unsafe fn local_data_get<T: Owned>(

but the docs for task_local_data doesn't show the unsafe keyword:

fn local_data_get<T: Owned>(key: LocalDataKey<T>) -> Option<@T>

Is this a rustdoc limitation?

@brson
Copy link
Contributor

brson commented Oct 22, 2012

Also pure.

@dckc
Copy link
Contributor Author

dckc commented Sep 24, 2013

I saw the news about rustdoc_ng in "This week in Rust", and now I see this was closed 6 months ago, but it doesn't look fixed to me:

https://github.com/mozilla/rust/blob/master/src/libstd/local_data.rs#L92 says unsafe
http://static.rust-lang.org/doc/master/std/local_data/fn.get_local_map.html doesn't

@alexcrichton
Copy link
Member

You are correct! Thanks for pointing this out. Reopening.

@alexcrichton alexcrichton reopened this Sep 24, 2013
@ghost ghost assigned alexcrichton Sep 24, 2013
alexcrichton added a commit to alexcrichton/rust that referenced this issue Sep 24, 2013
bors added a commit to rust-lang-ci/rust that referenced this issue Oct 24, 2020
allow refs in our constant folder

This helps with rust-lang#3804 (but won't completely fix it).

---

changelog: none
bors pushed a commit to rust-lang-ci/rust that referenced this issue May 15, 2021
RalfJung pushed a commit to RalfJung/rust that referenced this issue Aug 30, 2024
Support blocking for epoll

This PR enabled epoll to have blocking operation.

The changes introduced by this PR are:
- Refactored part of the logic in ``epoll_wait`` to ``blocking_epoll_callback``
- Added a new field ``thread_ids`` in ``Epoll`` for blocked thread ids
- Added a new ``BlockReason::Epoll``
RalfJung pushed a commit to RalfJung/rust that referenced this issue Aug 30, 2024
Add tokio io test

After rust-lang#3804 landed, these tests passed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.
Projects
None yet
Development

No branches or pull requests

4 participants