about summary refs log tree commit diff
path: root/src/rustllvm/CoverageMappingWrapper.cpp
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2020-07-01 20:35:46 -0700
committerGitHub <noreply@github.com>2020-07-01 20:35:46 -0700
commit6b57050b17de7055ca2345867ee4eb8c5b5f1fa9 (patch)
treebe994523e256b95c6e6b8bf7519ddbd7706a54ef /src/rustllvm/CoverageMappingWrapper.cpp
parent8ed5c0d37a79d22b919c969141f3453ade407ca1 (diff)
parent1b3ef660261c880783db0154b89c09a1c4608845 (diff)
downloadrust-6b57050b17de7055ca2345867ee4eb8c5b5f1fa9.tar.gz
rust-6b57050b17de7055ca2345867ee4eb8c5b5f1fa9.zip
Rollup merge of #73449 - ehuss:duplicate-lang-item, r=matthewjasper
Provide more information on duplicate lang item error.

This gives some notes on the location of the files where the lang items were loaded from. Some duplicate lang item errors can be a little confusing, and this might help in diagnosing what has happened.

Here's an example when hitting a bug with Cargo's build-std:

```
error: duplicate lang item in crate `core` (which `rustc_std_workspace_core` depends on): `try`.
  |
  = note: the lang item is first defined in crate `core` (which `z10` depends on)
  = note: first definition in `core` loaded from /Users/eric/Proj/rust/cargo/scratch/z10/target/target/debug/deps/libcore-a764da499c7385f4.rmeta
  = note: second definition in `core` loaded from /Users/eric/Proj/rust/cargo/scratch/z10/target/target/debug/deps/libcore-5b082675aea34986.rmeta
```
Diffstat (limited to 'src/rustllvm/CoverageMappingWrapper.cpp')
0 files changed, 0 insertions, 0 deletions