Skip to content

Commit 03e03e2

Browse files
Replace Span::def_site and remove #![feature(proc_macro_def_site)] (#193)
1 parent 240ecf0 commit 03e03e2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

maud_macros/src/lib.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#![feature(proc_macro_def_site)]
21
#![feature(proc_macro_diagnostic)]
32
#![feature(proc_macro_hygiene)]
43
#![feature(proc_macro_quote)]
@@ -34,7 +33,7 @@ pub fn html_debug(input: TokenStream) -> TokenStream {
3433
}
3534

3635
fn expand(input: TokenStream) -> TokenStream {
37-
let output_ident = TokenTree::Ident(Ident::new("__maud_output", Span::def_site()));
36+
let output_ident = TokenTree::Ident(Ident::new("__maud_output", Span::mixed_site()));
3837
// Heuristic: the size of the resulting markup tends to correlate with the
3938
// code size of the template itself
4039
let size_hint = input.to_string().len();

0 commit comments

Comments
 (0)