Skip to content
This repository has been archived by the owner on Jan 11, 2024. It is now read-only.

tomasol/ra-proc-macro-including-target

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Reproducer for ...

  1. Load the project to vscode.
  2. mkdir -p target
  3. echo test > target/test.txt
  4. cargo run -p consumer outputs the contents of Cargo.toml and target/test.txt
  5. Open main.rs
  6. Execute rust-analyzer: Expand macro recursively at caret at line 4. Contents of Cargo.toml is shown.
  7. Move the cursor to line 5.
  8. Execute the same action.

Expected behavior: The expansion should contain:

// Recursive expansion of generate_include_str! macro
// ===================================================

let contents = "abc";
{
  $crate::io::_print(builtin #format_args("{contents}"));
};

Actual behavior:

// Recursive expansion of generate_include_str! macro
// ===================================================

let contents = "";
{
  $crate::io::_print(builtin #format_args("{contents}"));
};

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages