| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2023-01-17 | Rollup merge of #106148 - chenyukang:yukang/fix-105061-unused, r=lcnr | Dylan DPC | -24/+61 | |
| Fix unused_parens issue for higher ranked function pointers fixes #105061 r? `@lcnr` | ||||
| 2023-01-17 | Remove double spaces after dots in comments | Maybe Waffle | -3/+3 | |
| 2023-01-16 | comments feedback | yukang | -24/+28 | |
| 2023-01-16 | fix #104440 | Takayuki Maeda | -21/+26 | |
| 2023-01-15 | Rollup merge of #106906 - matthiaskrgr:clone, r=Nilstrieb | Matthias Krüger | -3/+3 | |
| remove redundant clones | ||||
| 2023-01-15 | remove redundant clones | Matthias Krüger | -3/+3 | |
| 2023-01-15 | Fix regression in `unused_braces` with macros | clubby789 | -4/+8 | |
| 2023-01-14 | Fix `unused_braces` on generic const expr macro call | clubby789 | -0/+1 | |
| 2023-01-14 | fix issues in unused lint | yukang | -18/+46 | |
| 2023-01-14 | fix #105061, Fix unused_parens issue for higher ranked function pointers | yukang | -1/+6 | |
| 2023-01-13 | Check ADT fields for copy implementations considering regions | Michael Goulet | -8/+10 | |
| 2023-01-13 | Auto merge of #106776 - oli-obk:om_nom_nom_nom_nom, r=cjgillot | bors | -1/+1 | |
| Feed a bunch of queries instead of tracking fields on TyCtxt r? `@cjgillot` pulled out of https://github.com/rust-lang/rust/pull/105462 | ||||
| 2023-01-13 | Auto merge of #101138 - Rejyr:diagnostic-migration-rustc-lint-pt2, r=davidtwco | bors | -1372/+2236 | |
| Migrate `rustc_lint` lint diagnostics Part 2 of [Migrate `rustc_lint` errors to `SessionDiagnostic`](https://github.com/rust-lang/rust/pull/100776) r? `@davidtwco` # TODO - [x] Refactor some lints manually implementing `DecorateLint` to use `Option<Subdiagnostic>`. - [x] Add `#[rustc_lint_diagnostics]` to lint functions in `context.rs`. - [x] Migrate `hidden_unicode_codepoints.rs`. - [x] Migrate `UnsafeCode` in `builtin.rs`. - [x] Migrate the rest of `builtin.rs`. | ||||
| 2023-01-12 | Feed the `features_query` instead of grabbing it from the session lazily | Oli Scherer | -1/+1 | |
| 2023-01-12 | Mark ZST as FFI-safe if all its fields are PhantomData | Arthur Carcano | -23/+23 | |
| Modify the linting behavior and add the corresponding regression test | ||||
| 2023-01-11 | Auto merge of #105919 - uweigand:s390x-stack-overflow, r=Nilstrieb | bors | -1/+2 | |
| Fix stack overflow in recursive AST walk in early lint The src/test/ui/issues/issue-74564-if-expr-stack-overflow.rs test case added to verify https://github.com/rust-lang/rust/issues/74564 still crashes with a stack overflow on s390x-ibm-linux. Symptom is a very deep recursion in compiler/rustc_lint/src/early.rs: fn visit_expr(&mut self, e: &'a ast::Expr) { self.with_lint_attrs(e.id, &e.attrs, |cx| { lint_callback!(cx, check_expr, e); ast_visit::walk_expr(cx, e); }) } (where walk_expr recursively calls back into visit_expr). The crash happens at a nesting depth of over 17000 stack frames when using the default 8 MB stack size on s390x. This patch fixes the problem by adding a ensure_sufficient_stack call to the with_lint_attrs routine (which also should take care of all the other mutually recursive visitors here). Fixes part of https://github.com/rust-lang/rust/issues/105383. | ||||
| 2023-01-09 | refactor: cleanup | Rejyr | -49/+3 | |
| 2023-01-09 | migrate: `deref_into_dyn_supertrait.rs` | Rejyr | -18/+30 | |
| 2023-01-09 | add: allow lints in `lints.rs` | Rejyr | -0/+2 | |
| 2023-01-09 | migrate: rest of `builtin.rs` without `builtin_asm_labels` | Rejyr | -183/+353 | |
| 2023-01-09 | migrate: `UnsafeCode` in `builtin.rs` | Rejyr | -83/+63 | |
| 2023-01-09 | migrate: `hidden_unicode_codepoints.rs` | Rejyr | -50/+107 | |
| 2023-01-09 | add: `#[rustc_lint_diagnostics]` for more `context.rs` functions. | Rejyr | -0/+5 | |
| 2023-01-09 | refactor: refactor to derive for some lints. | Rejyr | -139/+96 | |
| 2023-01-09 | migrate: `for_loops_over_fallibles.rs` | Rejyr | -46/+78 | |
| 2023-01-09 | migrate: `expect.rs` | Rejyr | -30/+41 | |
| 2023-01-09 | migrate(wip): `builtin.rs` | Rejyr | -229/+376 | |
| 2023-01-09 | migrate: `internal.rs` | Rejyr | -76/+97 | |
| 2023-01-09 | migrate: `ImproperCTypes` | Rejyr | -29/+55 | |
| 2023-01-09 | migrate: `let_underscore.rs` | Rejyr | -33/+62 | |
| fix: NonBindingLetSub | ||||
| 2023-01-09 | migrate: `levels.rs` | Rejyr | -107/+116 | |
| 2023-01-09 | add: `emit{,_spanned}_lint` for `LintLevelsBuilder` | Rejyr | -19/+39 | |
| add: `emit_spanned_lint` and `emit_lint` for `LintLevelsBuilder` migrate: `DeprecatedLintName` | ||||
| 2023-01-09 | refactor: comment about lint location | Rejyr | -0/+13 | |
| 2023-01-09 | fix: merge conflict | Rejyr | -29/+55 | |
| 2023-01-09 | update: `lints.rs` for renamed traits | Rejyr | -11/+23 | |
| update: `lints.rs` for renamed `SessionSubdiagnostic` and `AddSubdiagnostic` fix: NonSnakeCaseDiagSub fix: OverflowingBinHexSign | ||||
| 2023-01-09 | add: `lints` for `errors.rs` | Rejyr | -1/+3 | |
| 2023-01-09 | migrate: `early.rs` and `enum_intrinsics_non_enums.rs` | Rejyr | -8/+30 | |
| 2023-01-09 | migrate: `array_into_iter.rs` | Rejyr | -39/+45 | |
| 2023-01-09 | migrate: `methods.rs` | Rejyr | -9/+15 | |
| 2023-01-09 | migrate: `non_ascii_idents.rs` | Rejyr | -35/+49 | |
| 2023-01-09 | migrate: `non_fmt_panic.rs` | Rejyr | -33/+53 | |
| 2023-01-09 | migrate: `nonstandard_style.rs` | Rejyr | -81/+156 | |
| 2023-01-09 | migrate: `noop_method_call.rs` | Rejyr | -7/+19 | |
| 2023-01-09 | migrate: `pass_by_value.rs` | Rejyr | -13/+14 | |
| 2023-01-09 | migrate: `redundant_semicolon.rs` | Rejyr | -12/+13 | |
| 2023-01-09 | migrate: `traits.rs` | Rejyr | -16/+41 | |
| 2023-01-09 | migrate: `unused.rs` | Rejyr | -103/+201 | |
| 2023-01-09 | migrate: `types.rs` | Rejyr | -154/+248 | |
| 2023-01-09 | add: `lints.rs` | Rejyr | -10/+15 | |
| add: `lints.rs` refactor: move `InvalidAtomicOrderingDiag` to `lints.rs` | ||||
| 2023-01-04 | Rollup merge of #106403 - compiler-errors:rename-hir-methods, r=cjgillot | Michael Goulet | -8/+6 | |
| Rename `hir::Map::{get_,find_}parent_node` to `hir::Map::{,opt_}parent_id`, and add `hir::Map::{get,find}_parent` The `hir::Map::get_parent_node` function doesn't return a `Node`, and I think that's quite confusing. Let's rename it to something that sounds more like something that gets the parent hir id => `hir::Map::parent_id`. Same with `find_parent_node` => `opt_parent_id`. Also, combine `hir.get(hir.parent_id(hir_id))` and similar `hir.find(hir.parent_id(hir_id))` function into new functions that actually retrieve the parent node in one call. This last commit is the only one that might need to be looked at closely. | ||||
