about summary refs log tree commit diff
AgeCommit message (Collapse)AuthorLines
2023-01-09migrate: `internal.rs`Rejyr-76/+99
2023-01-09migrate: `ImproperCTypes`Rejyr-29/+55
2023-01-09migrate: `let_underscore.rs`Rejyr-33/+74
fix: NonBindingLetSub
2023-01-09migrate: `levels.rs`Rejyr-107/+128
2023-01-09add: `emit{,_spanned}_lint` for `LintLevelsBuilder`Rejyr-19/+43
add: `emit_spanned_lint` and `emit_lint` for `LintLevelsBuilder` migrate: `DeprecatedLintName`
2023-01-09refactor: comment about lint locationRejyr-0/+13
2023-01-09fix: merge conflictRejyr-29/+55
2023-01-09update: `lints.rs` for renamed traitsRejyr-11/+23
update: `lints.rs` for renamed `SessionSubdiagnostic` and `AddSubdiagnostic` fix: NonSnakeCaseDiagSub fix: OverflowingBinHexSign
2023-01-09add: `lints` for `errors.rs`Rejyr-1/+3
2023-01-09migrate: `early.rs` and `enum_intrinsics_non_enums.rs`Rejyr-8/+30
2023-01-09migrate: `array_into_iter.rs`Rejyr-39/+45
2023-01-09migrate: `methods.rs`Rejyr-9/+15
2023-01-09migrate: `non_ascii_idents.rs`Rejyr-35/+49
2023-01-09migrate: `non_fmt_panic.rs`Rejyr-33/+53
2023-01-09migrate: `nonstandard_style.rs`Rejyr-81/+156
2023-01-09migrate: `noop_method_call.rs`Rejyr-7/+19
2023-01-09migrate: `pass_by_value.rs`Rejyr-13/+14
2023-01-09migrate: `redundant_semicolon.rs`Rejyr-12/+13
2023-01-09migrate: `traits.rs`Rejyr-16/+41
2023-01-09migrate: `unused.rs`Rejyr-103/+201
2023-01-09migrate: `types.rs`Rejyr-154/+248
2023-01-09add: `lints.rs`Rejyr-10/+15
add: `lints.rs` refactor: move `InvalidAtomicOrderingDiag` to `lints.rs`
2023-01-09Auto merge of #106637 - fee1-dead-contrib:rollup-ticvmsd, r=fee1-deadbors-1336/+2284
Rollup of 10 pull requests Successful merges: - #105292 (Change a commit_if_ok call to probe) - #105655 (Remove invalid case for mutable borrow suggestion) - #106047 (Fix ui constant tests for big-endian platforms) - #106061 (Enable Shadow Call Stack for Fuchsia on AArch64) - #106164 (Move `check_region_obligations_and_report_errors` to `TypeErrCtxt`) - #106291 (Fix incorrect suggestion for extra `&` in pattern) - #106389 (Simplify some canonical type alias names) - #106468 (Use FxIndexSet when updating obligation causes in `adjust_fulfillment_errors_for_expr_obligation`) - #106549 (Use fmt named parameters in rustc_borrowck) - #106614 (error-code docs improvements (No. 2)) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
2023-01-09Rollup merge of #106614 - Ezrashaw:ui-test-fixups-2, r=GuillaumeGomezfee1-dead-6/+88
error-code docs improvements (No. 2) - Added empty error-code docs for `E0208`, `E0640` and `E0717` with the "internal" header as discussed on Discord. - Wrote docs and UI test for `E0711`, again with the header. - `tidy` changes are common-sense and make everything pass, `style.rs` hack is annoying though. r? ```@GuillaumeGomez```
2023-01-09Rollup merge of #106549 - wcampbell0x2a:use-fmt-named-parameters-borrowck, ↵fee1-dead-92/+63
r=estebank Use fmt named parameters in rustc_borrowck
2023-01-09Rollup merge of #106468 - compiler-errors:err-instability, r=lcnrfee1-dead-2/+9
Use FxIndexSet when updating obligation causes in `adjust_fulfillment_errors_for_expr_obligation` I have no idea how to test this reliably, but I've **manually** verified it fixes the instability in #106417 that isn't due to dtolnay/trybuild#212. Fixes #106417
2023-01-09Rollup merge of #106389 - compiler-errors:no-canonicalized, r=lcnrfee1-dead-55/+52
Simplify some canonical type alias names * delete the `Canonicalized<'tcx>` type alias in favor for `Canonical<'tcx>` * `CanonicalizedQueryResponse` -> `CanonicalQueryResponse` I don't particularly care about the latter, but it should be consistent. We could alternatively delete the first alias and rename the struct to `Canonicalized`, and then keep the name of `CanonicalizedQueryResponse` untouched.
2023-01-09Rollup merge of #106291 - obeis:issue-106182, r=oli-obkfee1-dead-3/+65
Fix incorrect suggestion for extra `&` in pattern Closes #106182
2023-01-09Rollup merge of #106164 - compiler-errors:check-region-tweak, r=oli-obkfee1-dead-31/+34
Move `check_region_obligations_and_report_errors` to `TypeErrCtxt` Makes sense for this function to live with its sibling `resolve_regions_and_report_errors`, around which it's basically just a wrapper.
2023-01-09Rollup merge of #106061 - ilovepi:fuchsia-scs, r=oli-obkfee1-dead-1/+3
Enable Shadow Call Stack for Fuchsia on AArch64 Fuchsia already uses SCS by default for C/C++ code on ARM hardware. This patch allows SCS to be used for Rust code as well.
2023-01-09Rollup merge of #106047 - uweigand:s390x-test-bigendian-ui, r=oli-obkfee1-dead-1130/+1716
Fix ui constant tests for big-endian platforms A number of tests under ui/const-ptr and ui/consts are currently failing on big-endian platforms as the binary encoding of some constants is hard-coded in the stderr test files. Fix this by a combination of two types of changes: - Where possible (i.e. where the particular value of a constant does not affect the purpose of the test), choose constant values that have the same encoding on big- and little-endian platforms. - Where this is not possible, provide a normalize-stderr-test rule that transforms the printed big-endian encoding of such constants into the corresponding little-endian form. Fixes part of https://github.com/rust-lang/rust/issues/105383.
2023-01-09Rollup merge of #105655 - RedDocMD:bug-105645, r=oli-obkfee1-dead-0/+33
Remove invalid case for mutable borrow suggestion If we have a call such as `foo(&mut buf)` and after reference collapsing the type is inferred as `&T` where-as the required type is `&mut T`, don't suggest `foo(&mut mut buf)`. This is wrong syntactically and the issue lies elsewhere, not in the borrow. Fixes #105645
2023-01-09Rollup merge of #105292 - JulianKnodt:no_eager_commit, r=BoxyUwUfee1-dead-16/+221
Change a commit_if_ok call to probe Removes an over-eager `commit_if_ok` which makes inference worse. I'm not entirely sure whether it's ok to remove the check that types are the same, because casting seems to cause equality checks with incorrect types? Fixes #105037 r? ```@BoxyUwU```
2023-01-09Auto merge of #101947 - aliemjay:astconv-normalize, r=lcnrbors-503/+1182
Don't normalize in AstConv See individual commits. Fixes #101350 Fixes #54940
2023-01-09Auto merge of #106340 - saethlin:propagate-operands, r=oli-obkbors-5/+47
Always permit ConstProp to exploit arithmetic identities Fixes https://github.com/rust-lang/rust/issues/72751 Initially, I thought I would need to enable operand propagation then do something else, but actually https://github.com/rust-lang/rust/pull/74491 already has the fix for the issue in question! It looks like this optimization was put under MIR opt level 3 due to possible soundness/stability implications, then demoted further to MIR opt level 4 when MIR opt level 2 became associated with `--release`. Perhaps in the past we were doing CTFE on optimized MIR? We aren't anymore, so this optimization has no stability implications. r? `@oli-obk`
2023-01-09Clean upkadmin-25/+133
Simplify match statement Add multiple tests - 1 test for checking `N + 1 + 1` does not unify with `N+1` - 2 tests for checking that a function that uses two parameters only returns the parameter that is actually used. - Check exact repeat predicates
2023-01-09Check for duplicateskadmin-3/+15
2023-01-09Set !const_evaluatable if ambig. and not inferredkadmin-12/+48
This prevents an ICE due to a value not actually being evaluatable later.
2023-01-09Change based on commentskadmin-8/+38
Instead of just switching to a probe, check for different matches, and see how many there are. If one, unify it, otherwise return true and let it be unified later.
2023-01-09Change commit_if_ok to probekadmin-21/+40
2023-01-09Auto merge of #106582 - compiler-errors:better-spans-on-bad-tys, r=lcnrbors-127/+89
Improve spans of non-WF implied bound types Fixes #60980
2023-01-09Auto merge of #106616 - compiler-errors:rollup-emcj0o3, r=compiler-errorsbors-204/+594
Rollup of 8 pull requests Successful merges: - #104163 (Don't derive Debug for `OnceWith` & `RepeatWith`) - #106131 (Mention "signature" rather than "fn pointer" when impl/trait methods are incompatible) - #106363 (Structured suggestion for `&mut dyn Iterator` when possible) - #106497 (Suggest using clone when we have &T and T implemented Clone) - #106584 (Document that `Vec::from_raw_parts[_in]` must be given a pointer from the correct allocator.) - #106600 (Suppress type errors that come from private fields) - #106602 (Add goml scripts to tidy checks) - #106606 (Do not emit structured suggestion for turbofish with wrong span) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
2023-01-09fix: fix CI errorsEzra Shaw-2/+18
2023-01-08Rollup merge of #106606 - estebank:bad-nested-turbofish, r=compiler-errorsMichael Goulet-2/+24
Do not emit structured suggestion for turbofish with wrong span Fix #79161.
2023-01-08Rollup merge of #106602 - GuillaumeGomez:tidy-goml-scripts, r=Mark-SimulacrumMichael Goulet-16/+45
Add goml scripts to tidy checks r? ``@notriddle``
2023-01-08Rollup merge of #106600 - compiler-errors:no-private-field-ty-err, r=estebankMichael Goulet-11/+38
Suppress type errors that come from private fields Fixes #57320 There was some discussion here (https://github.com/rust-lang/rust/issues/57320#issuecomment-451308420), but I honestly think the second error is worth suppressing regardless. I would be open to feedback though -- perhaps we can suppress the `.len()` suggestion if there's type error (since we have access to [`Expectation`](https://doc.rust-lang.org/nightly/nightly-rustc/rustc_hir_typeck/enum.Expectation.html), we can determine that). r? ``@estebank``
2023-01-08Rollup merge of #106584 - kpreid:vec-allocator, r=JohnTitorMichael Goulet-0/+5
Document that `Vec::from_raw_parts[_in]` must be given a pointer from the correct allocator. Currently, the documentation of `Vec::from_raw_parts` and `Vec::from_raw_parts_in` says nothing about what allocator the pointer must come from. This PR adds that missing information explicitly.
2023-01-08Rollup merge of #106497 - chenyukang:yukang/fix-106443-sugg-clone, r=estebankMichael Goulet-1/+200
Suggest using clone when we have &T and T implemented Clone Fixes #106443
2023-01-08Rollup merge of #106363 - estebank:mutability-mismatch-arg, r=NilstriebMichael Goulet-30/+91
Structured suggestion for `&mut dyn Iterator` when possible Fix #37914.
2023-01-08Rollup merge of #106131 - compiler-errors:not-ptrs, r=davidtwcoMichael Goulet-142/+169
Mention "signature" rather than "fn pointer" when impl/trait methods are incompatible Fixes #80929 Fixes #67296