| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2023-05-18 | fix(resolve): only disambiguate binding key during define | bohan | -1/+2 | |
| 2023-05-14 | Revert "Validate resolution for SelfCtor too." | Camille GILLOT | -4/+1 | |
| This reverts commit 83453408a0ce91b9e3d3ae6e7f117b1fd28b487d. | ||||
| 2023-05-11 | Improve error for `self: Box<self>` | clubby789 | -24/+20 | |
| 2023-05-05 | improve diagnostics and bless tests | Boxy | -19/+51 | |
| 2023-05-05 | misc nameres changes for anon consts | Boxy | -10/+2 | |
| 2023-05-04 | Rollup merge of #111070 - WaffleLapkin:break_ribs, r=lcnr | Matthias Krüger | -34/+33 | |
| Don't suffix `RibKind` variants This PR - Removes `use RibKind::*` - Renames `RibKind::{SomethingRibKind => Something}` It seems unnecessary to have "RibKind" in the end of all variants, if we can just use it as a normal enum. Additionally previously it was weird that `MacroDefinition` is the only unsuffixed variant. | ||||
| 2023-05-04 | Rollup merge of #111020 - cjgillot:validate-self-ctor, r=petrochenkov | Matthias Krüger | -1/+4 | |
| Validate resolution for SelfCtor too. Fixes https://github.com/rust-lang/rust/issues/89868 r? `@petrochenkov` | ||||
| 2023-05-03 | Validate resolution for SelfCtor too. | Camille GILLOT | -1/+4 | |
| 2023-05-03 | Restrict `From<S>` for `{D,Subd}iagnosticMessage`. | Nicholas Nethercote | -1/+1 | |
| Currently a `{D,Subd}iagnosticMessage` can be created from any type that impls `Into<String>`. That includes `&str`, `String`, and `Cow<'static, str>`, which are reasonable. It also includes `&String`, which is pretty weird, and results in many places making unnecessary allocations for patterns like this: ``` self.fatal(&format!(...)) ``` This creates a string with `format!`, takes a reference, passes the reference to `fatal`, which does an `into()`, which clones the reference, doing a second allocation. Two allocations for a single string, bleh. This commit changes the `From` impls so that you can only create a `{D,Subd}iagnosticMessage` from `&str`, `String`, or `Cow<'static, str>`. This requires changing all the places that currently create one from a `&String`. Most of these are of the `&format!(...)` form described above; each one removes an unnecessary static `&`, plus an allocation when executed. There are also a few places where the existing use of `&String` was more reasonable; these now just use `clone()` at the call site. As well as making the code nicer and more efficient, this is a step towards possibly using `Cow<'static, str>` in `{D,Subd}iagnosticMessage::{Str,Eager}`. That would require changing the `From<&'a str>` impls to `From<&'static str>`, which is doable, but I'm not yet sure if it's worthwhile. | ||||
| 2023-05-01 | Remove "RibKind" suffix from `RibKind` variants | Maybe Waffle | -28/+28 | |
| 2023-05-01 | Don't `use RibKind::*` | Maybe Waffle | -34/+33 | |
| 2023-05-01 | Rip it out | Nilstrieb | -1/+7 | |
| My type ascription Oh rip it out Ah If you think we live too much then You can sacrifice diagnostics Don't mix your garbage Into my syntax So many weird hacks keep diagnostics alive Yet I don't even step outside So many bad diagnostics keep tyasc alive Yet tyasc doesn't even bother to survive! | ||||
| 2023-04-06 | Rollup merge of #109909 - clubby789:import-tool-mod, r=petrochenkov | Yuki Okushi | -11/+7 | |
| Deny `use`ing tool paths Fixes #109853 Fixes #109147 | ||||
| 2023-04-04 | Deny `use`ing tool paths | clubby789 | -11/+7 | |
| 2023-04-04 | Auto merge of #109599 - notriddle:notriddle/use-redundant-glob, r=petrochenkov | bors | -14/+21 | |
| diagnostics: account for glob shadowing when linting redundant imports Fixes #92904 | ||||
| 2023-04-01 | slighty simplify a few boolean expressions (clippy::nonminimal_bool) | Matthias Krüger | -1/+1 | |
| 2023-04-01 | diagnostics: account for glob shadowing when linting redundant imports | Michael Howell | -14/+21 | |
| Co-Authored-By: Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | ||||
| 2023-03-03 | Match unmatched backticks in compiler/ that are part of rustdoc | est31 | -1/+1 | |
| 2023-02-20 | Prepare for adding a `TyCtxt` to `Resolver` | Oli Scherer | -6/+9 | |
| 2023-02-14 | Separate the lifetime of the session and the arena in the resolver | Oli Scherer | -1/+1 | |
| 2023-02-02 | Rename `rust_2015` => `is_rust_2015` | Maybe Waffle | -2/+3 | |
| 2023-01-31 | Use `Edition` methods a bit more | Maybe Waffle | -2/+1 | |
| 2023-01-20 | Revert "Make PROC_MACRO_DERIVE_RESOLUTION_FALLBACK a hard error" | Felix S. Klock II | -10/+65 | |
| This reverts commit 7d82cadd97acc66993b69304c5a1a04ef7d1fa36. I am doing this to buy us some time with respect to issue #106337 w.r.t. the 1.67 release. | ||||
| 2023-01-04 | Simplify some iterator combinators | Michael Goulet | -5/+4 | |
| 2022-11-01 | Rollup merge of #103760 - petrochenkov:macimp, r=cjgillot | Dylan DPC | -2/+6 | |
| resolve: Turn the binding from `#[macro_export]` into a proper `Import` Continuation of https://github.com/rust-lang/rust/pull/91795. ```rust #[macro_export] macro_rules! m { /*...*/ } ``` is desugared to something like ```rust macro_rules! m { /*...*/ } // Non-modularized macro_rules item pub use m; // It's modularized reexport ``` This PR adjusts the internal representation to better match this model. | ||||
| 2022-10-31 | resolve: Turn the binding from `#[macro_export]` into a proper `Import` | Vadim Petrochenkov | -2/+6 | |
| 2022-10-24 | Make PROC_MACRO_DERIVE_RESOLUTION_FALLBACK a hard error | Aaron Hill | -65/+10 | |
| 2022-09-29 | Shrink `hir::def::Res`. | Nicholas Nethercote | -6/+16 | |
| `Res::SelfTy` currently has two `Option`s. When the second one is `Some` the first one is never consulted. So we can split it into two variants, `Res::SelfTyParam` and `Res::SelfTyAlias`, reducing the size of `Res` from 24 bytes to 12. This then shrinks `hir::Path` and `hir::PathSegment`, which are the HIR types that take up the most space. | ||||
| 2022-09-07 | rustc: Parameterize `ty::Visibility` over used ID | Vadim Petrochenkov | -6/+7 | |
| It allows using `LocalDefId` instead of `DefId` when possible, and also encode cheaper `Visibility<DefIndex>` into metadata. | ||||
| 2022-09-01 | Directly use the `instrument` macro instead of its full path | Oli Scherer | -10/+10 | |
| 2022-08-30 | Rollup merge of #101123 - JohnTitor:rm-register-attr, r=TaKO8Ki | Dylan DPC | -11/+1 | |
| Remove `register_attr` feature Closes #66080 Signed-off-by: Yuki Okushi <jtitor@2k36.org> | ||||
| 2022-08-28 | Remove `register_attr` feature | Yuki Okushi | -11/+1 | |
| Signed-off-by: Yuki Okushi <jtitor@2k36.org> | ||||
| 2022-08-27 | rustc_middle: Remove `Visibility::Invisible` | Vadim Petrochenkov | -2/+8 | |
| 2022-08-23 | Remove FnItemRibKind. | Camille GILLOT | -11/+1 | |
| 2022-08-23 | Improve local generic parameter suggestions. | Camille GILLOT | -4/+4 | |
| 2022-08-23 | Create specific ConstantHasGenerics for ConstantItemRibKind. | Camille GILLOT | -3/+9 | |
| 2022-07-25 | Unused tuple fields in rustc_resolve. | Camille GILLOT | -2/+2 | |
| 2022-06-20 | Provide a segment res in more cases | Michael Goulet | -0/+1 | |
| 2022-06-15 | implement `MacroData` | Takayuki Maeda | -1/+1 | |
| 2022-05-20 | Remove `crate` visibility usage in compiler | Jacob Pratt | -8/+8 | |
| 2022-05-07 | Permit asm_const and asm_sym to reference outer generic params | Gary Guo | -32/+2 | |
| 2022-05-02 | Use a yes/no enum instead of a bool. | Oli Scherer | -2/+2 | |
| The bool's meaning wasn't obvious to me at some call sites. | ||||
| 2022-05-01 | resolve: Rename `unusable_binding` to `ignore_binding` | Vadim Petrochenkov | -45/+32 | |
| 2022-05-01 | resolve: Merge `last_import_segment` into `Finalize` | Vadim Petrochenkov | -25/+5 | |
| 2022-05-01 | resolve: Pass full `Finalize` in nearly all cases | Vadim Petrochenkov | -16/+14 | |
| 2022-05-01 | resolve: Turn `enum Finalize` into an optional struct | Vadim Petrochenkov | -7/+7 | |
| 2022-04-17 | Lint elided lifetimes in path on the AST. | Camille GILLOT | -1/+1 | |
| 2022-04-14 | Reimplement lowering of sym operands for asm! so that it also works with ↵ | Amanieu d'Antras | -0/+38 | |
| global_asm! | ||||
| 2022-04-12 | Handle `unusable_binding` more compactly. | Vadim Petrochenkov | -17/+14 | |
| 2022-04-12 | Fix imports. | Camille GILLOT | -8/+3 | |
