Clean up minor bits

This commit is contained in:
Igor Matuszewski 2019-05-13 11:41:24 +02:00
parent c1c60d292e
commit 5b17a5e30a
2 changed files with 2 additions and 2 deletions

View File

@ -130,7 +130,7 @@ fn is_eof(&self) -> bool {
self.ch.is_none()
}
fn fail_unterminated_raw_string(&self, pos: BytePos, hash_count: u16) {
fn fail_unterminated_raw_string(&self, pos: BytePos, hash_count: u16) -> ! {
let mut err = self.struct_span_fatal(pos, pos, "unterminated raw string");
err.span_label(self.mk_sp(pos, pos), "unterminated raw string");

View File

@ -1,4 +1,4 @@
//! Utilities for validating string and char literals and turning them into
//! Utilities for validating string and char literals and turning them into
//! values they represent.
use std::str::Chars;