mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-12 18:07:40 +00:00
parent
f1bb6c2f46
commit
f71a0ea60b
@ -261,12 +261,12 @@ impl<'a, 'tcx> Checker<'a, 'tcx> {
|
|||||||
if self.tcx.sess.features.borrow().unmarked_api {
|
if self.tcx.sess.features.borrow().unmarked_api {
|
||||||
self.tcx.sess.span_warn(span, "use of unmarked library feature");
|
self.tcx.sess.span_warn(span, "use of unmarked library feature");
|
||||||
self.tcx.sess.span_note(span, "this is either a bug in the library you are \
|
self.tcx.sess.span_note(span, "this is either a bug in the library you are \
|
||||||
using and a bug in the compiler - please \
|
using or a bug in the compiler - please \
|
||||||
report it in both places");
|
report it in both places");
|
||||||
} else {
|
} else {
|
||||||
self.tcx.sess.span_err(span, "use of unmarked library feature");
|
self.tcx.sess.span_err(span, "use of unmarked library feature");
|
||||||
self.tcx.sess.span_note(span, "this is either a bug in the library you are \
|
self.tcx.sess.span_note(span, "this is either a bug in the library you are \
|
||||||
using and a bug in the compiler - please \
|
using or a bug in the compiler - please \
|
||||||
report it in both places");
|
report it in both places");
|
||||||
self.tcx.sess.span_note(span, "use #![feature(unmarked_api)] in the \
|
self.tcx.sess.span_note(span, "use #![feature(unmarked_api)] in the \
|
||||||
crate attributes to override this");
|
crate attributes to override this");
|
||||||
|
Loading…
Reference in New Issue
Block a user