diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2022-01-25 16:34:18 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-25 16:34:18 +0000 |
commit | 5f2973fe0e322380bd5f3f4ea35b657efbf86efa (patch) | |
tree | 5c10c91f085cbe16316fd5dff0a611bbd40a0610 /gcc/rust/util/rust-hir-map.h | |
parent | 3de87e620f8714278c273ec91dc6ec22347c188c (diff) | |
parent | c8a0c6eb4b9ea3779f01418cfc97a6761ca4a957 (diff) | |
download | gcc-5f2973fe0e322380bd5f3f4ea35b657efbf86efa.zip gcc-5f2973fe0e322380bd5f3f4ea35b657efbf86efa.tar.gz gcc-5f2973fe0e322380bd5f3f4ea35b657efbf86efa.tar.bz2 |
Merge #891
891: Remove hack to handle forward declared items r=philberty a=philberty
We used to use a compile_fns flag as a method to handle the case of code
such as:
```rust
fn foo() {
bar()
}
fn bar() { }
```
The compile_fns flag when set to false would allow us to do a toplevel
scan to compile the initial fndecl prototype of the functions as a method
of handling the case of the call to bar() within the body of foo.
The backend is setup now that we can 'query_compile' by compiling the
item as required with a cache if we have already done so.
Co-authored-by: Philip Herron <philip.herron@embecosm.com>
Diffstat (limited to 'gcc/rust/util/rust-hir-map.h')
0 files changed, 0 insertions, 0 deletions