rust/src/librustc
Mazdak Farrokhzad 05881d046e
Rollup merge of #64678 - tomtau:fix/no-std-error, r=matthewjasper
added more context for duplicate lang item errors (fixes #60561)

Some more information about #60561 -- these errors are pretty common when one works in restrictive environments with `no_std` or customized `std`, but they don't provide much context for debugging, as any transitive dependency could have brought in `std` crate. With that, currently, one needs to use something like `cargo tree` and investigate transitive dependencies one by one.

It'll be more helpful to know at least the crate that uses `std` (which `cargo tree` doesn't show) to pin down this investigation when debugging.

I'm not sure what the best way to get this context is inside rustc internals (I'm new to them). I found that `all_crate_nums` query returns the crates in some dependency order, so printing out the name of the preceding crate seems to do the trick. But I welcome suggestions if this can be done in a better way.
2019-09-28 22:12:01 +02:00
..
benches Remove licenses 2018-12-25 21:08:33 -07:00
dep_graph Rollup merge of #64794 - Mark-Simulacrum:rm-dep-track-map, r=estebank 2019-09-28 05:37:44 +02:00
hir Rollup merge of #64859 - Centril:const-def-here-new-var, r=estebank 2019-09-28 05:38:00 +02:00
ich Rename MetaItem.node to MetaItem.kind 2019-09-26 18:21:48 +01:00
infer Rollup merge of #64802 - estebank:walk-parents-iterator, r=matthewjasper 2019-09-28 05:37:46 +02:00
lint Rename MetaItem.node to MetaItem.kind 2019-09-26 18:21:48 +01:00
middle Rollup merge of #64678 - tomtau:fix/no-std-error, r=matthewjasper 2019-09-28 22:12:01 +02:00
mir Auto merge of #64419 - wesleywiser:const_prop_use_ecx, r=oli-obk 2019-09-28 15:54:12 +00:00
query cleanup dead ast-borrowck / migrate-mode code. 2019-09-27 19:48:07 +02:00
session cleanup dead ast-borrowck / migrate-mode code. 2019-09-27 19:48:07 +02:00
traits Rollup merge of #64794 - Mark-Simulacrum:rm-dep-track-map, r=estebank 2019-09-28 05:37:44 +02:00
ty Rollup merge of #64678 - tomtau:fix/no-std-error, r=matthewjasper 2019-09-28 22:12:01 +02:00
util Remove unused DepTrackingMap 2019-09-25 21:20:57 -04:00
arena.rs cleanup dead ast-borrowck / migrate-mode code. 2019-09-27 19:48:07 +02:00
build.rs Remove licenses 2018-12-25 21:08:33 -07:00
Cargo.toml with byteorder 1.3, the i128 feature is a NOP 2019-09-16 18:28:05 +02:00
error_codes.rs Add long error explanation for E0312 2019-09-12 12:58:44 +02:00
lib.rs cleanup dead ast-borrowck / migrate-mode code. 2019-09-27 19:48:07 +02:00
macros.rs Unify all uses of 'gcx and 'tcx. 2019-06-14 18:58:23 +03:00
README.md rustc-guide has moved 2018-11-26 15:03:13 -06:00
tests.rs librustc: Unconfigure tests during normal build 2019-08-02 01:59:01 +03:00

For more information about how rustc works, see the rustc guide.