rustc-dev-guide/src/backend
Tshepang Mbambo 8194045511 make date-check more lightweight (#1394)
* make date-check lightweight

This avoids having to write the date twice when updating date-check.

Before "As of <-- 2022-07 --> July 2022"
After "As of July 2022"

* please clippy

* update date-check docs

* accept review suggestion

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

* address review comment

https://github.com/rust-lang/rustc-dev-guide/pull/1394#pullrequestreview-1042163557

* accept review suggestion

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

* address review comment

https://github.com/rust-lang/rustc-dev-guide/pull/1394#pullrequestreview-1042167261

* address review comment

https://github.com/rust-lang/rustc-dev-guide/pull/1394#issuecomment-1189105017

* this breaks markdown

* address review comment

https://github.com/rust-lang/rustc-dev-guide/pull/1394#discussion_r934018268

This led to a more robust regex, though making the tool more picky.
It also found a wrong date format that was missed.

* address review comment

https://github.com/rust-lang/rustc-dev-guide/pull/1394#discussion_r934018419

* address review comment

https://github.com/rust-lang/rustc-dev-guide/pull/1394#discussion_r934018816

* accept review suggestion

This was reverted by mistake

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

* address review comment

https://github.com/rust-lang/rustc-dev-guide/pull/1394#discussion_r934019395

* use a more simple fn

* address review comment

https://github.com/rust-lang/rustc-dev-guide/pull/1394#discussion_r934018981

Much more clean

* nit

* accept review suggestion

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

* avoid a failed regex

Also, test new shape

* adjust to new regex (which uses named groups)

New regex was introduced by 456008cc35

Co-authored-by: Noah Lev <camelidcamel@gmail.com>
2022-08-02 13:50:32 -07:00
..
backend-agnostic.md make date-check more lightweight (#1394) 2022-08-02 13:50:32 -07:00
codegen.md Spelling: Rename `rust` to `Rust` (#1288) 2022-01-18 11:09:37 -03:00
debugging.md Extend debugging llvm section (#1290) 2022-04-14 20:17:36 +09:00
implicit-caller-location.md Fix `rustc_mir` related links (#1228) 2021-10-29 00:58:26 +09:00
inline-asm.md Create issues for many TODOs (#1163) 2021-07-02 10:43:12 +02:00
libs-and-metadata.md Fix some links 2021-11-24 10:23:07 -05:00
lowering-mir.md fix links and names after compiler mv to compiler/ 2020-08-31 05:12:13 +02:00
monomorph.md fix some typos (#1398) 2022-07-17 06:45:36 +09:00
updating-llvm.md make date-check more lightweight (#1394) 2022-08-02 13:50:32 -07:00