File tree Expand file tree Collapse file tree 1 file changed +24
-24
lines changed Expand file tree Collapse file tree 1 file changed +24
-24
lines changed Original file line number Diff line number Diff line change @@ -1691,41 +1691,41 @@ fn fix_with_run_cargo_in_proc_macros() {
1691
1691
. file (
1692
1692
"Cargo.toml" ,
1693
1693
r#"
1694
- [package]
1695
- name = "foo"
1696
- version = "0.1.0"
1697
- edition = "2018"
1694
+ [package]
1695
+ name = "foo"
1696
+ version = "0.1.0"
1697
+ edition = "2018"
1698
1698
1699
- [lib]
1700
- proc-macro = true
1701
- "# ,
1699
+ [lib]
1700
+ proc-macro = true
1701
+ "# ,
1702
1702
)
1703
1703
. file (
1704
1704
"src/lib.rs" ,
1705
1705
r#"
1706
- use proc_macro::*;
1706
+ use proc_macro::*;
1707
1707
1708
- #[proc_macro]
1709
- pub fn foo(_input: TokenStream) -> TokenStream {
1710
- let output = std::process::Command::new("cargo")
1711
- .args(&["metadata", "--format-version=1"])
1712
- .output()
1713
- .unwrap();
1714
- eprintln!("{}", std::str::from_utf8(&output.stderr).unwrap());
1715
- println!("{}", std::str::from_utf8(&output.stdout).unwrap());
1716
- "".parse().unwrap()
1717
- }
1718
- "# ,
1708
+ #[proc_macro]
1709
+ pub fn foo(_input: TokenStream) -> TokenStream {
1710
+ let output = std::process::Command::new("cargo")
1711
+ .args(&["metadata", "--format-version=1"])
1712
+ .output()
1713
+ .unwrap();
1714
+ eprintln!("{}", std::str::from_utf8(&output.stderr).unwrap());
1715
+ println!("{}", std::str::from_utf8(&output.stdout).unwrap());
1716
+ "".parse().unwrap()
1717
+ }
1718
+ "# ,
1719
1719
)
1720
1720
. file (
1721
1721
"src/bin/main.rs" ,
1722
1722
r#"
1723
- use foo::foo;
1723
+ use foo::foo;
1724
1724
1725
- fn main() {
1726
- foo!("bar")
1727
- }
1728
- "# ,
1725
+ fn main() {
1726
+ foo!("bar")
1727
+ }
1728
+ "# ,
1729
1729
)
1730
1730
. build ( ) ;
1731
1731
p. cargo ( "fix --allow-no-vcs" )
You can’t perform that action at this time.
0 commit comments