Commit Graph

12 Commits

Author SHA1 Message Date
Aaron Hill 88cc55334f
Document inert vs active attributes (#1110)
* Document inert vs active attributes

This PR adds a subsection to the 'Syntax and AST' section describing
inert vs active attributes.

For consistency, I've also updated the '#[test] implementation' page to
stop referring to `#[test]' as a 'built in' attribute, since that has a
specific meaning defined on this page.

* Update src/attributes.md

Co-authored-by: Noah Lev <camelidcamel@gmail.com>

* Update src/attributes.md

Co-authored-by: Noah Lev <camelidcamel@gmail.com>

* Update src/attributes.md

Co-authored-by: Noah Lev <camelidcamel@gmail.com>

* Update src/attributes.md

Co-authored-by: Noah Lev <camelidcamel@gmail.com>

* Update src/attributes.md

Co-authored-by: pierwill <19642016+pierwill@users.noreply.github.com>

* Update src/test-implementation.md

Co-authored-by: pierwill <19642016+pierwill@users.noreply.github.com>

* Update src/attributes.md

Co-authored-by: pierwill <19642016+pierwill@users.noreply.github.com>

* Update src/test-implementation.md

* Update src/test-implementation.md

* Update src/test-implementation.md

---------

Co-authored-by: Nilstrieb <48135649+Nilstrieb@users.noreply.github.com>
Co-authored-by: Noah Lev <camelidcamel@gmail.com>
Co-authored-by: pierwill <19642016+pierwill@users.noreply.github.com>
2024-06-23 16:09:09 +02:00
Tbkhi 8587c9b6f7
Update test-implementation.md (#1937)
* Update test-implementation.md

* Update test-implementation.md
2024-03-13 18:23:20 -03:00
Yuki Okushi c0c957cdab Remove a dangling link on "The `#[test]` attribute"
Signed-off-by: Yuki Okushi <jtitor@2k36.org>
2022-08-29 20:07:51 +02:00
Georgiy Komarov 60bc9abf72
Spelling: Rename `rust` to `Rust` (#1288) 2022-01-18 11:09:37 -03:00
Iñaki Garay bee2fd52ce
Add mdbook-toc, markers, and documentation (#1028)
* Add mdbook-toc to travis, book.toml  and documentation

* Add toc markers

* Whitespace cleanup and some punctuation

* Addressed comments
2021-01-20 14:33:11 -03:00
mark 9bb3872dc7 fix links and names after compiler mv to compiler/ 2020-08-31 05:12:13 +02:00
Who? Me?! 95420468b9
fix links (#702) 2020-05-11 16:51:33 -03:00
Tshepang Lekhonkhobe d3f1ef2a87 follow 4-space indent idiom 2020-03-31 22:17:15 -05:00
LeSeulArtichaut 3751350235
Get rid of references to the refractored `libsyntax` crate (#598)
* Get rid of references to the refractored `libsyntax` crate

* Apply suggestions from code review

Co-authored-by: Yuki Okushi <huyuumi.dev@gmail.com>
2020-03-03 04:41:41 +09:00
Youngsuk Kim 74d3b788ee minor typo fixes (#445)
* typo fix

how to expose the them to any sort of external testing apparatus
=> how to expose them to any sort of external testing apparatus

* typo fix

These following image depicts
=> The following image depicts

* typo fix

trait itself is found in in 
=> trait itself is found in

* Update src/mir/passes.md

following JohnTitor's suggestion

Co-Authored-By: Yuki Okushi <huyuumi.dev@gmail.com>

* Update src/test-implementation.md

Also following JohnTitor's suggestion

Co-Authored-By: Yuki Okushi <huyuumi.dev@gmail.com>
2019-09-16 17:34:03 -03:00
Alexey Shmalko 813cdf613e Update test-implementation chapter to current code
`test_main_static` is now used instead of `test_static_main`.

The libsyntax no longer generates a `TESTS` constant but rather passes
all test cases directly into `test_main_static` as a slice.

Update the guide accordingly.
2019-04-17 22:28:36 -05:00
John Renner 6568317234 More descriptive name for #[test] implementation 2018-08-11 10:37:44 -05:00