Open Milaine opened 7 years ago
As written in the readme:
Rustc internal libraries are unstable and are not meant to be used by external tools. This tool may stop buildling any time you update your rust compiler.
The last version known to work is 1.18.0-nightly (2564711e8 2017-04-04)
. Unfortunately I don't have enough free time at the moment to keep this tool up to date with current rustc or develop it further.
Patches are welcome. :)
I freshly installed rustup, switched to default nightly and updated, rustc and cargo seem to work.
millie@millie-ThinkPad-T520:~/rustc2duchain$ cargo build --release Compiling rustc2duchain v0.1.0 (file:///home/millie/rustc2duchain) error: no field
ty
on typerustc::ty::maps::Maps<'_>
--> src/analyzer.rs:242:41 | 242 | let ty_maps = self.tcx.maps.ty.borrow();| ^^ unknown field
error: no field
typeck_tables
on typerustc::ty::maps::Maps<'_>
--> src/analyzer.rs:316:29
|
316 | match self.tcx.maps.typeck_tables.borrow().get(&item_def_id) {
| ^^^^^^^^^^^^^ unknown field
error: no field
ast_ty_to_ty_cache
on type&'a rustc::ty::TyCtxt<'a, 'gcx, 'tcx>
--> src/analyzer.rs:351:52
|
351 | if let Some(ty) = self.tcx.ast_ty_to_ty_cache.borrow().get(&id) {
| ^^^^^^^^^^^^^^^^^^
item_name
on typerustc::ty::ProjectionTy<'_>
--> src/analyzer.rs:355:62error[E0061]: this function takes 4 parameters but 3 parameters were supplied --> src/analyzer.rs:442:32 | 442 | self.visit_mod(module, item.span, item.id); | ^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 4 parameters
error: aborting due to previous error(s)
error: Could not compile
rustc2duchain
.To learn more, run the command again with --verbose.
this is what happened when I tried to build it like instructed in the readme, I'm not too sure if this is a user issue on my side or a code issue on your side but I decided it'd be best to submit this issue anyways.