michalsrb / rustc2duchain Goto Github PK
View Code? Open in Web Editor NEWTool that parses Rust code for kdev-rust plugin.
License: MIT License
Tool that parses Rust code for kdev-rust plugin.
License: MIT License
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 type rustc::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 type rustc::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) {
| ^^^^^^^^^^^^^^^^^^
error: attempted to take value of method item_name
on type rustc::ty::ProjectionTy<'_>
--> src/analyzer.rs:355:62
|
355 | if item.name == proj.item_name {
| ^^^^^^^^^
|
= help: maybe a ()
to call it is missing? If not, try an anonymous function
error[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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.