Jana Dönszelmann
817e181ee8
test bevy compute_implied_bounds hack with new trait solver
2025-09-30 14:37:29 +02:00
lcnr
3ebf611005
it's not a borrow checker limitation :<
2025-08-14 17:43:39 +02:00
lcnr
a95a2ac476
rework add_placeholder_from_predicate_note
2025-08-13 14:03:26 +02:00
Oli Scherer
6166cd6b50
Avoid looking at HIR for trait and impl items
2025-06-30 08:45:43 +00:00
Vadim Petrochenkov
20faf8532b
compiletest: Make diagnostic kind mandatory on line annotations
2025-04-30 10:44:24 +03:00
bors
97c966bb40
Auto merge of #139552 - matthiaskrgr:rollup-b194mk8, r=matthiaskrgr
...
Rollup of 10 pull requests
Successful merges:
- #139494 (Restrict some queries by def-kind more)
- #139496 (Revert r-a changes of rust-lang/rust#139455 )
- #139506 (add missing word in doc comment (part 2))
- #139515 (Improve presentation of closure signature mismatch from `Fn` trait goal)
- #139520 (compiletest maintenance: sort deps and drop dep on `anyhow`)
- #139523 (Rustc dev guide subtree update)
- #139526 (Fix deprecation note for std::intrinsics)
- #139528 (compiletest: Remove the `--logfile` flag)
- #139541 (Instantiate higher-ranked transmute goal w/ placeholders before emitting sub-obligations)
- #139547 (Update library tracking issue template to set S-tracking-unimplemented)
r? `@ghost`
`@rustbot` modify labels: rollup
2025-04-09 05:39:18 +00:00
Vadim Petrochenkov
b3f75353a2
UI tests: add missing diagnostic kinds where possible
2025-04-08 23:06:31 +03:00
Matthias Krüger
b41e2bd807
Rollup merge of #139515 - compiler-errors:sig-mismatch, r=lcnr
...
Improve presentation of closure signature mismatch from `Fn` trait goal
Flip the order of "expected" and "found" since that wasn't correct.
Don't present the arguments as a tuple, since it leaves a trailing comma. Instead, just use `fn(arg, arg)`.
Finally, be better with binders since we were just skipping binders.
r? oli-obk or reassign
2025-04-08 21:25:59 +02:00
Michael Goulet
c5320454ed
Improve presentation of closure signature mismatch from Fn trait goal
2025-04-08 05:54:57 +00:00
Michael Goulet
268c56e144
Implement overflow for infinite implied lifetime bounds
2025-04-07 21:01:24 +00:00
Oli Scherer
cb4751d4b8
Implement #[define_opaque] attribute for functions.
2025-03-11 12:05:02 +00:00
Michael Goulet
d759958131
Only use implied bounds hack if bevy, and use deeply normalize in implied bounds hack
2025-03-04 18:18:48 +00:00
Matthias Krüger
4f84ba1a20
Rollup merge of #137253 - compiler-errors:bevy-hack, r=jackh726
...
Restrict `bevy_ecs` `ParamSet` hack
This limits the bevy WF hack to only apply to ADTs named `ParamSet` that come from crates named `bevy_ecs`, and references to the latter.
Previously, we were applying it to all ADTs that contained the substring `"ParamSet"`. This could show up anywhere in the ADT name, and it could come from any crate. It's a bit concerning since other code could theoretically begin to rely on this behavior too (though I don't expect it to)
This simplifies the logic a bit and turns it into a visitor.
r? `@jackh726`
2025-02-20 00:55:13 +01:00
Michael Goulet
b02eac37ff
Restrict bevy hack
2025-02-19 03:58:31 +00:00
xizheyin
d22554a996
fix: Alloc new errorcode E0803 for E0495
...
Signed-off-by: xizheyin <xizheyin@smail.nju.edu.cn >
2025-02-15 12:18:30 +08:00
Michael Goulet
67804c57e7
Adjust tests
2024-09-05 06:37:38 -04:00
Michael Goulet
e8472e84e3
Check unnormalized signature on pointer cast
2024-09-05 06:37:38 -04:00
Camille GILLOT
ca7c55f050
Do not rely on names to find lifetimes.
2024-08-22 02:20:05 +00:00
bors
25acbbd12f
Auto merge of #127435 - GrigorenkoPV:tests-for-112905, r=cjgillot
...
Add tests for #112905
This is a part of #105107 . Adds the tests from the OP in #112905 .
2024-07-13 13:12:52 +00:00
lcnr
f77394fdf3
instantiate higher ranked goals in candidate selection
...
reverts #119820
2024-07-10 14:13:16 +02:00
Pavel Grigorenko
32294aa5f5
Add tests for #112905
2024-07-07 19:38:04 +03:00
lcnr
4fa5fb684e
move leak check out of candidate evaluation
...
this prevents higher ranked goals from guiding selection
2024-04-03 22:32:46 +01:00
lcnr
24a1729566
eagerly instantiate binders to avoid relying on sub
2024-03-14 17:19:40 +01:00
Michael Goulet
5cdbe83af8
Opportunistically resolve regions when processing region outlives obligations
2024-02-28 15:44:04 +00:00
许杰友 Jieyou Xu (Joe)
ec2cc761bc
[AUTO-GENERATED] Migrate ui tests from // to //@ directives
2024-02-16 20:02:50 +00:00
Oli Scherer
5f6390f947
Continue compilation after check_mod_type_wf errors
2024-02-14 11:00:30 +00:00
lcnr
058ab53dc5
use implied bounds compat mode in MIR borrowck
2024-01-19 15:27:32 +01:00
Jack Huey
a9e30e6cdf
Don't use compat versions of implied bounds in ImpliedOutlivesBounds query
2024-01-17 22:03:06 -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
Ali MJ Al-Nasrawy
a3fe3bbb2c
borrowck: wf-check fn item args
2024-01-16 09:25:28 +01:00
Michael Goulet
629d3511b7
Make IMPLIED_BOUNDS_ENTAILMENT into a hard error from a lint
2023-12-16 01:28:05 +00:00
lcnr
11d16c4082
update use of feature flags
2023-12-14 15:22:37 +01:00
Jubilee
8f9d8277de
Rollup merge of #118512 - spastorino:add-implied-bounds-related-tests, r=jackh726
...
Add tests related to normalization in implied bounds
Getting ```@aliemjay's``` tests from #109763 , so we can better track what's going on in every different example.
r? ```@jackh726```
2023-12-09 00:48:09 -08:00
Santiago Pastorino
7079adb226
Add Bevy related test cases
2023-12-08 20:14:23 -03:00
Santiago Pastorino
287c77e921
Add tests related to normalization in implied bounds
2023-12-08 17:48:59 -03:00
jyn
eb53721a34
recurse into refs when comparing tys for diagnostics
2023-12-07 23:00:46 -05:00
Nilstrieb
41e8d152dc
Show number in error message even for one error
...
Co-authored-by: Adrian <adrian.iosdev@gmail.com >
2023-11-24 19:15:52 +01:00
Ali MJ Al-Nasrawy
af79fd109b
ignore implied bounds with placeholders
2023-11-16 14:25:35 +00:00
Michael Goulet
c83f642f12
Pretty print Fn traits in rustc_on_unimplemented
2023-11-02 20:57:05 +00:00
lcnr
98fa0c93ee
unconstrained region vars: do not ICE ICE baby
2023-09-05 11:15:05 +02:00
Jack Huey
31032ecb15
Add projection obligations when comparing impl too
2023-08-20 21:13:52 -04:00
Michael Goulet
b6b5a65ae6
Select obligations before processing wf obligation in compare_method_predicate_entailment
2023-08-13 22:22:15 +00:00
Jack Huey
3028dc4ef7
Only check outlives goals on impl compared to trait
2023-08-11 21:09:17 -04:00
Michael Goulet
0e9e91a95a
Don't mention IMPLIED_BOUNDS_ENTAILMENT if signatures reference error
2023-06-05 21:20:51 +00:00
whtahy
be68c69e71
add known-bug test for unsound issue 84591
2023-04-22 00:47:07 -04:00
whtahy
adb5ded7a7
add known-bug test for unsound issue 25860
2023-04-22 00:47:07 -04:00
Ezra Shaw
b506d966a3
implement review suggestions
2023-04-14 20:18:28 +12:00
Ezra Shaw
ecf2a9b75e
fix: skip implied bounds if unconstrained lifetime exists
2023-04-13 20:29:41 +12:00
Ali MJ Al-Nasrawy
1a54144349
add test for normalization in implied bounds query
...
See https://github.com/rust-lang/rust/issues/109799 .
2023-03-31 03:27:51 +00:00
Ali MJ Al-Nasrawy
2a3177a8bc
tolerate region vars in implied bounds
...
See https://github.com/rust-lang/rust/issues/109628 .
2023-03-26 14:37:24 +03:00