Commit graph

298901 commits

Author SHA1 Message Date
Nicholas Nethercote
c42d1fc2c6 Remove unused P stuff. 2025-05-27 02:54:52 +10:00
Nicholas Nethercote
68597509aa Remove support for P<[T]>.
It's no longer used.
2025-05-27 02:54:52 +10:00
Nicholas Nethercote
0f285e346f Remove the one use of P<[T]>.
A `Vec` is fine, the additional word (vector vs. boxed slice) doesn't
matter here.
2025-05-27 02:54:18 +10:00
Tshepang Mbambo
db998211e8
Merge pull request #2407 from smanilov/patch-14
Add time reference and tracking info for trait system refactor
2025-05-26 18:49:20 +02:00
Alexey Semenyuk
8cced0fd6f Show total count lints 2025-05-26 21:40:25 +05:00
binarycat
f9931d198c rustdoc: refactor Tooltip rendering logic 2025-05-26 11:35:45 -05:00
Nicholas Nethercote
6973fa08a3 Remove P::map.
It's barely used, and the places that use it are better if they don't.
2025-05-27 02:07:15 +10:00
Nicholas Nethercote
a35675d38f Remove 'static bounds on P.
These date back to 2014. I don't think they're needed any more.
2025-05-27 02:07:15 +10:00
Nicholas Nethercote
19802e8e9c Remove an unnecessary use of Box::into_inner. 2025-05-27 02:06:40 +10:00
Tshepang Mbambo
0497f31122
rustc book: fix erratic sentence by making it more simple 2025-05-26 17:55:03 +02:00
Dan Johnson
8e581e31a2 add lint infallible_try_from
Looks for `TryFrom` implementations with uninhabited error types and
suggests to implement `From` instead.
2025-05-26 08:39:07 -07:00
Boxy
c27aff35ca Add test 2025-05-26 16:35:36 +01:00
MarcoIeni
6ec41a7950
ci: fix llvm test coverage 2025-05-26 16:52:24 +02:00
bors
9c0bcb514f Auto merge of #141442 - compiler-errors:fast-path-pred, r=lcnr
Fold predicate fast path in canonicalizer and eager resolver

See individual commits.

r? lcnr
2025-05-26 13:42:30 +00:00
MarcoIeni
1e7c4377de
ci: move dist-x86_64-linux job to codebuild 2025-05-26 15:37:45 +02:00
Lukas Wirth
1d35ac9ce0 Add missing edition directives for async-await tests 2025-05-26 14:59:48 +02:00
Boxy
8b4f9b6ebe
Merge pull request #2414 from smanilov/patch-15
Link normalization chapter
2025-05-26 13:44:34 +01:00
Stan Manilov
740aaf7ed9 Add time reference and tracking info for trait system refactor 2025-05-26 15:43:07 +03:00
Stan Manilov
b73dfdfbd3
Link normalization chapter 2025-05-26 15:39:25 +03:00
Michael Goulet
5e31cd30aa Support opaque_types_defined_by for SyntheticCoroutineBody 2025-05-26 12:19:34 +00:00
Jieyou Xu
0ea12c3c5f
cfg_version: pull out dedicated syntax test from feature gate test
The feature gate test was dual-purposing causing feature gate errors to
distract from syntax exercises.
2025-05-26 19:58:33 +08:00
León Orell Valerian Liehr
d5b3f8dba3
Merge pull request #2413 from fmease/glacier-no-crashes-tests-yes
Flesh out sections about crashes tests and update mentions of glacier
2025-05-26 13:55:14 +02:00
León Orell Valerian Liehr
8d1337bf6a
Flesh out sections about crashes tests and update mentions of glacier 2025-05-26 13:54:49 +02:00
Michael Goulet
a59c86ab44 Deduplicate dyn compatibility violations due to coercion 2025-05-26 10:57:54 +00:00
bors
b5eb9893f4 Auto merge of #141406 - RalfJung:less-force-allocate, r=oli-obk
interpret: do not force_allocate all return places

A while ago I cleaned up our `PlaceTy` a little, but as a side-effect of that, return places had to always be force-allocated. That turns out to cause quite a few extra allocations, and for a project we are doing where we marry Miri with a model checker, that means a lot of extra work -- local variables are just so much easier to reason about than allocations.

So, this PR brings back the ability to have the return place be just a local of the caller. To make this work cleanly I had to rework stack pop handling a bit, which also changes the output of Miri in some cases as the span for errors occurring during a particular phase of stack pop changed.

With these changes, a no-std binary with a function of functions that just take and return scalar types and that uses no pointers now does not move *any* local variables into memory. :)

r? `@oli-obk`
2025-05-26 10:29:19 +00:00
dianqk
457f8ba447
mir-opt: Do not transform non-int type in match_branches 2025-05-26 18:15:54 +08:00
Timo
32a3744efc
refactor(mut_reference): replace match with if-let to reduce nesting (#14890)
One downside to this is that, since the patterns matched against (on the
left) are quite long, it's a bit difficult to see what's even getting
matched. Using `matches!()` could help with that

changelog: none
2025-05-26 10:13:33 +00:00
bjorn3
f99471360f Remove usage of FnAbi in codegen_intrinsic_call 2025-05-26 10:13:03 +00:00
bjorn3
165fb98849 Reduce indentation in codegen_panic_intrinsic 2025-05-26 10:13:03 +00:00
bjorn3
03485093d4 Pass PlaceRef rather than Bx::Value to codegen_intrinsic_call 2025-05-26 10:13:03 +00:00
bjorn3
7122648e34 Don't depend on FnAbi for intrinsics
Intrinsics are not real functions and as such don't have any calling
convention. Trying to compute a calling convention for an intrinsic
anyway is a nonsensical operation.
2025-05-26 10:13:03 +00:00
bjorn3
0a14e1b2e7 Remove usage of FnAbi in codegen_intrinsic_call 2025-05-26 10:13:03 +00:00
bjorn3
6016f84e71 Pass PlaceRef rather than Bx::Value to codegen_intrinsic_call 2025-05-26 10:13:03 +00:00
bjorn3
c83358beb5 Move caller_location handling into codegen_intrinsic_call 2025-05-26 10:13:02 +00:00
bjorn3
e4700e76d8 Always use fn_span in codegen_call_terminator 2025-05-26 10:13:01 +00:00
bjorn3
1e9e17704a Move some code around in codegen_call_terminator 2025-05-26 10:11:23 +00:00
Michael Goulet
e2215a8ad9 Don't rerun goals if none of its vars have changed 2025-05-26 10:10:03 +00:00
Ada Alakbarova
c256bcc057
refactor(mut_reference): replace match with if-let to reduce nesting 2025-05-26 11:54:09 +02:00
vremyavnikuda
57707c2287 fix: formated to clippy 2025-05-26 16:41:49 +07:00
yukang
f6e5fa20bf remove eq_unspanned from TokenStream 2025-05-26 17:02:51 +08:00
yukang
d3347bb32b remove eq_unspanned from TokenStream 2025-05-26 17:02:51 +08:00
vremyavnikuda
693ff34702 fix: the lines are formatted according to clippy 2025-05-26 16:00:45 +07:00
vremyavnikuda
1e8eacd192 fix: the lines are formatted according to clippy 2025-05-26 15:51:50 +07:00
vremyavnikuda
44612c5f9c docs: add documentation for find_all_refs constructor search (#10725) 2025-05-26 15:51:50 +07:00
Michael Goulet
9d742eea25 Rename 2025-05-26 08:48:19 +00:00
Michael Goulet
4d783c3c19 Don't retry in pred_known_to_hold_modulo_regions in new solver, since new solver is more complete
Just a totally unrelated nitpick I'm folding into the PR, since it's
code I'd like for us to prune when the new solver lands.
2025-05-26 08:37:28 +00:00
Lukas Wirth
94c624e7f5
Merge pull request #19792 from A4-Tacks/fix-generate-mut-trait-impl-indent
fix: ide-assists, generate mut trait impl indent
2025-05-26 08:29:22 +00:00
Michael Goulet
3efd885927 Avoid obligation construction dance with query region constraints 2025-05-26 08:28:45 +00:00
Lukas Wirth
376edac94f
Merge pull request #19819 from Veykril/push-utvzwvwuuvlm
Change import prefix default to be by crate
2025-05-26 08:28:16 +00:00
Lukas Wirth
3d67336f65
Merge pull request #19785 from A4-Tacks/fix-generate-new-indent
fixes: ide-assists, generate_new indent loses
2025-05-26 07:24:41 +00:00