File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -357,10 +357,10 @@ impl<'a> Translator<'a> {
357357 . as_ref ( )
358358 . and_then ( |s| s. expand_macro_call ( mcall) )
359359 {
360- self . emit_macro_expansion_parse_errors ( mcall, & expanded) ;
360+ self . emit_macro_expansion_parse_errors ( mcall, & expanded. value ) ;
361361 let expand_to = ra_ap_hir_expand:: ExpandTo :: from_call_site ( mcall) ;
362362 let kind = expanded. kind ( ) ;
363- if let Some ( value) = self . emit_expanded_as ( expand_to, expanded) {
363+ if let Some ( value) = self . emit_expanded_as ( expand_to, expanded. value ) {
364364 generated:: MacroCall :: emit_macro_call_expansion (
365365 label,
366366 value,
@@ -776,8 +776,8 @@ impl<'a> Translator<'a> {
776776 let ExpandResult {
777777 value : expanded, ..
778778 } = semantics. expand_attr_macro ( node) ?;
779- self . emit_macro_expansion_parse_errors ( node, & expanded) ;
780- let macro_items = ast:: MacroItems :: cast ( expanded) . or_else ( || {
779+ self . emit_macro_expansion_parse_errors ( node, & expanded. value ) ;
780+ let macro_items = ast:: MacroItems :: cast ( expanded. value ) . or_else ( || {
781781 let message = "attribute macro expansion cannot be cast to MacroItems" . to_owned ( ) ;
782782 let location = self . location_for_node ( node) ;
783783 self . emit_diagnostic (
You can’t perform that action at this time.
0 commit comments