lcnr
adbcb910f0
remove unnecessary variant
2025-03-12 10:12:53 +01:00
Lukas Markeffsky
7fea935ec5
don't leave assoc const unnormalized due to unconstrained params
2025-02-21 20:32:37 +01:00
Michael Goulet
50fb40a987
Delay a bug when encountering an impl with unconstrained generics in codegen_select
2024-11-23 05:27:45 +00:00
lcnr
9cba14b95b
use TypingEnv
when no infcx
is available
...
the behavior of the type system not only depends on the current
assumptions, but also the currentnphase of the compiler. This is
mostly necessary as we need to decide whether and how to reveal
opaque types. We track this via the `TypingMode`.
2024-11-18 10:38:56 +01:00
lcnr
f51ec110a7
TypingMode 🤔
2024-10-29 17:01:24 +01:00
Nicholas Nethercote
c4f6f52139
Add warn(unreachable_pub)
to rustc_traits
.
2024-09-03 08:49:54 +10:00
Michael Goulet
ce8a625092
Move all error reporting into rustc_trait_selection
2024-07-21 22:34:35 -04:00
Michael Goulet
7af825fea4
Split out overflow handling into its own module
2024-07-09 09:51:56 -04:00
Michael Goulet
fe4c995ccb
Move trait selection error reporting to its own top-level module
2024-07-08 16:04:47 -04:00
Michael Goulet
1e72c7f536
Add cycle errors to ScrubbedTraitError to remove a couple more calls to new_with_diagnostics
2024-06-03 09:27:52 -04:00
Michael Goulet
27f5eccd1f
Move FulfillmentErrorCode to rustc_trait_selection too
2024-06-03 09:27:52 -04:00
Michael Goulet
eb0a70a557
Opt-in diagnostics reporting to avoid doing extra work in the new solver
2024-06-03 09:27:52 -04:00
Michael Goulet
d9eb5232b6
Use ObligationCtxt in favor of TraitEngine in many places
2024-05-02 22:03:01 -04:00
Nicholas Nethercote
6341935a13
Remove extern crate tracing
from numerous crates.
2024-04-30 16:47:49 +10:00
Nicholas Nethercote
99e036bd21
Remove extern crate rustc_middle
from numerous crates.
2024-04-29 14:50:45 +10:00
Oli Scherer
8206cffc48
Merge check_mod_impl_wf
and check_mod_type_wf
2024-03-07 06:27:09 +00:00
Michael Goulet
f37a919e96
Remove redundant Code from FulfillmentErrorCode variants
2024-01-12 16:34:39 +00:00
Michael Goulet
3f8919c09b
get rid of a bit more calls to poly_select
2023-07-06 16:50:12 +00:00
Michael Goulet
52f7384995
Separate select calls that don't need a binder
2023-07-06 16:50:12 +00:00
Michael Goulet
75a8f68183
Remove unnecessary DefineOpaqueTypes::Bubble from codegen
2023-06-27 21:36:15 +00:00
Michael Goulet
3d4da98273
Make TraitEngine::new use the right solver, add compare mode
2023-06-06 18:43:20 +00:00
Michael Goulet
a2d7ffc635
Move DefiningAnchor
2023-05-25 03:21:21 +00:00
Camille GILLOT
cb873b2d93
Separate trait selection from ambiguity reporting.
2023-01-27 18:57:10 +00:00
Maybe Waffle
6a28fb42a8
Remove double spaces after dots in comments
2023-01-17 08:09:33 +00:00
Michael Goulet
f769d34291
Assert defining anchor is set in take_opaque_types
2023-01-09 18:14:28 +00:00
Michael Goulet
25a6daccab
Move codegen_select_candidate to a rustc_traits
2022-12-08 05:16:57 +00:00