Skip to content

time::strptime() task failure with rustc 0.6 #7256

Closed

Description

@m10e

This issue was encountered with rustc 0.6 (the version in macports). I apologize if you only want issues opened after they've been confirmed on master. What is the policy wrt this? If such is the case, simply close this issue and I'll try to build master and see if it still exists.

Step to reproduce:
time::strptime(~"360", ~"%Y-%m-%d");

Expected result:
result::Err

Actual result:
rust: task failed at 'index out of bounds: the len is 3 but the index is 3', /opt/local/var/macports/build/_opt_mports_dports_lang_rust/rust/work/rust-0.6/src/libcore/str.rs:1833
rust: domain main @0x7f94a1008c10 root task failed

Thanks to all devs for your great work. Rust looks like a real contender!

Activity

  1. huonw commented on Jun 20, 2013

    @huonw
    Contributor
    rusti> extra::time::strptime("360", "%Y-%m-%d") 
    Err(~"Invalid year")

    Works for me on master.

  2. bstrie commented on Jun 20, 2013

    @bstrie
    Contributor

    @mblbruce Thanks for the report! We do like to make sure that bugs aren't present on master before filing them, but if you don't have a copy on-hand to test yourself feel free to join us in the IRC channel ( http://chat.mibbit.com/?server=irc.mozilla.org&channel=%23rust ) and ask one of us to try it out. It also shouldn't be too hard to build Rust yourself.

  3. added a commit that references this issue on Jun 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions