rust/clippy_utils/src/sym_helper.rs
2021-02-23 18:50:30 -05:00

8 lines
178 B
Rust

#[macro_export]
/// Convenience wrapper around rustc's `Symbol::intern`
macro_rules! sym {
($tt:tt) => {
rustc_span::symbol::Symbol::intern(stringify!($tt))
};
}