Skip to content

Commit 2a767ee

Browse files
Remove unused methods from Handler
1 parent b304e60 commit 2a767ee

File tree

3 files changed

+0
-15
lines changed

3 files changed

+0
-15
lines changed

src/librustc/session/mod.rs

-6
Original file line numberDiff line numberDiff line change
@@ -365,12 +365,6 @@ impl Session {
365365
pub fn span_note_without_error<S: Into<MultiSpan>>(&self, sp: S, msg: &str) {
366366
self.diagnostic().span_note_without_error(sp, msg)
367367
}
368-
pub fn span_unimpl<S: Into<MultiSpan>>(&self, sp: S, msg: &str) -> ! {
369-
self.diagnostic().span_unimpl(sp, msg)
370-
}
371-
pub fn unimpl(&self, msg: &str) -> ! {
372-
self.diagnostic().unimpl(msg)
373-
}
374368

375369
pub fn buffer_lint<S: Into<MultiSpan>>(
376370
&self,

src/librustc_errors/lib.rs

-6
Original file line numberDiff line numberDiff line change
@@ -612,9 +612,6 @@ impl Handler {
612612
db.set_span(sp);
613613
db
614614
}
615-
pub fn span_unimpl<S: Into<MultiSpan>>(&self, sp: S, msg: &str) -> ! {
616-
self.span_bug(sp, &format!("unimplemented {}", msg));
617-
}
618615
pub fn failure(&self, msg: &str) {
619616
DiagnosticBuilder::new(self, FailureNote, msg).emit()
620617
}
@@ -648,9 +645,6 @@ impl Handler {
648645
db.emit();
649646
panic!(ExplicitBug);
650647
}
651-
pub fn unimpl(&self, msg: &str) -> ! {
652-
self.bug(&format!("unimplemented {}", msg));
653-
}
654648

655649
fn bump_err_count(&self) {
656650
self.err_count.fetch_add(1, SeqCst);

src/libsyntax/ext/base.rs

-3
Original file line numberDiff line numberDiff line change
@@ -1048,9 +1048,6 @@ impl<'a> ExtCtxt<'a> {
10481048
pub fn span_warn<S: Into<MultiSpan>>(&self, sp: S, msg: &str) {
10491049
self.parse_sess.span_diagnostic.span_warn(sp, msg);
10501050
}
1051-
pub fn span_unimpl<S: Into<MultiSpan>>(&self, sp: S, msg: &str) -> ! {
1052-
self.parse_sess.span_diagnostic.span_unimpl(sp, msg);
1053-
}
10541051
pub fn span_bug<S: Into<MultiSpan>>(&self, sp: S, msg: &str) -> ! {
10551052
self.parse_sess.span_diagnostic.span_bug(sp, msg);
10561053
}

0 commit comments

Comments
 (0)