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> {
357
357
. as_ref ( )
358
358
. and_then ( |s| s. expand_macro_call ( mcall) )
359
359
{
360
- self . emit_macro_expansion_parse_errors ( mcall, & expanded) ;
360
+ self . emit_macro_expansion_parse_errors ( mcall, & expanded. value ) ;
361
361
let expand_to = ra_ap_hir_expand:: ExpandTo :: from_call_site ( mcall) ;
362
362
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 ) {
364
364
generated:: MacroCall :: emit_macro_call_expansion (
365
365
label,
366
366
value,
@@ -776,8 +776,8 @@ impl<'a> Translator<'a> {
776
776
let ExpandResult {
777
777
value : expanded, ..
778
778
} = 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 ( || {
781
781
let message = "attribute macro expansion cannot be cast to MacroItems" . to_owned ( ) ;
782
782
let location = self . location_for_node ( node) ;
783
783
self . emit_diagnostic (
You can’t perform that action at this time.
0 commit comments