mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-18 18:04:13 +00:00
Convert kinds to strings better for more usable error messages.
This commit is contained in:
parent
4ffe34cace
commit
8b12892ca2
@ -39,7 +39,7 @@ import freevars::freevar_entry;
|
||||
|
||||
fn kind_to_str(k: kind) -> str {
|
||||
let mut kinds = [];
|
||||
if ty::kind_lteq(k, kind_const()) {
|
||||
if ty::kind_lteq(kind_const(), k) {
|
||||
kinds += ["const"];
|
||||
}
|
||||
if ty::kind_can_be_copied(k) {
|
||||
|
Loading…
Reference in New Issue
Block a user