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

libstd’s Duration refactor #18563

Closed
wants to merge 4 commits into from
Closed

Conversation

1-more
Copy link
Contributor

@1-more 1-more commented Nov 3, 2014

This commit changes the internal representation of Duration from

pub struct Duraion {
    secs: i64,
    nanos: i32
}

to

/// An absolute amount of time, independent of time zones
/// and calendars with tick precision. A single tick
/// represents 100 nanoseconds.
pub struct Duration(pub i64)

Closes #18166,#18416.

This commit changes the internal representation of Duration from

    pub struct Duraion {
        secs: i64,
        nanos: i32
    }

to

    /// An absolute amount of time, independent of time zones
    /// and calendars with tick precision. A single tick
    /// represents 100 nanoseconds.
    pub struct Duration(pub i64)

Closes rust-lang#18166,rust-lang#18416.
@1-more 1-more closed this Nov 6, 2014
@1-more 1-more deleted the duration_refactor branch November 6, 2014 07:52
lnicola pushed a commit to lnicola/rust that referenced this pull request Dec 11, 2024
…precedence

minor: run `FlycheckHandle::restart_workspace` when `check_workspace` true
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.

It is not possible to assign a Duration to a const variable
1 participant