| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2024-04-03 | Remove MIR unsafe check | Matthew Jasper | -615/+0 | |
| This also remove safety information from MIR. | ||||
| 2024-02-14 | Use fewer delayed bugs. | Nicholas Nethercote | -4/+5 | |
| For some cases where it's clear that an error has already occurred, e.g.: - there's a comment stating exactly that, or - things like HIR lowering, where we are lowering an error kind The commit also tweaks some comments around delayed bug sites. | ||||
| 2024-02-06 | Add CoroutineClosure to TyKind, AggregateKind, UpvarArgs | Michael Goulet | -1/+3 | |
| 2024-01-23 | Rename `TyCtxt::emit_spanned_lint` as `TyCtxt::emit_node_span_lint`. | Nicholas Nethercote | -2/+2 | |
| 2024-01-05 | Stabilize THIR unsafeck | Matthew Jasper | -5/+6 | |
| 2023-12-28 | Remove movability from TyKind::Coroutine | Michael Goulet | -1/+1 | |
| 2023-12-24 | Remove `Session` methods that duplicate `DiagCtxt` methods. | Nicholas Nethercote | -2/+2 | |
| Also add some `dcx` methods to types that wrap `TyCtxt`, for easier access. | ||||
| 2023-12-02 | Rename `HandlerInner::delay_span_bug` as `HandlerInner::span_delayed_bug`. | Nicholas Nethercote | -1/+1 | |
| Because the corresponding `Level` is `DelayedBug` and `span_delayed_bug` follows the pattern used everywhere else: `span_err`, `span_warning`, etc. | ||||
| 2023-11-29 | Rollup merge of #118333 - eduardosm:print-missing-target-features, r=est31 | Matthias Krüger | -7/+22 | |
| Print list of missing target features when calling a function with target features outside an unsafe block Fixes https://github.com/rust-lang/rust/issues/108680 Supersedes https://github.com/rust-lang/rust/pull/109710. I used the same wording for the messages, but the implementation is different. r? `@est31` | ||||
| 2023-11-27 | Address unused tuple struct fields in the compiler | Jake Goulding | -3/+3 | |
| 2023-11-27 | Print list of missing target features when calling a function with target ↵ | Eduardo Sánchez Muñoz | -7/+22 | |
| features outside an unsafe block | ||||
| 2023-11-26 | rustc: `hir().local_def_id_to_hir_id()` -> `tcx.local_def_id_to_hir_id()` ↵ | Vadim Petrochenkov | -2/+2 | |
| 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-20 | s/Generator/Coroutine/ | Oli Scherer | -2/+2 | |
| 2023-10-13 | Format all the let chains in compiler | Michael Goulet | -2/+1 | |
| 2023-10-04 | Remove mir::LocalDecl::internal. | Camille GILLOT | -1/+1 | |
| 2023-09-21 | rename mir::Constant -> mir::ConstOperand, mir::ConstKind -> mir::Const | Ralf Jung | -3/+3 | |
| 2023-09-06 | fix #115348 | mojave2 | -1/+1 | |
| 2023-08-24 | when terminating during unwinding, show the reason why | Ralf Jung | -1/+1 | |
| 2023-08-20 | give some unwind-related terminators a more clear name | Ralf Jung | -2/+2 | |
| 2023-07-14 | Introduce ExtentUnord trait for collections that can safely consume UnordItems. | Michael Woerister | -1/+1 | |
| 2023-06-13 | Auto merge of #112017 - Nemo157:unsafe-block-rustfix, r=eholk | bors | -6/+25 | |
| Add MVP suggestion for `unsafe_op_in_unsafe_fn` Rebase of https://github.com/rust-lang/rust/pull/99827 cc tracking issue https://github.com/rust-lang/rust/issues/71668 No real changes since the original PR, just migrated the new suggestion to use fluent messages and added a couple more testcases, AFAICT from the discussion there were no outstanding changes requested. | ||||
| 2023-06-13 | Add note about unsafe functions body not being unsafe | Wim Looman | -1/+6 | |
| 2023-06-13 | Add MVP suggestion for `unsafe_op_in_unsafe_fn` | Léo Lanteri Thauvin | -6/+20 | |
| Nemo157 rebase notes: Migrated the changes to the lint into fluent | ||||
| 2023-06-02 | Separate AnonConst from ConstBlock in HIR. | Camille GILLOT | -4/+2 | |
| 2023-05-15 | Move expansion of query macros in rustc_middle to rustc_middle::query | John Kåre Alsaker | -1/+1 | |
| 2023-05-02 | Migrate `mir_transform` to translatable diagnostics | clubby789 | -45/+23 | |
| 2023-04-20 | Remove WithOptconstParam. | Camille GILLOT | -25/+7 | |
| 2023-04-06 | Rename `Abort` terminator to `Terminate` | Gary Guo | -1/+1 | |
| Unify terminology used in unwind action and terminator, and reflect the fact that a nounwind panic is triggered instead of an immediate abort is triggered for this terminator. | ||||
| 2023-03-14 | Wrap the whole LocalInfo in ClearCrossCrate. | Camille GILLOT | -1/+1 | |
| 2023-03-09 | Pacify tidy. | Camille GILLOT | -2/+2 | |
| 2023-03-09 | Ignore AscribeUserType in unsafeck to avoid duplicate diagnostics. | Camille GILLOT | -1/+3 | |
| 2023-03-09 | Introduce a no-op PlaceMention statement for `let _ =`. | Camille GILLOT | -0/+1 | |
| 2023-03-08 | Rollup merge of #108856 - Zeegomo:remove-drop-and-rep, r=tmiasko | Matthias Krüger | -1/+0 | |
| Remove DropAndReplace terminator #107844 made DropAndReplace unused, let's remove it completely from the codebase. | ||||
| 2023-03-07 | Remove DropAndReplace terminator | Giacomo Pasini | -1/+0 | |
| PR 107844 made DropAndReplace unused, let's remove it completely from the codebase. | ||||
| 2023-03-01 | Remove last instances of HashSet in query result types. | Michael Woerister | -12/+10 | |
| 2023-02-02 | Put a DefId in AggregateKind. | Camille GILLOT | -0/+1 | |
| 2023-01-29 | Auto merge of #106227 - bryangarza:ctfe-limit, r=oli-obk | bors | -0/+1 | |
| Use stable metric for const eval limit instead of current terminator-based logic This patch adds a `MirPass` that inserts a new MIR instruction `ConstEvalCounter` to any loops and function calls in the CFG. This instruction is used during Const Eval to count against the `const_eval_limit`, and emit the `StepLimitReached` error, replacing the current logic which uses Terminators only. The new method of counting loops and function calls should be more stable across compiler versions (i.e., not cause crates that compiled successfully before, to no longer compile when changes to the MIR generation/optimization are made). Also see: #103877 | ||||
| 2023-01-28 | Take a LocalDefId in hir::Visitor::visit_fn. | Camille GILLOT | -1/+1 | |
| 2023-01-23 | Create stable metric to measure long computation in Const Eval | Bryan Garza | -0/+1 | |
| This patch adds a `MirPass` that tracks the number of back-edges and function calls in the CFG, adds a new MIR instruction to increment a counter every time they are encountered during Const Eval, and emit a warning if a configured limit is breached. | ||||
| 2022-12-20 | rustc: Remove needless lifetimes | Jeremy Stucki | -3/+3 | |
| 2022-12-14 | Fix unsafetyck disabling for custom MIR | Jakob Degen | -1/+1 | |
| 2022-12-13 | Allow unsafe through inline const | Gary Guo | -3/+32 | |
| This is handled similar to closures | ||||
| 2022-11-08 | Add support for custom MIR parsing | Jakob Degen | -0/+8 | |
| 2022-11-04 | Formatting changes + add UI test | clubby789 | -10/+9 | |
| 2022-11-04 | Give a specific lint for unsafety not being inherited | clubby789 | -9/+35 | |
| 2022-10-31 | Remove bounds check with enum cast | ouz-a | -3/+1 | |
| 2022-10-27 | Accept `TyCtxt` instead of `TyCtxtAt` in `Ty::is_*` functions | Maybe Waffle | -1/+1 | |
| Functions in answer: - `Ty::is_freeze` - `Ty::is_sized` - `Ty::is_unpin` - `Ty::is_copy_modulo_regions` | ||||
| 2022-10-01 | Refactor rustc lint API | Maybe Waffle | -15/+7 | |
| 2022-09-06 | Generalize the Assume intrinsic statement to a general Intrinsic statement | Oli Scherer | -3/+1 | |
