| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2024-01-13 | Add check for ui_testing via promoting parameters from `ParseSess` to `Session` | George-lewis | -1/+1 | |
| 2024-01-10 | Rename `{create,emit}_warning` as `{create,emit}_warn`. | Nicholas Nethercote | -1/+1 | |
| For consistency with `warn`/`struct_warn`, and also `{create,emit}_err`, all of which use an abbreviated form. | ||||
| 2023-12-24 | Remove `Session` methods that duplicate `DiagCtxt` methods. | Nicholas Nethercote | -1/+1 | |
| Also add some `dcx` methods to types that wrap `TyCtxt`, for easier access. | ||||
| 2023-11-28 | Yeet E0744 | Michael Goulet | -5/+4 | |
| 2023-11-26 | rustc: `hir().local_def_id_to_hir_id()` -> `tcx.local_def_id_to_hir_id()` ↵ | Vadim Petrochenkov | -1/+1 | |
| cleanup | ||||
| 2023-11-21 | Fix `clippy::needless_borrow` in the compiler | Nilstrieb | -1/+1 | |
| `x clippy compiler -Aclippy::all -Wclippy::needless_borrow --fix`. Then I had to remove a few unnecessary parens and muts that were exposed now. | ||||
| 2023-10-16 | Rename `ACTIVE_FEATURES` as `UNSTABLE_FEATURES`. | Nicholas Nethercote | -2/+2 | |
| It's a better name, and lets "active features" refer to the features that are active in a particular program, due to being declared or enabled by the edition. The commit also renames `Features::enabled` as `Features::active` to match this; I changed my mind and have decided that "active" is a little better thatn "enabled" for this, particularly because a number of pre-existing comments use "active" in this way. Finally, the commit renames `Status::Stable` as `Status::Accepted`, to match `ACCEPTED_FEATURES`. | ||||
| 2023-09-21 | Prevent promotion of const fn calls in inline consts | Oli Scherer | -2/+2 | |
| 2023-08-15 | Rollup merge of #114819 - estebank:issue-78124, r=compiler-errors | Matthias Krüger | -1/+1 | |
| Point at return type when it influences non-first `match` arm When encountering code like ```rust fn foo() -> i32 { match 0 { 1 => return 0, 2 => "", _ => 1, } } ``` Point at the return type and not at the prior arm, as that arm has type `!` which isn't influencing the arm corresponding to arm `2`. Fix #78124. | ||||
| 2023-08-14 | Move scrutinee `HirId` into `MatchSource::TryDesugar` | Esteban Küber | -1/+1 | |
| 2023-08-14 | Use `{Local}ModDefId` in many queries | Nilstrieb | -2/+2 | |
| 2023-07-25 | inline format!() args from rustc_codegen_llvm to the end (4) | Matthias Krüger | -4/+2 | |
| r? @WaffleLapkin | ||||
| 2023-06-02 | Separate AnonConst from ConstBlock in HIR. | Camille GILLOT | -0/+5 | |
| 2023-05-15 | Move expansion of query macros in rustc_middle to rustc_middle::query | John Kåre Alsaker | -1/+1 | |
| 2023-05-03 | Restrict `From<S>` for `{D,Subd}iagnosticMessage`. | Nicholas Nethercote | -2/+2 | |
| 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-03-21 | Use local key in providers | Michael Goulet | -3/+1 | |
| 2023-01-30 | session: diagnostic migration lint on more fns | David Wood | -2/+2 | |
| Apply the diagnostic migration lint to more functions on `Session`. Signed-off-by: David Wood <david.wood@huawei.com> | ||||
| 2023-01-12 | Expand format_args!() in rust_ast_lowering. | Mara Bos | -1/+1 | |
| 2022-10-07 | Remove code that was removed in master, and the corresponding diagnostic | Nathan Stocks | -21/+1 | |
| 2022-10-07 | migrate check_const.rs to translateable diagnostics | Nathan Stocks | -4/+29 | |
| 2022-10-04 | Merge the `~const` and `impl const` checks and add some explanatory notes | Oli Scherer | -26/+0 | |
| 2022-09-30 | Use let chains instead of let else | fee1-dead | -1/+1 | |
| 2022-09-27 | Fix ICE in const_trait check code | Deadbeef | -1/+1 | |
| This fixes #102156. | ||||
| 2022-09-16 | Require `#[const_trait]` for `const` `impl`s | Deadbeef | -0/+22 | |
| 2022-08-01 | Remove trait_of_item query. | Camille GILLOT | -1/+1 | |
| 2022-07-13 | Rename `debugging_opts` to `unstable_opts` | Joshua Nelson | -1/+1 | |
| This is no longer used only for debugging options (e.g. `-Zoutput-width`, `-Zallow-features`). Rename it to be more clear. | ||||
| 2022-07-07 | Reword comments and rename HIR visiting methods. | Camille GILLOT | -1/+1 | |
| 2022-05-30 | Remove `#[default..]` and add `#[const_trait]` | Deadbeef | -62/+0 | |
| 2022-05-14 | allocate string only when error will be emitted | Miguel Guarniz | -2/+7 | |
| Signed-off-by: Miguel Guarniz <mi9uel9@gmail.com> | ||||
| 2022-05-13 | change back to using tcx.hir() visit-item method | Miguel Guarniz | -29/+7 | |
| Signed-off-by: Miguel Guarniz <mi9uel9@gmail.com> | ||||
| 2022-05-13 | replace hir().def_kind for def_kind query in rustc_passes | Miguel Guarniz | -1/+1 | |
| Signed-off-by: Miguel Guarniz <mi9uel9@gmail.com> | ||||
| 2022-05-13 | replace usage of visit_item_likes_in_modules with hir_module_items query | Miguel Guarniz | -2/+20 | |
| Signed-off-by: Miguel Guarniz <mi9uel9@gmail.com> | ||||
| 2022-05-13 | Remove CheckConstTraitVisitor | Miguel Guarniz | -68/+54 | |
| Signed-off-by: Miguel Guarniz <mi9uel9@gmail.com> | ||||
| 2022-05-10 | only_local: always check for misuse | lcnr | -4/+6 | |
| 2022-03-30 | Spellchecking compiler comments | Yuri Astrakhan | -1/+1 | |
| This PR cleans up the rest of the spelling mistakes in the compiler comments. This PR does not change any literal or code spelling issues. | ||||
| 2022-03-22 | use `format-args-capture` and remove unnecessary nested if blocks in some ↵ | Takayuki Maeda | -3/+1 | |
| parts of rustc_passes break before the `&&` Update compiler/rustc_passes/src/check_const.rs Co-authored-by: bjorn3 <bjorn3@users.noreply.github.com> | ||||
| 2022-02-23 | rustc_errors: let `DiagnosticBuilder::emit` return a "guarantee of emission". | Eduard-Mihai Burtescu | -1/+3 | |
| 2022-01-16 | Replace NestedVisitorMap with NestedFilter | Cameron Steffen | -5/+5 | |
| 2022-01-07 | Add query to avoid name comparison in `leaf_def` | Matthew Jasper | -5/+8 | |
| 2021-12-15 | Remove `in_band_lifetimes` for `rustc_passes` | Peter Jaszkowiak | -4/+4 | |
| 2021-11-24 | Allow features like const_try in d_m_b_i_c | Deadbeef | -0/+6 | |
| 2021-11-07 | more clippy fixes | Matthias Krüger | -3/+3 | |
| 2021-10-11 | Use Ancestory to check default fn in const impl instead of comparing idents | Gary Guo | -18/+26 | |
| 2021-08-15 | Introduce hir::ExprKind::Let - Take 2 | Caio | -7/+2 | |
| 2021-07-29 | Add feature gates for `for` and `?` in consts | Jonas Schievink | -4/+5 | |
| 2021-07-10 | Applied suggestions | Deadbeef | -11/+6 | |
| 2021-07-10 | Add #[default_method_body_is_const] | Deadbeef | -18/+31 | |
| 2021-07-01 | Do the check even when the feature is not enabled | Deadbeef | -3/+6 | |
| 2021-06-23 | deny using default function in impl const Trait | Deadbeef | -0/+59 | |
| 2021-02-21 | remove redundant wrapping of return types of allow_internal_unstable() and ↵ | Matthias Krüger | -1/+1 | |
| rustc_allow_const_fn_unstable() | ||||
