Add unstable type_ascribe macro

This macro serves as a placeholder for future type ascription syntax to
make sure that the semantic implementation keeps working.
This commit is contained in:
Nilstrieb 2022-11-19 21:27:57 +01:00
parent 2a434286a9
commit 6ee0dd97e3
No known key found for this signature in database
6 changed files with 76 additions and 0 deletions

View file

@ -45,6 +45,7 @@ mod log_syntax;
mod source_util;
mod test;
mod trace_macros;
mod type_ascribe;
mod util;
pub mod asm;
@ -92,6 +93,7 @@ pub fn register_builtin_macros(resolver: &mut dyn ResolverExpand) {
unreachable: edition_panic::expand_unreachable,
stringify: source_util::expand_stringify,
trace_macros: trace_macros::expand_trace_macros,
type_ascribe: type_ascribe::expand_type_ascribe,
}
register_attr! {