Skip to content

#[deriving(ToStr)] doesn't work in std #8242

Closed
@Kimundi

Description

@Kimundi

Maybe I'm missing some magic incantation, but adding a #[deriving(ToStr)] to a type in std (here: rt::io::IoError) seems just to leads to these errors for me:

.../rust/src/libstd/rt/io/mod.rs:332:11: 332:16 error: unresolved import: could not find `to_str` in `std`.
.../rust/src/libstd/rt/io/mod.rs:332 #[deriving(ToStr)]
                                                ^~~~~
.../rust/src/libstd/rt/io/mod.rs:332:11: 332:16 error: use of undeclared module `::std::to_str`
.../rust/src/libstd/rt/io/mod.rs:332 #[deriving(ToStr)]
                                                ^~~~~
.../rust/src/libstd/rt/io/mod.rs:332:11: 332:16 error: attempt to implement a nonexistent trait `std::to_str::ToStr`
.../rust/src/libstd/rt/io/mod.rs:332 #[deriving(ToStr)]
                                                ^~~~~

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-syntaxextArea: Syntax extensions

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions