-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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 12 pull requests #120519
Rollup of 12 pull requests #120519
Commits on Jan 27, 2024
-
std: thread_local::register_dtor fix proposal for FreeBSD.
following-up 5d3d347 commit, rust started to spin __cxa_thread_call_dtors warnings even without any TLS usage. using instead home made TLS destructor handler `register_dtor_fallback`. close rust-lang#120413
Configuration menu - View commit details
-
Copy full SHA for 4c01025 - Browse repository at this point
Copy the full SHA 4c01025View commit details
Commits on Jan 28, 2024
-
Configuration menu - View commit details
-
Copy full SHA for c367983 - Browse repository at this point
Copy the full SHA c367983View commit details
Commits on Jan 29, 2024
-
Configuration menu - View commit details
-
Copy full SHA for ad1e629 - Browse repository at this point
Copy the full SHA ad1e629View commit details -
The test was using an internal feature which doesn't really matter, but more importantly, we're now fatally exiting after the duplicate lang item, so this tests nothing.
Configuration menu - View commit details
-
Copy full SHA for a360ecd - Browse repository at this point
Copy the full SHA a360ecdView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1f89e90 - Browse repository at this point
Copy the full SHA 1f89e90View commit details
Commits on Jan 30, 2024
-
limit the names_possiblilities to less than 3
Co-authored-by: Urgau <3616612+Urgau@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for 0213c87 - Browse repository at this point
Copy the full SHA 0213c87View commit details -
Configuration menu - View commit details
-
Copy full SHA for ca243e7 - Browse repository at this point
Copy the full SHA ca243e7View commit details -
Configuration menu - View commit details
-
Copy full SHA for f6b21e9 - Browse repository at this point
Copy the full SHA f6b21e9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0b2579a - Browse repository at this point
Copy the full SHA 0b2579aView commit details -
Configuration menu - View commit details
-
Copy full SHA for cb0e8c5 - Browse repository at this point
Copy the full SHA cb0e8c5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 83e88c6 - Browse repository at this point
Copy the full SHA 83e88c6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6ef8362 - Browse repository at this point
Copy the full SHA 6ef8362View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5903142 - Browse repository at this point
Copy the full SHA 5903142View commit details -
check
RUST_BOOTSTRAP_CONFIG
inprofile_user_dist
testSigned-off-by: onur-ozkan <work@onurozkan.dev>
Configuration menu - View commit details
-
Copy full SHA for dfbbdda - Browse repository at this point
Copy the full SHA dfbbddaView commit details -
Configuration menu - View commit details
-
Copy full SHA for 75f670d - Browse repository at this point
Copy the full SHA 75f670dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 024364a - Browse repository at this point
Copy the full SHA 024364aView commit details -
Configuration menu - View commit details
-
Copy full SHA for d34b0fa - Browse repository at this point
Copy the full SHA d34b0faView commit details -
Account for unbounded type param receiver in suggestions
When encountering ```rust fn f<T>(a: T, b: T) -> std::cmp::Ordering { a.cmp(&b) //~ ERROR E0599 } ``` output ``` error[E0599]: no method named `cmp` found for type parameter `T` in the current scope --> $DIR/method-on-unbounded-type-param.rs:2:7 | LL | fn f<T>(a: T, b: T) -> std::cmp::Ordering { | - method `cmp` not found for this type parameter LL | a.cmp(&b) | ^^^ method cannot be called on `T` due to unsatisfied trait bounds | = help: items from traits can only be used if the type parameter is bounded by the trait help: the following traits define an item `cmp`, perhaps you need to restrict type parameter `T` with one of them: | LL | fn f<T: Ord>(a: T, b: T) -> std::cmp::Ordering { | +++++ LL | fn f<T: Iterator>(a: T, b: T) -> std::cmp::Ordering { | ++++++++++ ``` Fix rust-lang#120186.
Configuration menu - View commit details
-
Copy full SHA for 20b1c2a - Browse repository at this point
Copy the full SHA 20b1c2aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9ccc770 - Browse repository at this point
Copy the full SHA 9ccc770View commit details -
On E0277 be clearer about implicit
Sized
bounds on type params and ……assoc types ``` error[E0277]: the size for values of type `[i32]` cannot be known at compilation time --> f100.rs:2:33 | 2 | let _ = std::mem::size_of::<[i32]>(); | ^^^^^ doesn't have a size known at compile-time | = help: the trait `Sized` is not implemented for `[i32]` note: required by an implicit `Sized` bound in `std::mem::size_of` --> /home/gh-estebank/rust/library/core/src/mem/mod.rs:312:22 | 312 | pub const fn size_of<T>() -> usize { | ^ required by the implicit `Sized` requirement on this bound in `size_of` ``` Fix rust-lang#120178.
Configuration menu - View commit details
-
Copy full SHA for 2875d7e - Browse repository at this point
Copy the full SHA 2875d7eView commit details -
Change incr comp test when adding explicit
Sized
boundGiven the previous change to add implicit `Sized` bounds only if there isn't already an explicit `Sized` bound, now the incr comp machinery doesn't consider adding the explicit bound as being dirty, as long as `-Zincremental-ignore-spans` is set.
Configuration menu - View commit details
-
Copy full SHA for 97ec2be - Browse repository at this point
Copy the full SHA 97ec2beView commit details -
Configuration menu - View commit details
-
Copy full SHA for 43fdb12 - Browse repository at this point
Copy the full SHA 43fdb12View commit details -
Mark "unused binding" suggestion as maybe incorrect
Ignoring unused bindings should be a determination made by a human, `rustfix` shouldn't auto-apply the suggested change. Fix rust-lang#54196.
Configuration menu - View commit details
-
Copy full SHA for 8ebd47e - Browse repository at this point
Copy the full SHA 8ebd47eView commit details -
Don't hash lints differently to non-lints.
`Diagnostic::keys`, which is used for hashing and equating diagnostics, has a surprising behaviour: it ignores children, but only for lints. This was added in rust-lang#88493 to fix some duplicated diagnostics, but it doesn't seem necessary any more. This commit removes the special case and only four tests have changed output, with additional errors. And those additional errors aren't exact duplicates, they're just similar. For example, in src/tools/clippy/tests/ui/same_name_method.rs we currently have this error: ``` error: method's name is the same as an existing method in a trait --> $DIR/same_name_method.rs:75:13 | LL | fn foo() {} | ^^^^^^^^^^^ | note: existing `foo` defined here --> $DIR/same_name_method.rs:79:9 | LL | impl T1 for S {} | ^^^^^^^^^^^^^^^^ ``` and with this change we also get this error: ``` error: method's name is the same as an existing method in a trait --> $DIR/same_name_method.rs:75:13 | LL | fn foo() {} | ^^^^^^^^^^^ | note: existing `foo` defined here --> $DIR/same_name_method.rs:81:9 | LL | impl T2 for S {} | ^^^^^^^^^^^^^^^^ ``` I think printing this second argument is reasonable, possibly even preferable to hiding it. And the other cases are similar.
Configuration menu - View commit details
-
Copy full SHA for 4225a1e - Browse repository at this point
Copy the full SHA 4225a1eView commit details -
Configuration menu - View commit details
-
Copy full SHA for c780fe6 - Browse repository at this point
Copy the full SHA c780fe6View commit details -
Apply suggestions from code review
Co-authored-by: Josh Stone <cuviper@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 39dc315 - Browse repository at this point
Copy the full SHA 39dc315View commit details
Commits on Jan 31, 2024
-
Rollup merge of rust-lang#120207 - onur-ozkan:120202-fix, r=clubby789
check `RUST_BOOTSTRAP_CONFIG` in `profile_user_dist` test Fixes a logical bug in `profile_user_dist` test (explained in rust-lang#120202).
Configuration menu - View commit details
-
Copy full SHA for c33d378 - Browse repository at this point
Copy the full SHA c33d378View commit details -
Rollup merge of rust-lang#120321 - Nadrieril:cleanup-cx, r=compiler-e…
…rrors pattern_analysis: cleanup the contexts This cleans up a bit the various `*Ctxt`s I had left lying around. As a bonus this made it possible to make `PatternColumn` public. I don't have a use for that yet but that could come useful. `UsefulnessCtxt` looks useless right now but I'll be adding a field or two in subsequent PRs. r? ```@compiler-errors```
Configuration menu - View commit details
-
Copy full SHA for 3adfa80 - Browse repository at this point
Copy the full SHA 3adfa80View commit details -
Rollup merge of rust-lang#120323 - estebank:issue-120178, r=fmease
On E0277 be clearer about implicit `Sized` bounds on type params and assoc types ``` error[E0277]: the size for values of type `[i32]` cannot be known at compilation time --> f100.rs:2:33 | 2 | let _ = std::mem::size_of::<[i32]>(); | ^^^^^ doesn't have a size known at compile-time | = help: the trait `Sized` is not implemented for `[i32]` note: required by an implicit `Sized` bound in `std::mem::size_of` --> /home/gh-estebank/rust/library/core/src/mem/mod.rs:312:22 | 312 | pub const fn size_of<T>() -> usize { | ^ required by the implicit `Sized` requirement on this bound in `size_of` ``` Fix rust-lang#120178.
Configuration menu - View commit details
-
Copy full SHA for 384a303 - Browse repository at this point
Copy the full SHA 384a303View commit details -
Rollup merge of rust-lang#120355 - the8472:doc-vec-fromiter, r=cuviper
document `FromIterator for Vec` allocation behaviors [t-libs discussion](https://rust-lang.zulipchat.com/#narrow/stream/259402-t-libs.2Fmeetings/topic/Meeting.202024-01-24/near/417686526) about rust-lang#120091 didn't reach a strong consensus, but it was agreed that if we keep the current behavior it should at least be documented even though it is an implementation detail. The language is intentionally non-committal. The previous (non-existent) documentation permits a lot of implementation leeway and we want retain that. In some cases we even must retain it to be able to rip out some code paths that rely on unstable features.
Configuration menu - View commit details
-
Copy full SHA for 33fb9c8 - Browse repository at this point
Copy the full SHA 33fb9c8View commit details -
Rollup merge of rust-lang#120396 - estebank:method-on-unbounded-type-…
…param, r=nnethercote Account for unbounded type param receiver in suggestions When encountering ```rust fn f<T>(a: T, b: T) -> std::cmp::Ordering { a.cmp(&b) //~ ERROR E0599 } ``` output ``` error[E0599]: no method named `cmp` found for type parameter `T` in the current scope --> $DIR/method-on-unbounded-type-param.rs:2:7 | LL | fn f<T>(a: T, b: T) -> std::cmp::Ordering { | - method `cmp` not found for this type parameter LL | a.cmp(&b) | ^^^ method cannot be called on `T` due to unsatisfied trait bounds | = help: items from traits can only be used if the type parameter is bounded by the trait help: the following traits define an item `cmp`, perhaps you need to restrict type parameter `T` with one of them: | LL | fn f<T: Ord>(a: T, b: T) -> std::cmp::Ordering { | +++++ LL | fn f<T: Iterator>(a: T, b: T) -> std::cmp::Ordering { | ++++++++++ ``` Fix rust-lang#120186.
Configuration menu - View commit details
-
Copy full SHA for fada009 - Browse repository at this point
Copy the full SHA fada009View commit details -
Rollup merge of rust-lang#120430 - devnexen:fix_tls_dtor_fbsd, r=cuviper
std: thread_local::register_dtor fix proposal for FreeBSD. following-up 5d3d347 commit, rust started to spin __cxa_thread_call_dtors warnings even without any TLS usage. using instead home made TLS destructor handler `register_dtor_fallback`. close rust-lang#120413
Configuration menu - View commit details
-
Copy full SHA for 6ce73c1 - Browse repository at this point
Copy the full SHA 6ce73c1View commit details -
Rollup merge of rust-lang#120435 - chenyukang:yukang-fix-120427-cfg-n…
…ame, r=Urgau,Nilstrieb Suggest name value cfg when only value is used for check-cfg Fixes rust-lang#120427 r? ```@Nilstrieb```
Configuration menu - View commit details
-
Copy full SHA for 1bc6c50 - Browse repository at this point
Copy the full SHA 1bc6c50View commit details -
Rollup merge of rust-lang#120470 - estebank:issue-54196, r=compiler-e…
…rrors Mark "unused binding" suggestion as maybe incorrect Ignoring unused bindings should be a determination made by a human, `rustfix` shouldn't auto-apply the suggested change. Fix rust-lang#54196.
Configuration menu - View commit details
-
Copy full SHA for f4c8ab5 - Browse repository at this point
Copy the full SHA f4c8ab5View commit details -
Rollup merge of rust-lang#120472 - Nilstrieb:die, r=compiler-errors
Make duplicate lang items fatal Prevents terminal spam.
Configuration menu - View commit details
-
Copy full SHA for 1187855 - Browse repository at this point
Copy the full SHA 1187855View commit details -
Rollup merge of rust-lang#120490 - nnethercote:Diagnostic-hashing, r=…
…estebank Don't hash lints differently to non-lints. `Diagnostic::keys`, which is used for hashing and equating diagnostics, has a surprising behaviour: it ignores children, but only for lints. This was added in rust-lang#88493 to fix some duplicated diagnostics, but it doesn't seem necessary any more. This commit removes the special case and only four tests have changed output, with additional errors. And those additional errors aren't exact duplicates, they're just similar. For example, in src/tools/clippy/tests/ui/same_name_method.rs we currently have this error: ``` error: method's name is the same as an existing method in a trait --> $DIR/same_name_method.rs:75:13 | LL | fn foo() {} | ^^^^^^^^^^^ | note: existing `foo` defined here --> $DIR/same_name_method.rs:79:9 | LL | impl T1 for S {} | ^^^^^^^^^^^^^^^^ ``` and with this change we also get this error: ``` error: method's name is the same as an existing method in a trait --> $DIR/same_name_method.rs:75:13 | LL | fn foo() {} | ^^^^^^^^^^^ | note: existing `foo` defined here --> $DIR/same_name_method.rs:81:9 | LL | impl T2 for S {} | ``` I think printing this second argument is reasonable, possibly even preferable to hiding it. And the other cases are similar. r? `@estebank`
Configuration menu - View commit details
-
Copy full SHA for acb39ce - Browse repository at this point
Copy the full SHA acb39ceView commit details -
Rollup merge of rust-lang#120495 - clubby789:remove-amdgpu-kernel, r=…
…oli-obk Remove the `abi_amdgpu_kernel` feature The tracking issue (rust-lang#51575) has been closed for 3 years, with no activity for 5.
Configuration menu - View commit details
-
Copy full SHA for 684756b - Browse repository at this point
Copy the full SHA 684756bView commit details -
Rollup merge of rust-lang#120501 - GuillaumeGomez:glob-reexport-attr-…
…merge-bugfix, r=notriddle rustdoc: Correctly handle attribute merge if this is a glob reexport Fixes rust-lang#120487. The regression was introduced in rust-lang#113091. Only non-glob reexports should have been impacted. cc ```@Nemo157``` r? ```@notriddle```
Configuration menu - View commit details
-
Copy full SHA for f93dbfc - Browse repository at this point
Copy the full SHA f93dbfcView commit details