Jonas Schievink
|
2633e23f2b
|
resolver: manually traverse nested block scopes
|
2021-03-22 18:55:51 +01:00 |
|
Jonas Schievink
|
c2622c9228
|
Prefer names from outer DefMap over extern prelude
|
2021-03-10 16:33:18 +01:00 |
|
Laurențiu Nicola
|
fc9eed4836
|
Use upstream cov-mark
|
2021-03-08 22:19:44 +02:00 |
|
Jonas Schievink
|
6990b89b26
|
Restrict visibilities to the containing DefMap
|
2021-02-28 04:47:38 +01:00 |
|
Jonas Schievink
|
997bd97b77
|
Fix resolution of self module within blocks
|
2021-02-05 19:24:03 +01:00 |
|
Jonas Schievink
|
6239fe4730
|
Fix merging of segment_index in path resolution
|
2021-02-05 15:14:33 +01:00 |
|
Jonas Schievink
|
5d99ba1d9a
|
Make ModPath 's representation private
|
2021-02-04 20:49:24 +01:00 |
|
Jonas Schievink
|
26a2a2433c
|
Don't keep the parent DefMap alive via Arc
This seems like it could easily leak a lot of memory since we don't
currently run GC
|
2021-02-04 13:44:54 +01:00 |
|
Jonas Schievink
|
5914f86d47
|
Fix resolution of crate paths from within blocks
They resolve to the crate root, not the DefMap's root module (which
can be a block)
|
2021-02-02 18:02:12 +01:00 |
|
Jonas Schievink
|
cd9659ffce
|
Use the right DefMap when looking up modules
|
2021-02-02 12:36:38 +01:00 |
|
Jonas Schievink
|
232b75394e
|
Update original_module when ascending DefMap s
|
2021-01-28 18:27:27 +01:00 |
|
Jonas Schievink
|
08253d5473
|
Traverse parent DefMap for super paths
|
2021-01-25 19:15:39 +01:00 |
|
Jonas Schievink
|
98a88ebb9e
|
Intern block locations and handle them in ModuleId
|
2021-01-25 19:02:05 +01:00 |
|
Jonas Schievink
|
5c241b0766
|
Create all ModuleId s through a DefMap method
`ModuleId` needs to be able to represent blocks, and only the
associated `DefMap` will know how to construct that `ModuleId`
|
2021-01-25 15:21:33 +01:00 |
|
bors[bot]
|
eab5db20ed
|
Merge #7391
7391: Fix error when using "extern crate self as" r=kazatsuyu a=kazatsuyu
Fix #6957
Co-authored-by: kazatsuyu <shirayama.kazatsuyu@gmail.com>
|
2021-01-23 04:04:09 +00:00 |
|
Jonas Schievink
|
ce29730bc7
|
Obtain ModuleId 's DefMap through a method
|
2021-01-22 16:33:58 +01:00 |
|
kazatsuyu
|
90d6740e32
|
Add mark::check! and mark::hit!
|
2021-01-23 00:11:37 +09:00 |
|
kazatsuyu
|
0fb4544403
|
cargo fmt
|
2021-01-22 22:52:04 +09:00 |
|
kazatsuyu
|
e52589e3a7
|
Fix error when using "extern crate self as"
|
2021-01-22 22:28:45 +09:00 |
|
Jonas Schievink
|
f8f44cfb9b
|
Fall back to parent DefMaps when resolving paths
|
2021-01-21 15:24:15 +01:00 |
|
Jonas Schievink
|
57a82fb05b
|
Rename CrateDefMap to DefMap
|
2021-01-18 20:18:05 +01:00 |
|
Aleksey Kladov
|
b28c54a2c2
|
Rename ra_hir_def -> hir_def
|
2020-08-13 16:29:33 +02:00 |
|