about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorDylan DPC <99973273+Dylan-DPC@users.noreply.github.com>2022-06-02 15:26:58 +0200
committerGitHub <noreply@github.com>2022-06-02 15:26:58 +0200
commit15bf62b475caa2e24f0186e8e2d6cd104cd72370 (patch)
treef858be19cb2f67c7acf6ebab533fe0d7b3de56be /compiler/rustc_codegen_llvm/src
parent0b2d48e5af11ca20878ccb463fceba2c180a6a4a (diff)
parentaa115eba12d6a12bfa4c51e3b6c187f28c42a889 (diff)
downloadrust-15bf62b475caa2e24f0186e8e2d6cd104cd72370.tar.gz
rust-15bf62b475caa2e24f0186e8e2d6cd104cd72370.zip
Rollup merge of #97450 - c410-f3r:assert-compiler, r=oli-obk
[RFC 2011] Basic compiler infrastructure

Splitting https://github.com/rust-lang/rust/pull/96496 into smaller pieces as was done in https://github.com/rust-lang/rust/pull/97233. Hope review will be easier.

This PR practically contains no logic and only serves as a building ground for the actual code that will be placed in a posterior step.

* Adds `context.rs` to place the new `assert!` logic. Has a lot of unused elements but all of them are used by the implementation.
* Creates an unstable flag because the feature is not yet complete and also to allow external feedback.
* Creates the necessary `sym` identifiers that are mostly based on the library elements -> https://github.com/rust-lang/rust/blob/master/library/core/src/asserting.rs
* Modifies `assert.rs` to branch to `context.rs` if the unstable flag is enabled.
* Adds a test to satisfy tidy but the test does nothing in reality.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions