Skip to content

Commit 0c34cab

Browse files
committed
Take string slices
1 parent 9411547 commit 0c34cab

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

src/librustc/driver/session.rs

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -175,16 +175,16 @@ pub struct Session_ {
175175
pub type Session = @Session_;
176176

177177
pub impl Session_ {
178-
fn span_fatal(@self, sp: span, msg: ~str) -> ! {
178+
fn span_fatal(@self, sp: span, msg: &str) -> ! {
179179
self.span_diagnostic.span_fatal(sp, msg)
180180
}
181-
fn fatal(@self, msg: ~str) -> ! {
181+
fn fatal(@self, msg: &str) -> ! {
182182
self.span_diagnostic.handler().fatal(msg)
183183
}
184-
fn span_err(@self, sp: span, msg: ~str) {
184+
fn span_err(@self, sp: span, msg: &str) {
185185
self.span_diagnostic.span_err(sp, msg)
186186
}
187-
fn err(@self, msg: ~str) {
187+
fn err(@self, msg: &str) {
188188
self.span_diagnostic.handler().err(msg)
189189
}
190190
fn has_errors(@self) -> bool {
@@ -193,31 +193,31 @@ pub impl Session_ {
193193
fn abort_if_errors(@self) {
194194
self.span_diagnostic.handler().abort_if_errors()
195195
}
196-
fn span_warn(@self, sp: span, msg: ~str) {
196+
fn span_warn(@self, sp: span, msg: &str) {
197197
self.span_diagnostic.span_warn(sp, msg)
198198
}
199-
fn warn(@self, msg: ~str) {
199+
fn warn(@self, msg: &str) {
200200
self.span_diagnostic.handler().warn(msg)
201201
}
202-
fn span_note(@self, sp: span, msg: ~str) {
202+
fn span_note(@self, sp: span, msg: &str) {
203203
self.span_diagnostic.span_note(sp, msg)
204204
}
205-
fn note(@self, msg: ~str) {
205+
fn note(@self, msg: &str) {
206206
self.span_diagnostic.handler().note(msg)
207207
}
208-
fn span_bug(@self, sp: span, msg: ~str) -> ! {
208+
fn span_bug(@self, sp: span, msg: &str) -> ! {
209209
self.span_diagnostic.span_bug(sp, msg)
210210
}
211-
fn bug(@self, msg: ~str) -> ! {
211+
fn bug(@self, msg: &str) -> ! {
212212
self.span_diagnostic.handler().bug(msg)
213213
}
214-
fn span_unimpl(@self, sp: span, msg: ~str) -> ! {
214+
fn span_unimpl(@self, sp: span, msg: &str) -> ! {
215215
self.span_diagnostic.span_unimpl(sp, msg)
216216
}
217-
fn unimpl(@self, msg: ~str) -> ! {
217+
fn unimpl(@self, msg: &str) -> ! {
218218
self.span_diagnostic.handler().unimpl(msg)
219219
}
220-
fn span_lint_level(@self, level: lint::level, sp: span, msg: ~str) {
220+
fn span_lint_level(@self, level: lint::level, sp: span, msg: &str) {
221221
match level {
222222
lint::allow => { },
223223
lint::warn => self.span_warn(sp, msg),
@@ -230,7 +230,7 @@ pub impl Session_ {
230230
expr_id: ast::node_id,
231231
item_id: ast::node_id,
232232
span: span,
233-
msg: ~str) {
233+
msg: &str) {
234234
let level = lint::get_lint_settings_level(
235235
self.lint_settings, lint_mode, expr_id, item_id);
236236
self.span_lint_level(level, span, msg);

0 commit comments

Comments
 (0)