Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Don't store call-site text offsets in hygiene info | Jonas Schievink | 2021-05-06 | 1 | -2/+2 |
| | |||||
* | Merge #8462 | bors[bot] | 2021-04-19 | 1 | -0/+1 |
|\ | | | | | | | | | | | | | | | 8462: Expand macros at type position r=jonas-schievink a=cynecx Co-authored-by: cynecx <[email protected]> | ||||
| * | hir_ty: Expand macros at type position | cynecx | 2021-04-17 | 1 | -0/+1 |
| | | |||||
* | | Fix visibility of items in block modules | Jonas Schievink | 2021-04-19 | 1 | -0/+12 |
|/ | |||||
* | Include path in `unresolved-macro-call` diagnostic | Jonas Schievink | 2021-04-16 | 1 | -4/+13 |
| | |||||
* | Merge #8432 | bors[bot] | 2021-04-13 | 1 | -0/+10 |
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 8432: decl_check: consider outer scopes' allows r=jonas-schievink a=lf- Fix #8417. Also makes it less noisy about no_mangle annotated stuff the user can do nothing about. Note: this still is broken with bitfield! macros. A repro in an ignore test is included here. I believe this bug is elsewhere, and I don't think I can work around it here. I would like help filing the remaining bug, as it does actually affect users, but I don't know how to describe the behaviour (or even if it is unintended). Co-authored-by: Jade <[email protected]> | ||||
| * | decl_check: consider outer scopes' allows | Jade | 2021-04-08 | 1 | -0/+10 |
| | | | | | | | | | | | | | | | | | | Fix #8417. Also makes it less noisy about no_mangle annotated stuff the user can do nothing about. Note: this still is broken with bitfield! macros. A repro in an ignore test is included here. I believe this bug is elsewhere, and I don't think I can work around it here. | ||||
* | | Store `#[derive]` attribute ID along macro invoc | Jonas Schievink | 2021-04-09 | 1 | -1/+3 |
| | | |||||
* | | Use named fields in `MacroCallKind` | Jonas Schievink | 2021-04-08 | 1 | -2/+7 |
|/ | |||||
* | Avoid O(n²) when constructing AttrSourceMap | Jonas Schievink | 2021-04-06 | 1 | -0/+8 |
| | |||||
* | infer: remove `record_field_resolutions` field | Jonas Schievink | 2021-04-06 | 1 | -0/+13 |
| | | | | | It stores no useful data, since we can derive all fields from `variant_resolutions` | ||||
* | Intern `GenericParams` | Jonas Schievink | 2021-04-05 | 1 | -1/+1 |
| | | | | | Also share the same instance between `ItemTree` and `generic_params` query. | ||||
* | Global TypeRef/TraitRef interning | Jonas Schievink | 2021-04-01 | 1 | -0/+1 |
| | |||||
* | Rename derive-specific APIs | Jonas Schievink | 2021-03-19 | 1 | -2/+2 |
| | |||||
* | Document fields of `ModuleId` | Jonas Schievink | 2021-03-18 | 1 | -1/+5 |
| | |||||
* | Make MacroDefId's `AstId` mandatory when possible | Jonas Schievink | 2021-03-18 | 1 | -1/+1 |
| | |||||
* | Follow established ErrorEmitted pattern | Brandon | 2021-03-17 | 1 | -11/+11 |
| | |||||
* | Fix missing unresolved macro diagnostic in function body | Brandon | 2021-03-16 | 1 | -10/+13 |
| | |||||
* | Create TraitEnvironment through a query | Florian Diebold | 2021-03-13 | 1 | -0/+10 |
| | |||||
* | Delete `ContainerId` | Jonas Schievink | 2021-03-09 | 1 | -33/+17 |
| | |||||
* | Stop using `ContainerId` in `AssocContainerId` | Jonas Schievink | 2021-03-09 | 1 | -3/+3 |
| | |||||
* | Fix `find_path` when inner items are present | Jonas Schievink | 2021-03-01 | 1 | -0/+23 |
| | |||||
* | For unresolved macros, hightlight only the last segment | Aleksey Kladov | 2021-02-28 | 1 | -58/+56 |
| | |||||
* | Make `ModPath`'s representation private | Jonas Schievink | 2021-02-04 | 1 | -1/+1 |
| | |||||
* | Shortcut `block_def_map` if there's no inner items | Jonas Schievink | 2021-02-03 | 1 | -1/+8 |
| | | | | | This previously didn't work, but apparently only because of the wonky test setup | ||||
* | Intern block locations and handle them in ModuleId | Jonas Schievink | 2021-01-25 | 1 | -1/+14 |
| | |||||
* | Create all `ModuleId`s through a `DefMap` method | Jonas Schievink | 2021-01-25 | 1 | -4/+0 |
| | | | | | `ModuleId` needs to be able to represent blocks, and only the associated `DefMap` will know how to construct that `ModuleId` | ||||
* | Make `ModuleId`'s `krate` field private | Jonas Schievink | 2021-01-22 | 1 | -1/+9 |
| | |||||
* | Obtain `ModuleId`'s `DefMap` through a method | Jonas Schievink | 2021-01-22 | 1 | -1/+11 |
| | |||||
* | prepare to publish el libro de arena | Aleksey Kladov | 2021-01-14 | 1 | -1/+1 |
| | |||||
* | Impl HasAttrs for GenericParam | Lukas Wirth | 2021-01-01 | 1 | -1/+21 |
| | |||||
* | Add ConstParams to the HIR | Lukas Wirth | 2021-01-01 | 1 | -0/+7 |
| | |||||
* | Add `AttrDefId::krate` | Jonas Schievink | 2020-12-17 | 1 | -0/+30 |
| | | | | Access to the containing crate will be needed to handle `cfg_attr` | ||||
* | Merge #6818 | bors[bot] | 2020-12-12 | 1 | -0/+7 |
|\ | | | | | | | | | | | | | | | | | | | 6818: Add Lifetimes to the HIR r=matklad a=Veykril This doesn't handle resolve yet as I don't know yet how that will be used. I'll get to that once I start moving the lifetime reference PR to the hir. This also adds a new `hir` name type for lifetimes and labels, `hir::LifetimeName`. Co-authored-by: Lukas Wirth <[email protected]> | ||||
| * | Add Lifetimes to the HIR | Lukas Wirth | 2020-12-11 | 1 | -0/+7 |
| | | |||||
* | | Add builtin attributes for use in nameres | Jonas Schievink | 2020-12-11 | 1 | -0/+1 |
|/ | |||||
* | Remove hir_def/docs.rs module | Lukas Wirth | 2020-12-07 | 1 | -1/+0 |
| | |||||
* | Fix proc macro token mapping | Jonas Schievink | 2020-12-03 | 1 | -2/+2 |
| | |||||
* | Propagate eager expansion errors | Jonas Schievink | 2020-12-03 | 1 | -10/+41 |
| | |||||
* | Deny unreachable-pub | Aleksey Kladov | 2020-11-02 | 1 | -3/+3 |
| | | | | | | | | 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. | ||||
* | Rename ra_hir_def -> hir_def | Aleksey Kladov | 2020-08-13 | 1 | -0/+541 |