Fails to compile on rustc 1.8.0 (db2939409 2016-04-11)
eFrane opened this issue · comments
Stefan Graupner commented
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
Benjamin Sago commented
Eeeep this is bad, will fix
Pete Dietl commented
Any luck on this?
gtabares commented
I have created a PR. It seems to fix the issue for me.
Stefan Graupner commented
Update: With rust 1.14, the issue is gone.
Benjamin Sago commented
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!