nikomatsakis/borrowck

Modeling NLL and the Rust borrowck

Rust

90

171 commits

updated Sep 28, 2017

See the code

README

A playground for the proposed non-lexical-lifetime algorithm.

The test directory contains a number of scenarios. Each file includes comments explaining the scenario. They are written in a very simplified "NLL" notation, which specifies the control-flow graph, the local variables, and the relationships between the various regions involved.

To try it out for yourself:

> cd nll
> cargo run ../test/*nll

This will run the code against all the test files and verify the embedded assertions within. You should expect to see all OK results.

Contributors

nikomatsakis

168 commits

Nashenas88

2 commits

arielb1

1 commits

nikomatsakis/borrowck

Modeling NLL and the Rust borrowck

Rust

90

171 commits

updated Sep 28, 2017

See the code

README

A playground for the proposed non-lexical-lifetime algorithm.

The test directory contains a number of scenarios. Each file includes comments explaining the scenario. They are written in a very simplified "NLL" notation, which specifies the control-flow graph, the local variables, and the relationships between the various regions involved.

To try it out for yourself:

> cd nll
> cargo run ../test/*nll

This will run the code against all the test files and verify the embedded assertions within. You should expect to see all OK results.

Contributors

nikomatsakis

168 commits

Nashenas88

2 commits

arielb1

1 commits

Languages

Rust

100.0%