aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir_def/src/path.rs
Commit message (Collapse)AuthorAgeFilesLines
* Rename TypeArgList -> GenericArgListAleksey Kladov2020-07-311-1/+1
|
* Rename UseItem -> UseAleksey Kladov2020-07-301-1/+1
|
* Deprecate hir::Path::from_astAleksey Kladov2020-06-151-1/+1
|
* Make known paths use `core` instead of `std`Jonas Schievink2020-06-111-10/+10
|
* Add an ImportMapJonas Schievink2020-06-041-0/+13
|
* Fix type inference failure when built with log/kv_unstableDavid Tolnay2020-06-041-1/+1
| | | | | | | | | | | | | | | | | | | | | | | This code is broken by an `impl From<kv::Error> for fmt::Error` in the log crate when building in a codebase that has the log/kv_unstable feature enabled. $ cargo check --manifest-path crates/ra_hir_def/Cargo.toml Checking ra_hir_def v0.1.0 Finished dev [unoptimized] target(s) in 0.75s $ cargo check --manifest-path crates/ra_hir_def/Cargo.toml --features log/kv_unstable Checking ra_hir_def v0.1.0 error[E0282]: type annotations needed for the closure `fn(&str) -> std::result::Result<(), _>` --> crates/ra_hir_def/src/path.rs:278:17 | 278 | f.write_str("::")?; | ^^^^^^^^^^^^^^^^^^ cannot infer type | help: give this closure an explicit return type without `_` placeholders | 276 | let mut add_segment = |s| -> std::result::Result<(), _> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
* Introduce LowerCtx for path loweringEdwin Cheng2020-05-011-2/+3
|
* Implement inline associated type boundsFlorian Diebold2020-04-131-2/+19
| | | | | | | Like `Iterator<Item: SomeTrait>`. This is an unstable feature, but it's used in the standard library e.g. in the definition of Flatten, so we can't get away with not implementing it :)
* Make records grammar more orthogonalAleksey Kladov2020-04-111-5/+0
| | | | | | | | | | | | We used name [: expr] grammar before, now it is [name :] expr which makes things simpler
* ra_hir_def: fix typoveetaha2020-03-221-1/+1
|
* Merge #2962bors[bot]2020-02-041-1/+9
|\ | | | | | | | | | | | | | | | | 2962: Differentiate underscore alias from named aliases r=matklad a=zombiefungus pre for Fixing Issue 2736 edited to avoid autoclosing the issue Co-authored-by: zombiefungus <[email protected]>
| * include requested changeszombiefungus2020-02-021-6/+9
| |
| * add new ImportAlias enum to differentiate no alias from an _ aliaszombiefungus2020-02-021-1/+6
| |
* | Require ModPath for importingKirill Bulatov2020-02-021-2/+2
|/
* RenameAleksey Kladov2020-01-151-7/+4
|
* Apply review suggestionsFlorian Diebold2020-01-111-8/+6
|
* Qualify some paths in 'add missing impl members'Florian Diebold2020-01-111-1/+43
|
* Remove unused hard-coded pathsEmil Lauridsen2019-12-291-4/+0
|
* FormattingEdwin Cheng2019-12-241-1/+4
|
* Implement infer await from async funcEdwin Cheng2019-12-241-0/+5
|
* SimplifyAleksey Kladov2019-12-201-1/+1
|
* Merge #2592bors[bot]2019-12-201-0/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2592: Add std::ops::Index support for infering r=edwin0cheng a=edwin0cheng see also #2534 Seem like this can't fix #2534 for this case: ```rust fn foo3(bar: [usize; 2]) { let baz = bar[1]; // <--- baz is still unknown ? println!("{}", baz); } ``` Co-authored-by: Edwin Cheng <[email protected]>
| * Add std::ops::Index support for inferingEdwin Cheng2019-12-191-0/+1
| |
* | Remove dead codeAleksey Kladov2019-12-181-5/+0
| |
* | Touch up docsAleksey Kladov2019-12-181-1/+2
| |
* | Forbid <T>::foo syntax in mod pathsAleksey Kladov2019-12-181-3/+9
| |
* | Move PathKindUpAleksey Kladov2019-12-181-14/+14
| |
* | Touch up docsAleksey Kladov2019-12-181-3/+4
|/
* Refactor PathKindAleksey Kladov2019-12-171-3/+2
|
* Use different types for path with and without genericsAleksey Kladov2019-12-141-200/+145
|
* Use path macroFlorian Diebold2019-12-131-63/+32
|
* Rename N! to name!Florian Diebold2019-12-131-4/+4
|
* Add macros for known names and pathsFlorian Diebold2019-12-131-25/+20
|
* Correctly infer - and ! using std::ops::{Neg,Not}Emil Lauridsen2019-12-131-0/+8
|
* Correct obsolete commentAleksey Kladov2019-12-121-2/+1
|
* Move use tree lowering to a separate moduleAleksey Kladov2019-12-121-104/+3
|
* Add expansion infrastructure for derive macrosFlorian Diebold2019-12-051-0/+5
|
* Replace `ra_hir_expand::either` with crateice10002019-12-031-5/+5
|
* Infer range typesoxalica2019-11-281-0/+30
|
* Rename Source -> InFileAleksey Kladov2019-11-281-2/+2
|
* Add hygiene information to SourceAnalyzerEdwin Cheng2019-11-261-1/+1
|
* Don't redo field resolution in the IDEAleksey Kladov2019-11-241-1/+1
|
* Some docsAleksey Kladov2019-11-241-1/+1
|
* Reduce visibilityAleksey Kladov2019-11-241-4/+7
|
* Rename Source::ast -> Source::valueAleksey Kladov2019-11-201-1/+1
|
* improve compile time a bitAleksey Kladov2019-10-301-1/+1
|
* move hygiene to hir_expandAleksey Kladov2019-10-301-1/+2
|
* push name down to hir_expandAleksey Kladov2019-10-301-8/+7
|
* push either to hir_expandAleksey Kladov2019-10-301-1/+1
|
* refactor $crate handlingAleksey Kladov2019-10-301-52/+49
| | | | | Introduce proper hygiene module, which should grow quite a bit eventually.