Skip to content

Commit 07601a8

Browse files
committed
Use core instead of std
1 parent 7109084 commit 07601a8

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/error.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -278,9 +278,9 @@ impl ErrorMessage {
278278
None => (Span::call_site(), Span::call_site()),
279279
};
280280

281-
// std::compile_error!($message)
281+
// core::compile_error!($message)
282282
TokenStream::from_iter(vec![
283-
TokenTree::Ident(Ident::new("std", start)),
283+
TokenTree::Ident(Ident::new("core", start)),
284284
TokenTree::Punct({
285285
let mut punct = Punct::new(':', Spacing::Joint);
286286
punct.set_span(start);

tests/test_compile_error.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ fn parse_crate_root_custom_inner_attribute() {
1313
let error = syn::parse2::<Item>(tokens).unwrap_err();
1414
assert_eq!(
1515
error.to_compile_error().to_string(),
16-
r#"std :: compile_error ! { "expected square brackets" }"#
16+
r#"core :: compile_error ! { "expected square brackets" }"#
1717
);
1818
}

0 commit comments

Comments
 (0)