Boxy Uwu
8e9b0c4ca9
rename select_where_possible and select_all_or_error
2025-10-07 23:02:23 +01:00
Marijn Schouten
431ef038a3
impl Ord for params and use unstable sort
2025-09-24 15:18:31 +00:00
Michael Goulet
50323736ad
Remove unnecessary trait predicate eq function
2025-08-11 01:46:42 +00:00
tiif
7356ff7517
Implement other logics
2025-07-15 13:48:30 +00:00
Oli Scherer
eb7245a864
Change const trait bound syntax from ~const to [const]
2025-06-26 13:46:45 +00:00
lcnr
855035b038
convert some GenericArg to Term
2025-04-26 02:05:31 +00:00
Nicholas Nethercote
d8be00fd44
Fix a comment typo.
2025-01-31 08:28:14 +11:00
Nicholas Nethercote
40db88979d
Use .and chaining to improve readability.
2025-01-31 08:27:16 +11:00
Michael Goulet
2b8930c71c
Consolidate OutlivesEnv construction with resolve_regions
2025-01-28 18:55:03 +00:00
Michael Goulet
9bda88bb58
Fix const specialization
2024-12-02 22:21:53 +00:00
Michael Goulet
357665dae9
Simplify fulfill_implication
2024-11-22 01:03:17 +00:00
Michael Goulet
6b96103bf3
Rename the FIXMEs, remove a few that dont matter anymore
2024-11-03 18:59:41 +00:00
lcnr
f51ec110a7
TypingMode 🤔
2024-10-29 17:01:24 +01:00
Michael Goulet
cde29b9ec9
Implement const effect predicate in new solver
2024-10-24 09:46:36 +00:00
Michael Goulet
c682aa162b
Reformat using the new identifier sorting from rustfmt
2024-09-22 19:11:29 -04:00
Nicholas Nethercote
cc16c902f1
Remove #[macro_use] extern crate tracing from rustc_hir_analysis.
2024-08-30 17:14:59 +10:00
Nicholas Nethercote
84ac80f192
Reformat use declarations.
...
The previous commit updated `rustfmt.toml` appropriately. This commit is
the outcome of running `x fmt --all` with the new formatting options.
2024-07-29 08:26:52 +10:00
Michael Goulet
ce8a625092
Move all error reporting into rustc_trait_selection
2024-07-21 22:34:35 -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
eb0a70a557
Opt-in diagnostics reporting to avoid doing extra work in the new solver
2024-06-03 09:27:52 -04:00
Michael Goulet
fa84018c2e
Apply nits
2024-05-13 16:55:58 -04:00
Michael Goulet
3bcdf3058e
split out AliasTy -> AliasTerm
2024-05-13 11:59:42 -04:00
Michael Goulet
e444017b49
Consolidate obligation cause codes for where clauses
2024-05-11 02:10:45 -04:00
Michael Goulet
6f77bfe8b6
Name tweaks
2024-05-10 10:42:57 -04:00
Michael Goulet
9108294a6c
More rename fallout
2024-05-10 10:42:57 -04:00
Michael Goulet
534e267d48
Rename some ObligationCauseCode variants
2024-05-10 10:42:57 -04:00
León Orell Valerian Liehr
1b3df6f068
Use expand_weak_alias_tys when collecting constrained generics params in impls
2024-02-20 17:31:59 +01:00
León Orell Valerian Liehr
fde4556785
Properly check constrainedness of gen params in the presence of weak alias types
2024-02-17 08:39:01 +01:00
Matthias Krüger
cb0d74be28
Rollup merge of #120958 - ShoyuVanilla:remove-subst, r=oli-obk
...
Dejargonize `subst`
In favor of #110793 , replace almost every occurence of `subst` and `substitution` from rustc codes, but they still remains in subtrees under `src/tools/` like clippy and test codes (I'd like to replace them after this)
2024-02-12 23:18:54 +01:00
Shoyu Vanilla
3856df059e
Dejargnonize subst
2024-02-12 15:46:35 +09:00
yukang
2bcbc16caf
remove a bunch of dead parameters in fn
2024-02-12 09:51:35 +08:00
Matthias Krüger
fa52edaa51
Rollup merge of #119869 - oli-obk:track_errors2, r=matthewjasper
...
replace `track_errors` usages with bubbling up `ErrorGuaranteed`
more of the same as https://github.com/rust-lang/rust/pull/117449 (removing `track_errors`)
2024-01-18 20:56:20 +01:00
Jack Huey
acab76573f
Add -Zno-implied-bounds-compat option and use it
2024-01-17 21:27:34 -05:00
Ali MJ Al-Nasrawy
d96003dd2a
Correctly handle normalization in implied bounds
...
Special-case Bevy dependents to not error
2024-01-17 21:27:34 -05:00
Oli Scherer
b1ce8a4ecd
Move check_mod_impl_wf query call out of track_errors and bubble errors up instead.
2024-01-17 10:02:19 +00:00
Nicholas Nethercote
99472c7049
Remove Session methods that duplicate DiagCtxt methods.
...
Also add some `dcx` methods to types that wrap `TyCtxt`, for easier
access.
2023-12-24 08:05:28 +11:00
Michael Goulet
b2d2184ede
Format all the let chains in compiler
2023-10-13 08:59:36 +00:00
Esteban Küber
91b9ffeab0
Reorder fullfillment errors to keep more interesting ones first
...
In `report_fullfillment_errors` push back `T: Sized`, `T: WellFormed`
and coercion errors to the end of the list. The pre-existing
deduplication logic eliminates redundant errors better that way, keeping
the resulting output with fewer errors than before, while also having
more detail.
2023-10-04 02:04:14 +00:00
lcnr
aac29a0fc3
specialization: use clause
2023-09-29 11:47:42 +02:00
Deadbeef
4fec845c3f
Remove constness from TraitPredicate
2023-08-02 15:38:00 +00:00
Matthias Krüger
c64ef5e070
inline format!() args from rustc_codegen_llvm to the end (4)
...
r? @WaffleLapkin
2023-07-25 23:20:28 +02:00
Mahdi Dibaiee
e55583c4b8
refactor(rustc_middle): Substs -> GenericArg
2023-07-14 13:27:35 +01:00
Michael Goulet
0c73b41cd6
remove TypeWellFormedFromEnv
2023-07-03 21:40:04 +00:00
lcnr
5378f07d64
use deeply_normalize for assumed_wf_types
2023-07-03 09:12:14 +02:00
Michael Goulet
374173cd99
TypeWellFormedInEnv
2023-06-26 23:12:04 +00:00
Michael Goulet
fbdef58414
Migrate predicates_of and caller_bounds to Clause
2023-06-26 23:12:03 +00:00
Michael Goulet
fca56a8d2c
s/Clause/ClauseKind
2023-06-19 14:57:42 +00:00
Michael Goulet
6594c75449
Move ConstEvaluatable to Clause
2023-06-17 21:27:13 +00:00
Michael Goulet
52d3fc93f2
Move WF goal to clause
2023-06-17 21:20:20 +00:00
Matthew Jasper
f46eabb9e5
Report nicer lifetime errors for specialization
...
Add an obligation cause for these error so that the error points to the
implementations that caused the error.
2023-05-05 22:19:56 +01:00