Skip to content

Commit 8f57be5

Browse files
committed
rustc: Rename mk_codemap_handler to mk_handler
1 parent 77e95dc commit 8f57be5

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

src/cargo/cargo.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ fn load_pkg(filename: str) -> option::t<pkg> {
104104
let sess = @{
105105
cm: cm,
106106
mutable next_id: 0,
107-
diagnostic: diagnostic::mk_codemap_handler(cm, none)
107+
diagnostic: diagnostic::mk_handler(cm, none)
108108
};
109109
let c = parser::parse_crate_from_crate_file(filename, [], sess);
110110

src/comp/driver/diagnostic.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import codemap::span;
55

66
export emitter, emit;
77
export level, fatal, error, warning, note;
8-
export handler, mk_codemap_handler;
8+
export handler, mk_handler;
99

1010
type emitter = fn@(cmsp: option<(codemap::codemap, span)>,
1111
msg: str, lvl: level);
@@ -81,8 +81,8 @@ impl codemap_handler of handler for codemap_t {
8181
fn unimpl(msg: str) -> ! { self.bug("unimplemented " + msg); }
8282
}
8383

84-
fn mk_codemap_handler(cm: codemap::codemap,
85-
emitter: option<emitter>) -> handler {
84+
fn mk_handler(cm: codemap::codemap,
85+
emitter: option<emitter>) -> handler {
8686

8787
let emit = alt emitter {
8888
some(e) { e }

src/comp/driver/driver.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ fn build_session(sopts: @session::options, input: str,
462462
sopts.addl_lib_search_paths);
463463
let codemap = codemap::new_codemap();
464464
let diagnostic_handler =
465-
diagnostic::mk_codemap_handler(codemap, some(demitter));
465+
diagnostic::mk_handler(codemap, some(demitter));
466466
@{targ_cfg: target_cfg,
467467
opts: sopts,
468468
cstore: cstore,

src/fuzzer/fuzzer.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ fn check_variants_T<T: copy>(
262262
let str3 =
263263
as_str(bind pprust::print_crate(
264264
codemap,
265-
diagnostic::mk_codemap_handler(codemap, none),
265+
diagnostic::mk_handler(codemap, none),
266266
crate2,
267267
filename,
268268
io::string_reader(""), _,
@@ -419,7 +419,7 @@ fn parse_and_print(code: str) -> str {
419419
let sess = @{
420420
cm: cm,
421421
mutable next_id: 0,
422-
diagnostic: diagnostic::mk_codemap_handler(cm, none)
422+
diagnostic: diagnostic::mk_handler(cm, none)
423423
};
424424
write_file(filename, code);
425425
let crate = parser::parse_crate_from_source_str(
@@ -566,7 +566,7 @@ fn check_variants(files: [str], cx: context) {
566566
let sess = @{
567567
cm: cm,
568568
mutable next_id: 0,
569-
diagnostic: diagnostic::mk_codemap_handler(cm, none)
569+
diagnostic: diagnostic::mk_handler(cm, none)
570570
};
571571
let crate =
572572
parser::parse_crate_from_source_str(

src/rustdoc/rustdoc.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ fn main(argv: [str]) {
194194
let sess = @{
195195
cm: cm,
196196
mutable next_id: 0,
197-
diagnostic: diagnostic::mk_codemap_handler(cm, none)
197+
diagnostic: diagnostic::mk_handler(cm, none)
198198
};
199199
let rd = { ps: pprust::rust_printer(w), w: w };
200200
doc_header(rd, argv[1]);

0 commit comments

Comments
 (0)