Skip to content

Commit b592d57

Browse files
committed
libsyntax: Make include_bin! generate fixed-length vectors.
This is so that we don't generate 170,000-line LLVM functions in Servo.
1 parent ca06070 commit b592d57

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libsyntax/ext/source_util.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import base::*;
22
import ast;
33
import codemap::span;
44
import print::pprust;
5-
import build::{mk_uint,mk_u8,mk_uniq_str,mk_uniq_vec_e};
5+
import build::{mk_base_vec_e,mk_uint,mk_u8,mk_uniq_str};
66

77
export expand_line;
88
export expand_col;
@@ -91,7 +91,7 @@ fn expand_include_bin(cx: ext_ctxt, sp: codemap::span, arg: ast::mac_arg,
9191
let u8_exprs = vec::map(src, |char: u8| {
9292
mk_u8(cx, sp, char)
9393
});
94-
return mk_uniq_vec_e(cx, sp, u8_exprs);
94+
return mk_base_vec_e(cx, sp, u8_exprs);
9595
}
9696
result::err(e) => {
9797
cx.parse_sess().span_diagnostic.handler().fatal(e)

0 commit comments

Comments
 (0)