-
Notifications
You must be signed in to change notification settings - Fork 12.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rollup of 10 pull requests #120620
Rollup of 10 pull requests #120620
Commits on Jan 13, 2024
-
Configuration menu - View commit details
-
Copy full SHA for f25126e - Browse repository at this point
Copy the full SHA f25126eView commit details
Commits on Feb 1, 2024
-
Tweak
emit_stashed_diagnostics
.`take` + `into_iter` + pattern matching is nicer than `drain` + `map` + `collect`.
Configuration menu - View commit details
-
Copy full SHA for 3434466 - Browse repository at this point
Copy the full SHA 3434466View commit details -
A small fix in
enforce_slug_naming.rs
.In rust-lang#119972 the code should have become `E0123` rather than `0123`. This fix doesn't affect the outcome because the proc macro errors out before the type of the code is checked, but the fix makes the test's code consistent with other similar code elsewhere.
Configuration menu - View commit details
-
Copy full SHA for 3db37fb - Browse repository at this point
Copy the full SHA 3db37fbView commit details -
Fit more values into
DiagnosticArgValue::Number
.It contains an `i128`, but when creating them we convert any number outside the range -100..100 to a string, because Fluent uses an `f64`. It's all a bit strange. This commit changes the `i128` to an `i32`, which fits safely in Fluent's `f64`, and removes the -100..100 range check. This means that only integers outside the range of `i32` will be converted to strings.
Configuration menu - View commit details
-
Copy full SHA for 26eb6da - Browse repository at this point
Copy the full SHA 26eb6daView commit details -
When there are two possibilities, both of which use a `String`, it's nicer to use a struct than an enum. Especially when mapping the contents into a tuple.
Configuration menu - View commit details
-
Copy full SHA for 2621f7f - Browse repository at this point
Copy the full SHA 2621f7fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6ac035d - Browse repository at this point
Copy the full SHA 6ac035dView commit details
Commits on Feb 2, 2024
-
coverage: Use normal
edition:
headers in coverage testsSome of these tests were originally written as part of a custom `run-make` test, so at that time they weren't able to use the normal compiletest header directive parser. Now that they're properly integrated, there's no need for them to use `compile-flags` to specify the edition, since they can use `edition` instead.
Configuration menu - View commit details
-
Copy full SHA for c9c049b - Browse repository at this point
Copy the full SHA c9c049bView commit details -
Clean up some things in the name resolver
* Get rid of a typo in a function name * Rename `currently_processing_generics`: The old name confused me at first since I assumed it referred to generic *parameters* when it was in fact referring to generic *arguments*. Generics are typically short for generic params. * Get rid of a few unwraps by properly leveraging slice patterns
Configuration menu - View commit details
-
Copy full SHA for 3f7b1a5 - Browse repository at this point
Copy the full SHA 3f7b1a5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5906237 - Browse repository at this point
Copy the full SHA 5906237View commit details -
Rename
buffer_non_error_diag
asbuffer_non_error
.To match `buffer_error`.
Configuration menu - View commit details
-
Copy full SHA for f066be5 - Browse repository at this point
Copy the full SHA f066be5View commit details -
Remove
BorrowckErrors::set_tainted_by_errors
.It has no effect. Note that `infcx.set_tainted_by_errors()` is still called, so taintedness is still being propagated.
Configuration menu - View commit details
-
Copy full SHA for 3a02ebc - Browse repository at this point
Copy the full SHA 3a02ebcView commit details -
Remove
BorrowckErrors::tainted_by_errors
.`BorrowckErrors` stores a mix of error and non-error diags in `buffered`. As a result, it downgrades `DiagnosticBuilder`s to `Diagnostic`s, losing the emission guarantees, and so has to use a `tainted_by_errors` field to record whether an error has occurred. This commit splits `buffered` into `buffered_errors` and `buffered_non_errors`, keeping them as `DiagnosticBuilder`s and preserving the emission guarantees. This also requires fixing a bunch of incorrect lifetimes on `DiagnosticBuilder` use points.
Configuration menu - View commit details
-
Copy full SHA for 5fd824d - Browse repository at this point
Copy the full SHA 5fd824dView commit details -
Inline and remove
DiagnosticBuilder::into_diagnostic
.It now has a single call site.
Configuration menu - View commit details
-
Copy full SHA for 2e6bea5 - Browse repository at this point
Copy the full SHA 2e6bea5View commit details -
Rename
BorrowckErrors
asBorrowckDiags
.And some related things. Because it can hold non-error diagnostics.
Configuration menu - View commit details
-
Copy full SHA for b6a4f03 - Browse repository at this point
Copy the full SHA b6a4f03View commit details -
Configuration menu - View commit details
-
Copy full SHA for 54c4f94 - Browse repository at this point
Copy the full SHA 54c4f94View commit details -
Remove an out-of-date comment.
`DiagnosticBuilderInner` was removed some time ago.
Configuration menu - View commit details
-
Copy full SHA for 585367f - Browse repository at this point
Copy the full SHA 585367fView commit details -
- `emitted_at` isn't used outside the crate. - `code` and `messages` are public fields, so there's no point have trivial getters/setters for them. - `suggestions` is public, so the comment about "functionality on `Diagnostic`" isn't needed.
Configuration menu - View commit details
-
Copy full SHA for a9a2e15 - Browse repository at this point
Copy the full SHA a9a2e15View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8ba25d0 - Browse repository at this point
Copy the full SHA 8ba25d0View commit details -
Configuration menu - View commit details
-
Copy full SHA for df322fc - Browse repository at this point
Copy the full SHA df322fcView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6fdaf3e - Browse repository at this point
Copy the full SHA 6fdaf3eView commit details -
Configuration menu - View commit details
-
Copy full SHA for cd4c5cd - Browse repository at this point
Copy the full SHA cd4c5cdView commit details -
Configuration menu - View commit details
-
Copy full SHA for b506cce - Browse repository at this point
Copy the full SHA b506cceView commit details -
Simplify future breakage control flow.
`emit_future_breakage` calls `self.dcx().take_future_breakage_diagnostics()` and then passes the result to `self.dcx().emit_future_breakage_report(diags)`. This commit removes the first of these and lets `emit_future_breakage_report` do the taking. It also inlines and removes what is left of `emit_future_breakage`, which has a single call site.
Configuration menu - View commit details
-
Copy full SHA for 0621cd4 - Browse repository at this point
Copy the full SHA 0621cd4View commit details -
Configuration menu - View commit details
-
Copy full SHA for be64802 - Browse repository at this point
Copy the full SHA be64802View commit details -
Configuration menu - View commit details
-
Copy full SHA for ef37dcb - Browse repository at this point
Copy the full SHA ef37dcbView commit details
Commits on Feb 3, 2024
-
hir: Remove the generic type parameter from
MaybeOwned
It's only ever used with a reference to `OwnerInfo` as an argument.
Configuration menu - View commit details
-
Copy full SHA for c5eca33 - Browse repository at this point
Copy the full SHA c5eca33View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8f1573a - Browse repository at this point
Copy the full SHA 8f1573aView commit details -
Check for presence of field in typeck results before visiting it
Co-authored-by: Michael Goulet <michael@errs.io>
Configuration menu - View commit details
-
Copy full SHA for 4f773af - Browse repository at this point
Copy the full SHA 4f773afView commit details -
Rollup merge of rust-lang#119543 - usamoi:avx512fp16, r=oli-obk
add avx512fp16 to x86 target features std_detect avx512fp16: rust-lang/stdarch#1508
Configuration menu - View commit details
-
Copy full SHA for 17670ca - Browse repository at this point
Copy the full SHA 17670caView commit details -
Rollup merge of rust-lang#120004 - Mark-Simulacrum:relnotes-1.76, r=M…
…ark-Simulacrum Release notes for 1.76 Cargo, library stabilizations and some cleanups, particularly to future compat, still pending. cc `@cuviper` `@rust-lang/release`
Configuration menu - View commit details
-
Copy full SHA for 98d0d45 - Browse repository at this point
Copy the full SHA 98d0d45View commit details -
Rollup merge of rust-lang#120562 - oli-obk:revert_stuff, r=cuviper
Revert unsound libcore changes fixes rust-lang#120537 these were introduced in rust-lang#119911
Configuration menu - View commit details
-
Copy full SHA for 977945d - Browse repository at this point
Copy the full SHA 977945dView commit details -
Rollup merge of rust-lang#120566 - Zalathar:edition, r=compiler-errors
coverage: Use normal `edition:` headers in coverage tests Some of these tests were originally written as part of a custom `run-make` test, so at that time they weren't able to use the normal compiletest header directive parser. Now that they're properly integrated, there's no need for them to use `compile-flags` to specify the edition, since they can use `edition` instead. In most cases the `.cov-map` snapshot isn't affected at all, but in a few cases we add or remove a line, which slightly disturbs the first line number in each instrumented function.
Configuration menu - View commit details
-
Copy full SHA for 892b0fd - Browse repository at this point
Copy the full SHA 892b0fdView commit details -
Rollup merge of rust-lang#120570 - fmease:change-ty-to-ct-param-sugg,…
… r=compiler-errors Suggest changing type to const parameters if we encounter a type in the trait bound position The first commit is just drive-by cleanup. Provide a structured suggestion if the user forgot to prefix a “const parameter” with `const`, e.g., in `struct Tagged<TAG: u64>;`. This happens to me from time to time. Maybe C++ devs are also prone to this mistake given template syntax looks like `template<typename T, uint32_t N>`.
Configuration menu - View commit details
-
Copy full SHA for 7c932d9 - Browse repository at this point
Copy the full SHA 7c932d9View commit details -
Rollup merge of rust-lang#120571 - nnethercote:misc-diagnostics, r=ol…
…i-obk Miscellaneous diagnostics cleanups All found while working on some speculative, invasive changes, but worth doing in their own right. r? `@oli-obk`
Configuration menu - View commit details
-
Copy full SHA for b9c87b4 - Browse repository at this point
Copy the full SHA b9c87b4View commit details -
Rollup merge of rust-lang#120573 - nnethercote:rm-BorrowckErrors-tain…
…ted_by_errors, r=oli-obk Remove `BorrowckErrors::tainted_by_errors` This PR removes one of the `tainted_by_errors` occurrences, replacing it with direct use of `ErrorGuaranteed`. r? `@oli-obk`
Configuration menu - View commit details
-
Copy full SHA for 019d281 - Browse repository at this point
Copy the full SHA 019d281View commit details -
Rollup merge of rust-lang#120592 - trevyn:cleanup-to-string, r=Nilstrieb
Remove unnecessary `.to_string()`/`.as_str()`s
Configuration menu - View commit details
-
Copy full SHA for 968cff7 - Browse repository at this point
Copy the full SHA 968cff7View commit details -
Rollup merge of rust-lang#120610 - petrochenkov:maybeownogen, r=cjgillot
hir: Remove the generic type parameter from `MaybeOwned` It's only ever used with a reference to `OwnerInfo` as an argument. Follow up to rust-lang#120346.
Configuration menu - View commit details
-
Copy full SHA for 2a8fc94 - Browse repository at this point
Copy the full SHA 2a8fc94View commit details -
Rollup merge of rust-lang#120616 - fmease:fix-ice-const-eval-fail-und…
…ef-field-access, r=compiler-errors Fix ICE on field access on a tainted type after const-eval failure Fixes rust-lang#120615. r? oli-obk or compiler
Configuration menu - View commit details
-
Copy full SHA for 326839b - Browse repository at this point
Copy the full SHA 326839bView commit details