Giter Club home page Giter Club logo

rls-data's People

Contributors

algesten avatar dspeckhals avatar emilio avatar euclio avatar h-michael avatar kamalmarhubi avatar nashenas88 avatar nrc avatar plietar avatar staktrace avatar tetsuharuohzeki avatar xanewok avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

rls-data's Issues

Can't distinguish foreign functions from non-foreign functions.

Which I need to be able to link to functions from C++. I can tag them manually with no_mangle from bindgen, which does the trick, but ideally it wouldn't be needed.

I'm filing instead of writing a PR directly because I don't know the process (I know rustc also needs to be updated), and also because I don't know what's the best way to fix it.

I can imagine DefKind::ForeignFunction / DefKind::ForeignStatic, but also maybe just a is_foreign enum / boolean in Def.

WDYT @nrc? I'm happy to send patches for whatever is needed :)

Use some canonical path format

Right now if running the rust compiler on Windows with -Zsave-analysis, the Span::file_name items usually end up with windows-style paths (e.g. Z:\foo\bar.txt). However in some cases they appear to have a mix of windows and unix dir separators (e.g. Z:\foo\bar/lib.rs). This is just weird. It should be consistent in what slashes it's using.

For context, this came up when trying analyze these files for searchfox on a linux host. The rls-analysis crate will read save-analysis files generated on Windows, but the Span::file_name ends up as a PathBuf of a single component because \ is a valid filename char on Linux. I can deal with this by doing a search-and-replace, but when the separators are mixed (both \ and /) it makes me uneasy.

/cc @emilio

Add TupleVariant and StructVariant DefKinds

In order to support more fine-grained detail about Enum variants, add new DefKinds. This will help RLS and its clients to be more specific in symbol classifications for the variants.

I'll be happy to work on a PR for this.

Remove rustc_serialize

This still has

rustc-serialize = "0.3"

In its Cargo.toml. IIRC this is being deprecated.

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.