Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Use body lowering for block_def_map tests | Jonas Schievink | 2021-02-01 | 2 | -252/+2 | |
| | | | | Removes the hacky and buggy custom lowering code | |||||
* | Honor #![macro_use] in mod source files | Lukas Wirth | 2021-01-31 | 2 | -8/+23 | |
| | ||||||
* | Fix incorrect `FileId` and remove broken shortcut | Jonas Schievink | 2021-01-28 | 1 | -7/+6 | |
| | | | | | Apparently we were using the crate's root file instead of the file containing the block. | |||||
* | block_def_map: add a few macro tests | Jonas Schievink | 2021-01-28 | 1 | -0/+63 | |
| | ||||||
* | Update `original_module` when ascending `DefMap`s | Jonas Schievink | 2021-01-28 | 1 | -2/+5 | |
| | ||||||
* | Fix legacy macro resolution in block expressions | Jonas Schievink | 2021-01-27 | 1 | -1/+4 | |
| | ||||||
* | Traverse parent DefMap for `super` paths | Jonas Schievink | 2021-01-25 | 2 | -9/+54 | |
| | ||||||
* | Intern block locations and handle them in ModuleId | Jonas Schievink | 2021-01-25 | 2 | -11/+55 | |
| | ||||||
* | Create all `ModuleId`s through a `DefMap` method | Jonas Schievink | 2021-01-25 | 2 | -35/+16 | |
| | | | | | `ModuleId` needs to be able to represent blocks, and only the associated `DefMap` will know how to construct that `ModuleId` | |||||
* | Merge #7391 | bors[bot] | 2021-01-23 | 2 | -0/+24 | |
|\ | | | | | | | | | | | | | | | 7391: Fix error when using "extern crate self as" r=kazatsuyu a=kazatsuyu Fix #6957 Co-authored-by: kazatsuyu <[email protected]> | |||||
| * | Add mark::check! and mark::hit! | kazatsuyu | 2021-01-22 | 2 | -0/+2 | |
| | | ||||||
| * | cargo fmt | kazatsuyu | 2021-01-22 | 1 | -2/+3 | |
| | | ||||||
| * | Fix error when using "extern crate self as" | kazatsuyu | 2021-01-22 | 2 | -0/+21 | |
| | | ||||||
* | | Obtain `ModuleId`'s `DefMap` through a method | Jonas Schievink | 2021-01-22 | 2 | -3/+3 | |
|/ | ||||||
* | Remove unnecessary annotations from tests | Jonas Schievink | 2021-01-21 | 1 | -4/+0 | |
| | ||||||
* | Add test for nameres in nested blocks | Jonas Schievink | 2021-01-21 | 1 | -0/+29 | |
| | ||||||
* | Add test that merges inner and outer names | Jonas Schievink | 2021-01-21 | 1 | -0/+25 | |
| | ||||||
* | Fall back to parent DefMaps when resolving paths | Jonas Schievink | 2021-01-21 | 1 | -0/+37 | |
| | ||||||
* | Add name resolution query for block expressions | Jonas Schievink | 2021-01-21 | 3 | -17/+108 | |
| | ||||||
* | Rename `CrateDefMap` to `DefMap` | Jonas Schievink | 2021-01-18 | 3 | -10/+10 | |
| | ||||||
* | prepare to publish el libro de arena | Aleksey Kladov | 2021-01-14 | 1 | -1/+1 | |
| | ||||||
* | Fixed typos in code comments | Vincent Esche | 2021-01-09 | 1 | -4/+4 | |
| | ||||||
* | Change <|> to $0 - Rebase | Kevaundray Wedderburn | 2021-01-07 | 1 | -2/+2 | |
| | ||||||
* | Emit diagnostics for unresolved item-level macros | Jonas Schievink | 2021-01-05 | 1 | -1/+32 | |
| | ||||||
* | Fixed old failed test due to new fixes | Edwin Cheng | 2020-12-28 | 1 | -2/+2 | |
| | ||||||
* | Don't think that /submod.rs is /mod.rs | Aleksey Kladov | 2020-12-23 | 1 | -1/+1 | |
| | ||||||
* | fixture -> ra_fixture | Jonas Schievink | 2020-12-19 | 2 | -4/+4 | |
| | ||||||
* | Test paths to derive macros | Jonas Schievink | 2020-12-19 | 1 | -2/+2 | |
| | ||||||
* | More accurate `#[derive]` parsing | Jonas Schievink | 2020-12-19 | 1 | -14/+14 | |
| | | | | This now allows full paths to the derive macro | |||||
* | Merge #6935 | bors[bot] | 2020-12-18 | 1 | -5/+26 | |
|\ | | | | | | | | | | | | | | | | | | | 6935: Don't look at attributes when lowering to ItemTree r=jonas-schievink a=jonas-schievink Resolves 2 `cfg_attr` FIXMEs bors r+ Co-authored-by: Jonas Schievink <[email protected]> | |||||
| * | Don't look at attributes when lowering to ItemTree | Jonas Schievink | 2020-12-18 | 1 | -5/+26 | |
| | | | | | | | | Resolves 2 `cfg_attr` FIXMEs | |||||
* | | Hit a mark | Jonas Schievink | 2020-12-18 | 1 | -0/+2 | |
| | | ||||||
* | | Add test | Jonas Schievink | 2020-12-18 | 1 | -0/+16 | |
|/ | ||||||
* | Refactor attributes API to allow handling cfg_attr | Jonas Schievink | 2020-12-18 | 1 | -19/+29 | |
| | ||||||
* | Avoid querying attributes in item tree lowering | Jonas Schievink | 2020-12-16 | 1 | -8/+26 | |
| | | | | | | | | ItemTree is per-file, so there is no unique crate associated with it. This means that it cannot know the active CfgOptions and thus couldn't handle `cfg_attr`. Prepare it for `cfg_attr`s by avoiding accessing attributes. | |||||
* | Make macro def krate mandatory | Jonas Schievink | 2020-12-15 | 2 | -13/+36 | |
| | | | | Refactors builtin derive support to go through proper name resolution | |||||
* | Basic support for decl macros 2.0 | Jonas Schievink | 2020-12-15 | 1 | -1/+28 | |
| | ||||||
* | Move to upstream `macro_rules!` model | Jonas Schievink | 2020-12-15 | 1 | -37/+28 | |
| | ||||||
* | Introduce anchored_path | Aleksey Kladov | 2020-12-09 | 1 | -2/+3 | |
| | | | | | They allow to represent paths like `#[path = "C:\path.rs"] mod foo;` in a lossless cross-platform & network-transparent way. | |||||
* | Escape string literals in Attr::from_src | Lukas Wirth | 2020-12-08 | 1 | -1/+1 | |
| | ||||||
* | Don't discard PathKind::Abs information in lower_use::convert_path | Lukas Wirth | 2020-12-02 | 1 | -0/+21 | |
| | ||||||
* | Publish diagnostics for macro expansion errors | Jonas Schievink | 2020-11-27 | 1 | -2/+25 | |
| | ||||||
* | Don't store `SyntaxNodePtr` in `CrateDefMap` | Jonas Schievink | 2020-11-26 | 1 | -4/+2 | |
| | | | | It is volatile across reparses and makes incrementality worse. | |||||
* | Test def map invalidation with #[cfg] below change | Jonas Schievink | 2020-11-26 | 1 | -0/+6 | |
| | ||||||
* | Don't stack overflow on circular modules | Aleksey Kladov | 2020-11-04 | 4 | -18/+62 | |
| | | | | closes #6453 | |||||
* | Merge #6435 | bors[bot] | 2020-11-03 | 1 | -2/+15 | |
|\ | | | | | | | | | | | | | | | 6435: Test Fixture ExplicitRoot + ModuleResolutionRelativePathOutsideRoot. r=matklad a=rickvanprim Updates `module_resolution_relative_path_outside_root` test to check valid paths outside of the root, by moving the root to a subpath so that paths outside of it are possible. If this would be more appropriate as a new test, or if the original check for an invalid path should be left, I'm happy to update. Co-authored-by: James Leitch <[email protected]> | |||||
| * | Feedback. | James Leitch | 2020-11-02 | 1 | -1/+1 | |
| | | ||||||
| * | Test Fixture ExplicitRoot + ModuleResolutionRelativePathOutsideRoot. | James Leitch | 2020-11-02 | 1 | -2/+15 | |
| | | ||||||
* | | Deny unreachable-pub | Aleksey Kladov | 2020-11-02 | 1 | -7/+7 | |
| | | | | | | | | | | | | | | | | It's very useful when `pub` is equivalent to "this is crate's public API", let's enforce this! Ideally, we should enforce it for local `cargo test`, and only during CI, but that needs https://github.com/rust-lang/cargo/issues/5034. | |||||
* | | Handle #![cfg] in crate root | Jonas Schievink | 2020-10-26 | 2 | -2/+22 | |
|/ |