ogham / rust-ansi-term

Rust library for ANSI terminal colours and styles (bold, underline)

Home Page:https://crates.io/crates/ansi_term

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fails to compile on rustc 1.8.0 (db2939409 2016-04-11)

eFrane opened this issue · comments

ansi-term fails to build on Debian Stretch testing with above said rustc version.

The error output is:

.cargo/registry/src/github.com-88ac128001ac3a9a/ansi_term-0.9.0/src/lib.rs:189:5: 189:23 error: user-defined types or type parameters cannot shadow the primitive types [E0317]
.cargo/registry/src/github.com-88ac128001ac3a9a/ansi_term-0.9.0/src/lib.rs:189     type str : ?Sized;
                                                                                          ^~~~~~~~~~~~~~~~~~
.cargo/registry/src/github.com-88ac128001ac3a9a/ansi_term-0.9.0/src/lib.rs:189:5: 189:23 help: run `rustc --explain E0317` to see a detailed explanation

Eeeep this is bad, will fix

Any luck on this?

I have created a PR. It seems to fix the issue for me.

Update: With rust 1.14, the issue is gone.

I’m glad the original issue is gone, and I’ve merged that PR anyway, but I’m sorry that I never got back to doing this at the time!