Urgau
b67485e196
Make link_cfg
internal because it's in perme-unstable
2024-09-19 15:56:27 +02:00
Lukas Markeffsky
1999d065b7
skip normalizing param env if it is already normalized
2024-09-19 15:56:24 +02:00
bors
13a5097796
Auto merge of #130529 - onur-ozkan:better-ci-llvm-default, r=Kobzol
...
change `download-ci-llvm` default from `if-unchanged` to `true`
Since https://github.com/rust-lang/rust/pull/129473 and https://github.com/rust-lang/rust/pull/130202 , using `download-ci-llvm=true` is now the better default and it also fixes #130515 .
2024-09-19 13:32:00 +00:00
Lieselotte
dc628c8ecb
pal::unsupported::process::ExitCode
: use an u8
instead of a bool
2024-09-19 14:22:50 +02:00
GnomedDev
13d5732811
Categorise paths in clippy_utils::paths
2024-09-19 13:13:43 +01:00
GnomedDev
b2eebeeea9
[Clippy] Swap open_options
to use diagnostic items instead of paths
2024-09-19 13:13:43 +01:00
GnomedDev
364e552940
[Clippy] Swap iter_over_hash_type
to use diagnostic items instead of paths
2024-09-19 13:13:43 +01:00
GnomedDev
43b8e04d46
[Clippy] Swap non_octal_unix_permissions
to use diagnostic item instead of path
2024-09-19 13:13:43 +01:00
GnomedDev
5f85f73f63
[Clippy] Swap unnecessary_owned_empty_strings
to use diagnostic item instead of path
2024-09-19 13:13:43 +01:00
GnomedDev
5f42ae13c1
[Clippy] Swap manual_strip
to use diagnostic items instead of paths
2024-09-19 13:13:43 +01:00
GnomedDev
89532c0f30
[Clippy] Swap unnecessary_to_owned
to use diagnostic item instead of path
2024-09-19 13:13:42 +01:00
GnomedDev
1890620b26
[Clippy] Swap instant_subtraction
to use diagnostic item instead of path
2024-09-19 13:13:42 +01:00
GnomedDev
372f68b6a6
[Clippy] Swap waker_clone_wake
to use diagnostic item instead of path
2024-09-19 13:13:42 +01:00
GnomedDev
5b55270225
[Clippy] Swap filter_map_bool_then
to use diagnostic item instead of path
2024-09-19 13:13:42 +01:00
GnomedDev
25da0e2e5d
[Clippy] Swap manual_while_let_some
to use diagnostic items instead of paths
2024-09-19 13:13:42 +01:00
GnomedDev
15240a93c9
[Clippy] Swap repeat_vec_with_capacity
to use diagnostic item instead of path
2024-09-19 13:13:42 +01:00
GnomedDev
846ae57fc1
[Clippy] Swap VecArgs::hir
to use diagnostic items instead of paths
2024-09-19 13:13:40 +01:00
GnomedDev
28f4c8293a
[Clippy] Swap single_char_add_str
/format_push_string
to use diagnostic items instead of paths
2024-09-19 13:13:20 +01:00
GnomedDev
037b9784b6
[Clippy] Swap manual_main_separator_str
to use diagnostic item instead of path
2024-09-19 13:13:20 +01:00
GnomedDev
afe7907914
[Clippy] Swap redundant_clone
to use diagnostic items instead of paths
2024-09-19 13:13:20 +01:00
GnomedDev
c891082029
[Clippy] Swap float_equality_without_abs
to use diagnostic items instead of paths
2024-09-19 13:13:20 +01:00
GnomedDev
5e4716888a
[Clippy] Swap option_as_ref_deref
to use diagnostic items instead of paths
2024-09-19 13:13:19 +01:00
onur-ozkan
05f10f4765
add change-tracker for new download-ci-llvm default
...
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2024-09-19 14:28:08 +03:00
onur-ozkan
4e090e70d1
update llvm.download-ci-llvm
documentation
...
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2024-09-19 14:28:06 +03:00
onur-ozkan
7d579046c8
change download-ci-llvm default from "if-unchanged" to true
...
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2024-09-19 14:28:00 +03:00
Taiki Endo
078b067c0d
Support 128-bit atomics on s390x
2024-09-19 20:26:43 +09:00
Nicholas Nethercote
1f359405cb
Reformat some comments.
...
So they are less than 100 chars.
2024-09-19 20:11:28 +10:00
Nicholas Nethercote
5fd16dffdc
Merge adjacent unsafe extern "C"
blocks.
2024-09-19 20:10:42 +10:00
Nicholas Nethercote
c5af8b2722
Avoid heavy repetition in llvm/ffi.rs
.
...
Through judicious use of `use` and `Self`.
2024-09-19 20:10:42 +10:00
Nicholas Nethercote
3b071692cb
Remove a low-value local variable.
2024-09-19 20:10:42 +10:00
Nicholas Nethercote
ccd6c6102d
Fix a comment.
...
I'm pretty sure `CodegenCx` applies to codegen units, rather than
compilation units.
2024-09-19 20:10:42 +10:00
Nicholas Nethercote
badd8cc8f4
Reduce visibility.
2024-09-19 20:10:42 +10:00
Nicholas Nethercote
bfef2611d9
Reorder ConstMethods
.
...
It's crazy to have the integer methods in something close to random
order.
The reordering makes the gaps clear: `const_i64`, `const_i128`,
`const_isize`, and `const_u16`. I guess they just aren't needed.
2024-09-19 20:10:42 +10:00
Nicholas Nethercote
fda530d729
Streamline hidden
visibility setting.
...
In `get_fn` there is a complicated set of if/elses to determine if
`hidden` visibility should be applied. There are five calls to
`LLVMRustSetVisibility` and some repetition in the comments.
This commit streamlines it a bit:
- Computes `hidden` and then uses it to determine if a single call to
`LLVMRustSetVisibility` occurs.
- Converts some of the if/elses into boolean expressions.
- Removes the repetitive comments.
Overall this makes it quite a bit shorter, and I find it easier to read.
2024-09-19 20:10:42 +10:00
Nicholas Nethercote
eb575506f2
Remove a low-value comment.
...
We rarely use parameter comments, and these ones don't tell us anything
interesting.
2024-09-19 20:10:42 +10:00
Nicholas Nethercote
4ce010efcf
Use a macro to factor out some repetitive code.
...
Similar to the existing macro just above.
2024-09-19 20:10:41 +10:00
Nicholas Nethercote
0d78f1e86b
Reduce repetition in target_is_apple
.
2024-09-19 20:10:41 +10:00
Nicholas Nethercote
9429e64c24
Streamline report_inline_asm
.
...
By using `use`.
2024-09-19 20:10:41 +10:00
Nicholas Nethercote
63210bd68c
Rename a parameter.
...
This seems to be a typo. `singletree` doesn't make sense, and everywhere
else it is `singlethread`.
2024-09-19 20:10:41 +10:00
Nicholas Nethercote
785a26af03
Streamline register methods.
...
These can be made more concise, mostly through appropriate use of `use`
declarations.
2024-09-19 20:10:41 +10:00
bors
b0af276da3
Auto merge of #130406 - arttet:master, r=onur-ozkan
...
Bump cc dependency
* The [issue](https://github.com/rust-lang/rust/issues/130231 ) was fixed in the [PR](https://github.com/rust-lang/cc-rs/pull/1207 )
* The build artifacts of arm64e-apple-darwin can be found [here](https://github.com/arttet/rust-compiler-builder/actions/runs/10902308425 )
2024-09-19 09:20:08 +00:00
Adwin White
937b09b389
Make the intention of the miri test more clear
2024-09-19 16:49:39 +08:00
GnomedDev
3ebff28f80
[Clippy] Swap lines_filter_map_ok
to use a diagnostic item instead of path
2024-09-19 08:26:41 +01:00
GnomedDev
a786be5d06
[Clippy] Swap map_entry
to use diagnostic items instead of paths
2024-09-19 08:26:37 +01:00
bors
b7b9453ea7
Auto merge of #130547 - workingjubilee:rollup-tw30khz, r=workingjubilee
...
Rollup of 3 pull requests
Successful merges:
- #130531 (Check params for unsafety in THIR)
- #130533 (Never patterns constitute a read for unsafety)
- #130542 (Stabilize const `MaybeUninit::as_mut_ptr`)
r? `@ghost`
`@rustbot` modify labels: rollup
2024-09-19 06:58:55 +00:00
Jubilee
0ad2a522b7
Rollup merge of #130542 - ultrabear:stabilize_const_maybeuninit_as_mut_ptr, r=workingjubilee
...
Stabilize const `MaybeUninit::as_mut_ptr`
This PR stabilizes the following APIs as const stable as of rust `1.83`:
```rs
impl<T> MaybeUninit<T> {
pub const fn as_mut_ptr(&mut self) -> *mut T;
}
```
This is made possible by const_mut_refs being stabilized (yay).
FCP: #75251 [(comment)](https://github.com/rust-lang/rust/issues/75251#issuecomment-2356197443 )
2024-09-18 23:40:31 -07:00
Jubilee
f9b8ef0687
Rollup merge of #130533 - compiler-errors:never-pat-unsafeck, r=Nadrieril
...
Never patterns constitute a read for unsafety
This code is otherwise unsound if we don't emit an unsafety error here. Noticed when fixing #130528 , but it's totally unrelated.
r? `@Nadrieril`
2024-09-18 23:40:30 -07:00
Jubilee
944df8e40f
Rollup merge of #130531 - compiler-errors:thir-unsafeck-param, r=Urgau
...
Check params for unsafety in THIR
Self-explanatory. I'm not surprised this was overlooked, given the way that THIR visitors work. Perhaps we should provide a better entrypoint.
Fixes #130528
2024-09-18 23:40:29 -07:00
bors
f8192ba0d0
Auto merge of #130511 - bjoernager:const-char-encode-utf8, r=dtolnay
...
Support `char::encode_utf8` in const scenarios.
This PR implements [`rust-lang/rfcs#3696`](https://github.com/rust-lang/rfcs/pull/3696/ ).
This assumes [`const_slice_from_raw_parts_mut`](https://github.com/rust-lang/rust/issues/67456/ ).
2024-09-19 04:17:04 +00:00
ultrabear
b7ca2b6510
run x.py fmt
2024-09-18 20:49:53 -07:00