Skip to content

Update timespec comments to say "nanoseconds" - #3182

Closed
cpeterso wants to merge 1 commit into
rust-lang:masterfrom
cpeterso:7e0eadc0488f3802587ec41edab9db3550a6018f
Closed

Update timespec comments to say "nanoseconds"#3182
cpeterso wants to merge 1 commit into
rust-lang:masterfrom
cpeterso:7e0eadc0488f3802587ec41edab9db3550a6018f

Conversation

@cpeterso

Copy link
Copy Markdown
Contributor

timespec uses nanoseconds, but its comments still refer to (timeval's) microseconds.

@brson

Copy link
Copy Markdown
Contributor

Thanks! I've pushed this commit to the incoming branch. It will show up on master sometime this week.

@brsonbrson closed this Aug 11, 2012
RalfJung pushed a commit to RalfJung/rust that referenced this pull request Nov 25, 2023
RalfJung pushed a commit to RalfJung/rust that referenced this pull request Nov 25, 2023
jaisnan pushed a commit to jaisnan/rust-dev that referenced this pull request Jul 29, 2024
typed_swap needs to be a no-op on ZSTs as pointers to those have an
arbitrary value in Kani.
Resolves: rust-lang#3182
U007D pushed a commit to U007D/rust-mos that referenced this pull request Aug 21, 2026
4280: Add documents owner for ImplDef and SourceFile r=matklad a=edwin0cheng
When working on rust-lang#3182, I found that `ImplDef` and `SourceFile` do not implemet `DocCommentsOwer` trait, and I tested it in `cargo doc` that `impl` could has some doc-comments.
I am not so sure about `SourceFile` case, but in theory if that file is a crate root, the doc comment of it should represent the whole crate documentation, right ?
Co-authored-by: Edwin Cheng <edwin0cheng@gmail.com>
U007D pushed a commit to U007D/rust-mos that referenced this pull request Aug 21, 2026
4660: Enable hover and autocomplete docs on macro generated items r=aloucks a=aloucks
Enable hover and autocomplete docs on macro generated items. This de-sugars doc comments into `doc` attributes in some cases, but not all. Comments and `doc` attributes are then merged together. This PR is essentially a partial implementation of what's being suggested rust-lang#3182, but it's not all the way there yet. ~I still need to add unit tests~, but I wanted to first get feedback on whether or not this was an acceptable path forward.
Fixesrust-lang#4564Fixesrust-lang#3984Fixesrust-lang#3180
Related rust-lang#3182
![macro_item_docs](https://user-images.githubusercontent.com/221559/83336760-15012200-a284-11ea-8d0d-b6a615850044.gif)
Co-authored-by: Aaron Loucks <aloucks@cofront.net>
U007D pushed a commit to U007D/rust-mos that referenced this pull request Aug 21, 2026
6750: Remove documentation query, move doc handling to attributes r=matklad a=Veykril
Fixesrust-lang#3182
Removes the documentation query in favor of `Attrs::docs`. Attrs already handlded doc comments partially but the alloc saving check was wrong so it only worked when other attributes existed as well. Unfortunately the `new` constructor has to do an intermediate allocation now because we need to keep the order of mixed doc attributes and doc comments.
I've also partially adjusted the `hover` module to have its tests check the changes, it still has some `HasSource` trait usage due to the `ShortLabel` trait usage, as that is only implemented on the Ast parts and not the Hir, should this ideally be implemented for the Hir types as well?(would be a follow up PR of course)
Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
Sign up for freeto 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.

2 participants

@cpeterso@brson