Skip to content

Commit 235745d

Browse files
authored
Merge pull request #110 from albins/initialisation-phase-2
Finalise initialisation calculations
2 parents f52fd71 + d720ed9 commit 235745d

File tree

470 files changed

+8028
-16043
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

470 files changed

+8028
-16043
lines changed

Cargo.lock

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ failure = "0.1.1"
2020
rustc-hash = "1.0.0"
2121
structopt = "0.2.8"
2222
clap = "2.31.2"
23-
polonius-engine = {version = "0.9.0", path = "polonius-engine" }
23+
polonius-engine = {version = "0.10.0", path = "polonius-engine" }
2424
log = "0.4"
2525
petgraph = "0.4.13"
2626

RELEASES.md

+14
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# polonius
22

3+
## v????
4+
5+
- remove `--ignore-region-live-at`, as the `region_live_at` is now gone
6+
from the inputs and is always calculated!
7+
38
## v0.6.0
49

510
- add a CLI option `--ignore-region-live-at` which ignores those facts and
@@ -29,6 +34,15 @@ Add a CLI option `--dump-liveness-graph` to dump a Graphviz file with a
2934

3035
# polonius-engine
3136

37+
38+
## v0.10.0
39+
40+
- add the initialisation-tracking inputs `child`, `path_belongs_to_var`,
41+
`initialized_at`, `moved_out_at`, and `path_accessed_at`, as well as the new
42+
`Atom` `MovePath` to the type of `AllFacts` to capture move paths.
43+
- remove the `var_maybe_initialized_on_exit` input, as it is now calculated by Polonius.
44+
- remove the `region_live_at` input fact, as it is now calculated by Polonius.
45+
3246
## v0.9.0
3347

3448
- add the input `var_initialized_on_exit` which indicates if a variable may be

inputs/collect-facts.sh

+4-3
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,9 @@ INPUT_FOLDERS=(drop-liveness drop-may-dangle drop-no-may-dangle enum-drop-access
1010

1111
for test_folder in "${INPUT_FOLDERS[@]}";
1212
do
13-
pushd "$test_folder"
14-
rustc +$RUSTC_RELEASE $RUSTC_ARGS -o /dev/null -- *.rs
15-
popd
13+
pushd "$test_folder" || exit
14+
find . -name "*.facts" | xargs -- rm
15+
rustc +$RUSTC_RELEASE $RUSTC_ARGS -- *.rs
16+
popd || exit
1617
done
1718

Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"\'_#30r" "bw0" "Mid(bb0[6])"
2-
"\'_#33r" "bw1" "Mid(bb0[16])"
3-
"\'_#38r" "bw2" "Mid(bb0[26])"
4-
"\'_#50r" "bw3" "Mid(bb4[5])"
5-
"\'_#56r" "bw4" "Mid(bb7[10])"
6-
"\'_#61r" "bw5" "Mid(bb7[20])"
7-
"\'_#67r" "bw6" "Mid(bb10[5])"
2+
"\'_#33r" "bw1" "Mid(bb0[18])"
3+
"\'_#38r" "bw2" "Mid(bb0[28])"
4+
"\'_#50r" "bw3" "Mid(bb2[5])"
5+
"\'_#56r" "bw4" "Mid(bb5[14])"
6+
"\'_#61r" "bw5" "Mid(bb5[24])"
7+
"\'_#67r" "bw6" "Mid(bb6[5])"

0 commit comments

Comments
 (0)