about summary refs log tree commit diff
path: root/compiler/rustc_hir_analysis/src/check/errs.rs
AgeCommit message (Collapse)AuthorLines
2024-11-05Remove unused errs.rs fileEric Huss-88/+0
This module was removed in #124895, but the actual file was not removed.
2024-09-22Reformat using the new identifier sorting from rustfmtMichael Goulet-5/+4
2024-08-27Add `warn(unreachable_pub)` to `rustc_hir_analysis`.Nicholas Nethercote-2/+2
2024-07-18Use more accurate span for `addr_of!` suggestionEsteban Küber-13/+22
Use a multipart suggestion instead of a single whole-span replacement: ``` error[E0796]: creating a shared reference to a mutable static --> $DIR/reference-to-mut-static-unsafe-fn.rs:10:18 | LL | let _y = &X; | ^^ shared reference to mutable static | = note: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior help: use `addr_of!` instead to create a raw pointer | LL | let _y = addr_of!(X); | ~~~~~~~~~ + ```
2024-06-18Prefer `dcx` methods over fields or fields' methodsOli Scherer-1/+1
2024-06-04Add safe/unsafe to static inside extern blocksSantiago Pastorino-1/+2
2024-04-15Fix pretty hir for anon consts in diagnosticsMichael Goulet-4/+4
2024-03-27Implement `mut ref`/`mut ref mut`Jules Bertholet-25/+17
2024-03-14Rename `hir::StmtKind::Local` into `hir::StmtKind::Let`Guillaume Gomez-1/+1
2024-03-12s/mt/mutability/Oli Scherer-2/+1
2024-03-12Add `nested` bool to `DefKind::Static`.Oli Scherer-1/+1
Will be used in the next commit
2024-03-12Change `DefKind::Static` to a struct variantOli Scherer-1/+1
2024-03-05Rename all `ParseSess` variables/fields/lifetimes as `psess`.Nicholas Nethercote-1/+1
Existing names for values of this type are `sess`, `parse_sess`, `parse_session`, and `ps`. `sess` is particularly annoying because that's also used for `Session` values, which are often co-located, and it can be difficult to know which type a value named `sess` refers to. (That annoyance is the main motivation for this change.) `psess` is nice and short, which is good for a name used this much. The commit also renames some `parse_sess_created` values as `psess_created`.
2024-02-27Split rustc_type_ir to avoid rustc_ast from depending on itOli Scherer-2/+1
2024-02-18Improve wording of static_mut_refObei Sideg-18/+10
Rename `static_mut_ref` lint to `static_mut_refs`.
2024-01-23Rename `TyCtxt::emit_spanned_lint` as `TyCtxt::emit_node_span_lint`.Nicholas Nethercote-1/+1
2024-01-06Disallow reference to `static mut` for statementsObei Sideg-0/+19
2024-01-06Disallow reference to `static mut` for expressionsObei Sideg-0/+78
Add `E0796` error code. Add `static_mut_ref` lint. This is the idea for the 2024 edition.