about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorDylan DPC <dylan.dpc@gmail.com>2020-04-16 23:34:42 +0200
committerGitHub <noreply@github.com>2020-04-16 23:34:42 +0200
commitaa0db0bb431b4172c58bdfdf9b748e0933e5bf06 (patch)
tree173a2da77478e741e486c6fe4f9fd92f2b575282 /src/rustllvm/RustWrapper.cpp
parentc68c71e24e098d617fd1bbb82b6120d03ff3e252 (diff)
parent66575c9962188aa2f16df04fa1fef1786f0d216f (diff)
downloadrust-aa0db0bb431b4172c58bdfdf9b748e0933e5bf06.tar.gz
rust-aa0db0bb431b4172c58bdfdf9b748e0933e5bf06.zip
Rollup merge of #71197 - ljedrz:unsafe_unused, r=ecstatic-morse
Don't use the HirId to NodeId map in MIR

Another step towards not having to build a `HirId` to `NodeId` map other than for doc and RLS purposes.

We are currently sorting `unsafe` blocks by `NodeId` in `check_unsafety`; change it to sorting by `Span` instead; this passes the tests, but better ideas are welcome.

In addition, simplify the split between the used and unused `unsafe` blocks for readability and less sorting.

cc https://github.com/rust-lang/rust/issues/50928
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions