gecko-dev/third_party/rust/pin-project-lite/tests
Mike Hommey 309ed8ae59 Bug 1769901 - Update numerous rust crates. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D146660
2022-05-18 23:59:49 +00:00
..
auxiliary
expand Bug 1769901 - Update numerous rust crates. r=emilio 2022-05-18 23:59:49 +00:00
include
ui Bug 1769901 - Update numerous rust crates. r=emilio 2022-05-18 23:59:49 +00:00
README.md Bug 1769901 - Update numerous rust crates. r=emilio 2022-05-18 23:59:49 +00:00
compiletest.rs Bug 1769901 - Update numerous rust crates. r=emilio 2022-05-18 23:59:49 +00:00
drop_order.rs
expandtest.rs
lint.rs Bug 1769901 - Update numerous rust crates. r=emilio 2022-05-18 23:59:49 +00:00
proper_unpin.rs
test.rs Bug 1769901 - Update numerous rust crates. r=emilio 2022-05-18 23:59:49 +00:00

README.md

Tests

Many of the tests in this repository are based on pin-project's tests.

To run all tests, run the following command:

cargo +nightly test --all

UI tests (ui, compiletest.rs)

This checks errors detected by the macro or the Rust compiler in the resulting expanded code.

To run this test, run the following command:

cargo +nightly test --test compiletest

Locally, this test updates the files in the ui directory if there are changes to the generated code. If there are any changes to the files in the ui directory after running the test, please commit them.

See also trybuild documentation.

Expansion tests (expand, expandtest.rs)

Similar to ui tests, but instead of checking the compiler output, this checks the code generated by macros.

See pin-project's examples for descriptions of what the generated code does, and why it needs to be generated.

To run this test, run the following command:

cargo +nightly test --test expandtest

Locally, this test updates the files in the expand directory if there are changes to the generated code. If there are any changes to the files in the expand directory after running the test, please commit them.

See also macrotest documentation.