Ali MJ Al-Nasrawy
a3fe3bbb2c
borrowck: wf-check fn item args
2024-01-16 09:25:28 +01:00
George-lewis
d56cdd48cb
Bless tests
...
Update tests
2024-01-13 12:46:58 -05:00
bors
be00c5a9b8
Auto merge of #118968 - aliemjay:canon-static, r=lcnr
...
unify query canonicalization mode
Exclude from canonicalization only the static lifetimes that appear in the param env because of #118965 . Any other occurrence can be canonicalized safely AFAICT.
r? `@lcnr`
2024-01-09 09:20:33 +00:00
bors
d6d7a93866
Auto merge of #118824 - aliemjay:perf-region-cons, r=compiler-errors
...
use Vec for region constraints instead of BTreeMap
~1% perf gain
Diagnostic regressions need more investigation.
r? `@ghost`
2023-12-22 20:28:48 +00:00
surechen
4897d5eccf
Simple modification of diagnostic information
...
fixes #119067
2023-12-21 10:17:11 +08:00
Ali MJ Al-Nasrawy
8c215e7841
fix diagnostic regresssion
2023-12-17 07:31:07 +00:00
Ali MJ Al-Nasrawy
9f7d0e91b5
use Vec for region constraints
2023-12-17 07:31:07 +00:00
Ali MJ Al-Nasrawy
707c4f967e
unify query canonicalization mode
2023-12-15 06:59:42 +00:00
lcnr
11d16c4082
update use of feature flags
2023-12-14 15:22:37 +01:00
jyn
eb53721a34
recurse into refs when comparing tys for diagnostics
2023-12-07 23:00:46 -05:00
Michael Goulet
b97ff8eb16
Add print_trait_sugared
2023-12-05 17:15:46 +00:00
Nilstrieb
9b80d85722
Manual find replace updates
2023-11-24 21:04:51 +01: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
bors
820f06b21f
Auto merge of #116097 - jackh726:higher-ranked-lifetime-error-backup, r=compiler-errors
...
Try to use approximate placeholder regions when outputting an AscribeUserType error in borrowck
Fixes #114866
Hi from GOSIM :)
2023-11-16 19:12:35 +00:00
Michael Goulet
c83f642f12
Pretty print Fn traits in rustc_on_unimplemented
2023-11-02 20:57:05 +00:00
Alex Macleod
5453a9f34d
Add a note to duplicate diagnostics
2023-10-05 01:04:41 +00:00
Jack Huey
35dd0c9049
Try to use approximate placeholder regions when outputting an AscribeUserType error in borrowck
2023-09-24 02:10:30 -04:00
Ralf Jung
c4ec12f4b7
adjust how closure/generator types and rvalues are printed
2023-09-21 22:20:58 +02:00
Michael Goulet
976d377f7f
Explain HRTB + infer limitations of old solver
2023-09-19 05:14:14 +00:00
Michael Goulet
30e6cea0ae
Point out if a local trait has no implementations
2023-09-10 21:20:36 +00:00
Michael Goulet
591b547e81
Point out expectation even if we have RegionsInsufficientlyPolymorphic
2023-08-09 01:10:08 +00:00
Mara Bos
0e729404da
Change default panic handler message format.
2023-07-29 11:42:50 +02:00
Mahdi Dibaiee
b2d052b22d
write-long-types-to-disk: update tests
2023-07-25 12:08:44 +01:00
Mahdi Dibaiee
8df39667dc
new unstable option: -Zwrite-long-types-to-disk
...
This option guards the logic of writing long type names in files and
instead using short forms in error messages in rustc_middle/ty/error
behind a flag. The main motivation for this change is to disable this
behaviour when running ui tests.
This logic can be triggered by running tests in a directory that has a
long enough path, e.g. /my/very-long-path/where/rust-codebase/exists/
This means ui tests can fail depending on how long the path to their
file is.
Some ui tests actually rely on this behaviour for their assertions,
so for those we enable the flag manually.
2023-07-24 12:25:05 +01:00
Michael Goulet
fe870424a7
Do not set up wrong span for adjustments
2023-07-10 20:09:26 +00:00
dswij
91351ef486
Add test for futures with HRTB
2023-06-25 21:32:02 +08:00
许杰友 Jieyou Xu (Joe)
edafbaffb2
Adjust UI tests for unit_bindings
...
- Either explicitly annotate `let x: () = expr;` where `x` has unit
type, or remove the unit binding to leave only `expr;` instead.
- Fix disjoint-capture-in-same-closure test
2023-06-12 20:24:48 +08:00
lcnr
5119f7da18
directory size limit :<
2023-05-30 13:04:25 +02:00
lcnr
6f9041bd15
add the leak check to the new solver
2023-05-30 13:03:40 +02:00