mirror of
https://github.com/Noratrieb/evaluate_obligation-fingerprints.git
synced 2026-01-16 19:25:04 +01:00
info
This commit is contained in:
parent
93553d8aae
commit
e9b6576d2b
3 changed files with 17 additions and 2 deletions
15
README.md
Normal file
15
README.md
Normal file
|
|
@ -0,0 +1,15 @@
|
||||||
|
# reproduction
|
||||||
|
|
||||||
|
To reproduce the issue, run `./repro.sh`.
|
||||||
|
|
||||||
|
This will clean the build, and then toggle two lines between
|
||||||
|
```
|
||||||
|
// 1
|
||||||
|
// 2
|
||||||
|
```
|
||||||
|
```
|
||||||
|
// 1
|
||||||
|
```
|
||||||
|
which is enough to trigger the issue.
|
||||||
|
|
||||||
|
**Make sure to `export RUSTFLAGS=-Zincremental-verify-ich` first, otherwise it may not reproduce**.
|
||||||
|
|
@ -53,7 +53,7 @@ pub async fn bar_baz() {
|
||||||
}
|
}
|
||||||
|
|
||||||
// 1
|
// 1
|
||||||
// 2
|
// 2
|
||||||
|
|
||||||
#[derive(proc_macro_thing::MyMacro)]
|
#[derive(proc_macro_thing::MyMacro)]
|
||||||
#[helper]
|
#[helper]
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@ const one = c.findIndex(l => l.includes("// 1"));
|
||||||
if (c[one + 1].includes("// 2")) {
|
if (c[one + 1].includes("// 2")) {
|
||||||
c.splice(one + 1, 1);
|
c.splice(one + 1, 1);
|
||||||
} else {
|
} else {
|
||||||
c.splice(one + 1, 0, " // 2")
|
c.splice(one + 1, 0, "// 2")
|
||||||
}
|
}
|
||||||
|
|
||||||
fs.writeFileSync("src/main.rs", c.join("\n"));
|
fs.writeFileSync("src/main.rs", c.join("\n"));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue