Pietro Albini
d695b95e3b
implement -Z ignore-directory-in-diagnostics-source-blocks
2023-09-15 16:22:50 +02:00
y21
981e96008b
new lint: path_ends_with_ext
2023-09-15 16:17:51 +02:00
bors
eaf640dcf0
Auto merge of #11506 - mojave2:issue-11503, r=giraffate
...
fix filter_map_bool_then with a bool reference
changelog: [`filter_map_bool_then`]: Fix the incorrect autofix when the `bool` in question is a reference.
fix #11503
2023-09-15 13:13:16 +00:00
bors
e609279b2c
Auto merge of #11484 - mkrasnitski:fix-11302, r=Jarcho
...
[`extra_unused_type_parameters`]: Fix edge case FP for parameters in where bounds
Generic parameters can end up being used on the left side of where-bounds if they are not directly bound but instead appear nested in some concrete generic type. Therefore, we should walk the left side of where bounds, but only if the bounded type is *not* a generic param, in which case we still need to ignore the bound.
Fixes #11302
changelog: [`extra_unused_type_parameters`]: Fix edge case false positive for parameters in where bounds
2023-09-15 12:59:15 +00:00
bors
e7f9f48d76
Auto merge of #115853 - obeis:hir-analysis-migrate-diagnostics-6, r=compiler-errors
...
Migrate `rustc_hir_analysis` to session diagnostic [Part 6]
Part 6: Finish `coherence/inherent_impls.rs` file
2023-09-15 11:55:27 +00:00
bors
21216297e9
Auto merge of #115851 - Alexendoo:clippy-doc-hidden-headers, r=flip1995
...
Ignore `#[doc(hidden)]` functions in clippy doc lints
Fixes https://github.com/rust-lang/rust-clippy/issues/11501
The implementation before #115689 had a check for unsugared doc comments that also happened to catch `#[doc(hidden)]`, this adds the check back in more explicitly
852bf4e51b/src/tools/clippy/clippy_lints/src/doc.rs (L526-L529)
r? `@flip1995`
2023-09-15 09:55:31 +00:00
bors
56e1aaadb3
Auto merge of #115851 - Alexendoo:clippy-doc-hidden-headers, r=flip1995
...
Ignore `#[doc(hidden)]` functions in clippy doc lints
Fixes https://github.com/rust-lang/rust-clippy/issues/11501
The implementation before #115689 had a check for unsugared doc comments that also happened to catch `#[doc(hidden)]`, this adds the check back in more explicitly
852bf4e51b/src/tools/clippy/clippy_lints/src/doc.rs (L526-L529)
r? `@flip1995`
2023-09-15 09:55:31 +00:00
bors
2c629cc137
Auto merge of #11504 - Alexendoo:type-lints-closures, r=xFrednet
...
Ignore closures for some type lints
Fixes #11417
`hir_ty_to_ty` is used in a couple of the `!is_local` lints, which doesn't play nicely inside bodies
changelog: none
2023-09-15 09:34:13 +00:00
Ralf Jung
3ee65c28e9
cannot have Direct for unsized types
2023-09-15 10:45:37 +02:00
Ralf Jung
cd519aabd7
fix gcc, cranelift build
2023-09-15 10:43:44 +02:00
Ralf Jung
f9f8bffaec
fix gcc, cranelift build
2023-09-15 10:43:44 +02:00
Ralf Jung
29a4b7b971
fix gcc, cranelift build
2023-09-15 10:43:44 +02:00
Ralf Jung
22e13b4c55
clarify PassMode::Indirect as well
2023-09-15 10:43:44 +02:00
Ralf Jung
89f0d18bc8
clarify PassMode::Indirect as well
2023-09-15 10:43:44 +02:00
Ralf Jung
89139d4c46
clarify PassMode::Indirect as well
2023-09-15 10:43:44 +02:00
Ralf Jung
7740476a43
explain PassMode::Cast
2023-09-15 10:43:44 +02:00
Ralf Jung
06a76ab415
make interpreter type Debug impl independent of Ty debug impl
2023-09-15 09:54:06 +02:00
shogo-nakano-desu
96c333262a
refactor: fix clippy lint
2023-09-15 16:47:39 +09:00
shogo-nakano-desu
0bb2298ac6
refactor: remove TODO with no explanation
2023-09-15 16:43:31 +09:00
shogo-nakano-desu
ebbbaaa90f
refactor: fix clippy lints
2023-09-15 16:43:21 +09:00
mojave2
c81888eab3
fix FP of let_unit_value on async fn args
2023-09-15 15:05:43 +08:00
bors
915c8af550
Auto merge of #115850 - compiler-errors:effect-canon, r=fee1-dead
...
Canonicalize effect vars in new solver
No good reason not to fix this, we already have all the machinery to make this work.
r? `@fee1-dead`
Fixes #115792
2023-09-15 06:45:56 +00:00
mojave2
c9b212d5ff
fix filter_map_bool_then with a bool reference
2023-09-15 14:23:58 +08:00
bors
039875986c
Auto merge of #3061 - rust-lang:rustup-2023-09-15, r=saethlin
...
Automatic sync from rustc
2023-09-15 05:47:33 +00:00
The Miri Conjob Bot
faa57a71fa
Merge from rustc
2023-09-15 05:30:42 +00:00
The Miri Conjob Bot
3915c4d114
Preparing for merge from rustc
2023-09-15 05:24:07 +00:00
Michael Goulet
280f058560
Canonicalize effect vars in new solver
2023-09-15 05:11:16 +00:00
bors
9cbc90c0ae
Auto merge of #115861 - clubby789:migrate-remove-semi-diag, r=compiler-errors
...
Make 'remove semi to coerce match' diagnostic translatable
2023-09-15 04:56:26 +00:00
J-ZhengLi
1d76eede99
trigger [transmute_null_to_fn] on chain of casts
2023-09-15 12:24:45 +08:00
Antoni Boucher
f3b82df8f8
Add note to readme
2023-09-14 21:49:14 -04:00
antoyo
44b9c75359
Merge pull request #329 from rust-lang/fix/enable-features
...
Fix/enable features
2023-09-14 21:48:39 -04:00
Antoni Boucher
f096c19db5
Handle target-cpu=native
2023-09-14 20:47:14 -04:00
clubby789
b663464ea0
Make 'remove semi to coerce match' diagnostic translatable
2023-09-15 00:45:09 +00:00
Antoni Boucher
a9a2c687ff
Send -march to gcc
2023-09-14 20:42:14 -04:00
Antoni Boucher
87daba2cad
Only add feature flags on functions
2023-09-14 20:35:11 -04:00
bors
ae9465fee3
Auto merge of #115859 - compiler-errors:effect-fallback, r=fee1-dead
...
Fallback effects even if types also fallback
`||` is short circuiting, so if we do ty/int var fallback, we *don't* do effect fallback 😸
r? `@fee1-dead` or `@oli-obk`
Fixes #115791
Fixes #115842
2023-09-15 00:05:28 +00:00
Antoni Boucher
20d4c39462
Correctly handle target features
2023-09-14 19:55:19 -04:00
Antoni Boucher
f692124c5d
Handle disabled features
2023-09-14 19:55:19 -04:00
Antoni Boucher
5bb0d630ab
Do not always enable avx2
2023-09-14 19:55:19 -04:00
Antoni Boucher
45c501cdf9
Add note to readme
2023-09-14 19:55:19 -04:00
Antoni Boucher
adc0b210f3
Enable one more feature
2023-09-14 19:55:19 -04:00
Antoni Boucher
f6337e4966
Don't always enabled CPU features
2023-09-14 19:55:19 -04:00
antoyo
067bfc077b
Merge pull request #331 from rust-lang/feature/static-relocation
...
Handle static relocation model
2023-09-14 19:54:24 -04:00
bors
6734e96ba4
Auto merge of #11505 - Alexendoo:metadata-collector-truncate, r=Manishearth
...
Truncate files when opening in metadata-collector
Fixes the issue seen here https://github.com/rust-lang/rust-clippy/pull/11483#discussion_r1324687136 and in a couple other PRs
The changelog file was opened without truncating it, so if the new version is shorter than the old one stray contents would remain at the end of the file
The other two files first removed the file so didn't have this problem, but in all cases we now use `fs::write`/`File::create` which is write + create + truncate
changelog: none
2023-09-14 23:05:24 +00:00
Antoni Boucher
32df82648d
Handle static relocation model
2023-09-14 19:02:00 -04:00
Alex Macleod
3c0fc15848
Truncate files when opening in metadata-collector
2023-09-14 22:17:51 +00:00
bors
ca2b74f1ae
Auto merge of #115857 - notriddle:notriddle/gui-test-themes, r=GuillaumeGomez
...
rusdoc: add gui test for custom CSS themes
Based on
https://github.com/rust-lang/rust/pull/115829#issuecomment-1720056602
2023-09-14 21:52:34 +00:00
Soveu
eea6149e03
Enable varargs support for AAPCS calling convention
...
This is the default calling convention for ARM - it is used for extern "C",
therefore it supports varargs.
2023-09-14 23:21:39 +02:00
Alex Macleod
a2a31a0a2f
Ignore closures for some type lints
2023-09-14 21:20:50 +00:00
Michael Goulet
5c907a7859
Fallback effects even if types also fall back
2023-09-14 21:08:42 +00:00