about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorJubilee <workingjubilee@gmail.com>2024-08-28 19:12:50 -0700
committerGitHub <noreply@github.com>2024-08-28 19:12:50 -0700
commit2572e0e8c9d5d671eccb1d5791e55c929c4720f4 (patch)
tree98f6f39fc4245b4a356bc1355c4c0d097f25b326 /compiler/rustc_codegen_llvm/src
parent4c8c9e092d006aae7fecc93c432fe3bce1f46d04 (diff)
parent515f5acefeed7880bd69d6ac5b5b222b48a283d9 (diff)
downloadrust-2572e0e8c9d5d671eccb1d5791e55c929c4720f4.tar.gz
rust-2572e0e8c9d5d671eccb1d5791e55c929c4720f4.zip
Rollup merge of #129170 - artemagvanian:span-to-location, r=celinval
Add an ability to convert between `Span` and `visit::Location`

AFAIK, there is no way to create a `Location` from a `Span` because its only field is private. This makes it impossible to use visitor methods like `visit_statement` or `visit_terminator`.

This PR adds an implementation for`From<Span>` for `Location` to fix this.

r? ```@celinval```
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions