@@ -57,7 +57,7 @@ fn expand_mod(cx: ext_ctxt, sp: span, arg: ast::mac_arg, _body: ast::mac_body)
57
57
fn expand_include ( cx : ext_ctxt , sp : span , arg : ast:: mac_arg ,
58
58
_body : ast:: mac_body ) -> @ast:: expr {
59
59
let args = get_mac_args ( cx, sp, arg, 1 u, option:: Some ( 1 u) , ~"include") ;
60
- let file = expr_to_str ( cx, args[ 0 ] , ~"# include_str requires a string") ;
60
+ let file = expr_to_str ( cx, args[ 0 ] , ~"include_str! requires a string") ;
61
61
let p = parse:: new_parser_from_file ( cx. parse_sess ( ) , cx. cfg ( ) ,
62
62
& res_rel_file ( cx, sp, & Path ( file) ) ,
63
63
parse:: parser:: SOURCE_FILE ) ;
@@ -68,7 +68,7 @@ fn expand_include_str(cx: ext_ctxt, sp: codemap::span, arg: ast::mac_arg,
68
68
_body : ast:: mac_body ) -> @ast:: expr {
69
69
let args = get_mac_args ( cx, sp, arg, 1 u, option:: Some ( 1 u) , ~"include_str") ;
70
70
71
- let file = expr_to_str ( cx, args[ 0 ] , ~"# include_str requires a string") ;
71
+ let file = expr_to_str ( cx, args[ 0 ] , ~"include_str! requires a string") ;
72
72
73
73
let res = io:: read_whole_file_str ( & res_rel_file ( cx, sp, & Path ( file) ) ) ;
74
74
match res {
@@ -85,7 +85,7 @@ fn expand_include_bin(cx: ext_ctxt, sp: codemap::span, arg: ast::mac_arg,
85
85
_body : ast:: mac_body ) -> @ast:: expr {
86
86
let args = get_mac_args ( cx, sp, arg, 1 u, option:: Some ( 1 u) , ~"include_bin") ;
87
87
88
- let file = expr_to_str ( cx, args[ 0 ] , ~"# include_bin requires a string") ;
88
+ let file = expr_to_str ( cx, args[ 0 ] , ~"include_bin! requires a string") ;
89
89
90
90
match io:: read_whole_file ( & res_rel_file ( cx, sp, & Path ( file) ) ) {
91
91
result:: Ok ( src) => {
0 commit comments