Skip to content

Commit 37f4535

Browse files
committed
Make use $crate a hard error
1 parent 9e6fb53 commit 37f4535

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/librustc_resolve/build_reduced_graph.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -472,12 +472,7 @@ impl<'a, 'b> BuildReducedGraphVisitor<'a, 'b> {
472472

473473
self.r
474474
.session
475-
.struct_span_warn(item.span, "`$crate` may not be imported")
476-
.note(
477-
"`use $crate;` was erroneously allowed and \
478-
will become a hard error in a future release",
479-
)
480-
.emit();
475+
.struct_span_err(item.span, "`$crate` may not be imported");
481476
}
482477
}
483478

0 commit comments

Comments
 (0)