about summary refs log tree commit diff
path: root/tests/codegen/src-hash-algorithm/src-hash-algorithm-sha256.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-01-20 09:37:26 +0100
committerGitHub <noreply@github.com>2024-01-20 09:37:26 +0100
commit2de5ca25d2aa658553e75eedcdb6968a0d53d969 (patch)
tree08c2927194da5a18f629842beaba46cc38a18205 /tests/codegen/src-hash-algorithm/src-hash-algorithm-sha256.rs
parent6f67208d725cce91f9eeb03e39bda5bfba68a303 (diff)
parent130b7e713e879c4c989186d94643be8c834de355 (diff)
downloadrust-2de5ca25d2aa658553e75eedcdb6968a0d53d969.tar.gz
rust-2de5ca25d2aa658553e75eedcdb6968a0d53d969.zip
Rollup merge of #119613 - gavinleroy:expose-obligations, r=lcnr
Expose Obligations created during type inference.

This PR is a first pass at exposing the trait obligations generated and solved for during the type-check progress. Exposing these obligations allows for rustc plugins to use the public interface for proof trees (provided by the next gen trait solver).

The changes proposed track *all* obligations during the type-check process, this is desirable to not only look at the trees of failed obligations, but also those of successfully proved obligations. This feature is placed behind an unstable compiler option `track-trait-obligations` which should be used together with the `next-solver` option. I should note that the main interface is the function `inspect_typeck` made public in `rustc_hir_typeck/src/lib.rs` which allows the caller to provide a callback granting access to the `FnCtxt`.

r? `@lcnr`
Diffstat (limited to 'tests/codegen/src-hash-algorithm/src-hash-algorithm-sha256.rs')
0 files changed, 0 insertions, 0 deletions