Make use $crate a hard error

This commit is contained in:
mental 2020-01-01 14:33:53 +02:00
parent 9e6fb538f9
commit 37f4535d49

View file

@ -472,12 +472,7 @@ impl<'a, 'b> BuildReducedGraphVisitor<'a, 'b> {
self.r
.session
.struct_span_warn(item.span, "`$crate` may not be imported")
.note(
"`use $crate;` was erroneously allowed and \
will become a hard error in a future release",
)
.emit();
.struct_span_err(item.span, "`$crate` may not be imported");
}
}