Giter Site home page Giter Site logo

rustc2duchain's People

Contributors

michalsrb avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

rustc2duchain's Issues

Error building for the first time

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.