about summary refs log tree commit diff
path: root/compiler/rustc_codegen_cranelift/example/alloc_example.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2021-10-13 10:38:12 +0000
committerbors <bors@rust-lang.org>2021-10-13 10:38:12 +0000
commit5728bd64b49b0e78d0180efed75ef0870ae60266 (patch)
tree971aa79ac6cdd03061cb6ea2130f28381b03d61f /compiler/rustc_codegen_cranelift/example/alloc_example.rs
parenta16f686e4a0ea15dcd3b5aa3db7b1cba27bb9453 (diff)
parentbf2d2e559725d57bcc225e1950f228478e06d52b (diff)
downloadrust-5728bd64b49b0e78d0180efed75ef0870ae60266.tar.gz
rust-5728bd64b49b0e78d0180efed75ef0870ae60266.zip
Auto merge of #89587 - camelid:all-candidates, r=petrochenkov
Include rmeta candidates in "multiple matching crates" error

Only dylib and rlib candidates were included in the error. I think the
reason is that at the time this error was originally implemented, rmeta
crate sources were represented different from dylib and rlib sources.
I wrote up more detailed analysis in [this comment][1].

The new version of the code is also a bit easier to read and should be
more robust to future changes since it uses `CrateSources::paths()`.

I also changed the code to sort the candidates to make the output deterministic;
added full stderr tests for the error; and added a long error code explanation.

[1]: https://github.com/rust-lang/rust/pull/88675#issuecomment-935282436

cc `@Mark-Simulacrum` `@jyn514`
Diffstat (limited to 'compiler/rustc_codegen_cranelift/example/alloc_example.rs')
0 files changed, 0 insertions, 0 deletions