Make use $crate a hard error
This commit is contained in:
parent
9e6fb538f9
commit
37f4535d49
1 changed files with 1 additions and 6 deletions
|
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue