about summary refs log tree commit diff
path: root/library/std/src/sys/unix/stack_overflow.rs
diff options
context:
space:
mode:
authorAman Arora <me@aman-arora.com>2020-06-17 18:13:05 -0400
committerAman Arora <aman23091998@gmail.com>2020-06-18 18:59:38 -0400
commit3659406c513062c265f8d8631fa8dae2702bbe8d (patch)
treef4be058b6d1f523ab73cc94dc1a080b607a524d4 /library/std/src/sys/unix/stack_overflow.rs
parente55d3f9c5213fe1a25366450127bdff67ad1eca2 (diff)
downloadrust-3659406c513062c265f8d8631fa8dae2702bbe8d.tar.gz
rust-3659406c513062c265f8d8631fa8dae2702bbe8d.zip
Refactor hir::Place
For the following code
```rust
let c = || bar(foo.x, foo.x)
```

We generate two different `hir::Place`s for both `foo.x`.
Handling this adds overhead for analysis we need to do for RFC 2229.

We also want to store type information at each Projection to support
analysis as part of the RFC. This resembles what we have for
`mir::Place`

This commit modifies the Place as follows:
- Rename to `PlaceWithHirId`, where there `hir_id` is that of the
expressioin.
- Move any other information that describes the access out to another
struct now called `Place`.
- Removed `Span`, it can be accessed using the [hir
API](https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/hir/map/struct.Map.html#method.span)
- Modify `Projection` to be a strucutre of its own, that currently only
contains the `ProjectionKind`.

Adding type information to projections wil be completed as part of https://github.com/rust-lang/project-rfc-2229/issues/5

Closes https://github.com/rust-lang/project-rfc-2229/issues/3

Co-authored-by: Aman Arora <me@aman-arora.com>
Co-authored-by: Roxane Fruytier <roxane.fruytier@hotmail.com>
Diffstat (limited to 'library/std/src/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions