IQuant
e813b6d6e1
Update compiler/rustc_infer/src/infer/error_reporting/suggest.rs
...
Co-authored-by: David Wood <agile.lion3441@fuligin.ink>
2023-04-04 18:50:07 +03:00
IQuant
1f09bc77c1
Migrate (most of) report_and_explain_type_error
2023-04-04 18:50:02 +03:00
IQuant
ab11b4389e
FailureCode::Error0038 is unreachable, so can be removed
2023-04-04 18:34:50 +03:00
IQuant
b610ce72ce
Migrate TupleTrailingCommaSuggestion
2023-04-04 18:34:50 +03:00
IQuant
d18adb7d56
Migrate SuggestTuplePattern
2023-04-04 18:34:50 +03:00
IQuant
23b8567a78
Migrate SuggestBoxingForReturnImplTrait, Fix typo in infer_fn_consider_casting
2023-04-04 18:34:50 +03:00
IQuant
d56b304bc8
Migrate SuggestAccessingField
2023-04-04 18:34:50 +03:00
IQuant
b36abea285
Migrate SuggestAsRefWhereAppropriate
2023-04-04 18:34:50 +03:00
IQuant
37f55691f4
Ported FunctionPointerSuggestion
2023-04-04 18:34:50 +03:00
Oli Scherer
e9c7fb10b9
Rename ast::Static
to ast::StaticItem
to match ast::ConstItem
2023-04-04 15:34:40 +00:00
Oli Scherer
373807a95c
Rename ast::Static
to ast::StaticItem
to match ast::ConstItem
2023-04-04 15:34:40 +00:00
Guillaume Gomez
8aef0c7926
Add GUI test for scrollbar position on source code page
2023-04-04 16:35:53 +02:00
Guillaume Gomez
6f9b988578
Move scrollbar on the <main> element rather than only on the code block to improve UX
2023-04-04 16:35:36 +02:00
Michael Goulet
72ef85d83e
Don't collect return-position impl traits for documentation
2023-04-04 14:03:50 +00:00
Oli Scherer
e610ddfa5e
box a bunch of large types
2023-04-04 13:58:50 +00:00
Oli Scherer
4bebdd7104
box a bunch of large types
2023-04-04 13:58:50 +00:00
clubby789
ebde2ab363
Deny use
ing tool paths
2023-04-04 14:10:13 +01:00
Michael Woerister
6117c06306
incr.comp.: Make sure dependencies are recorded when feeding queries during eval-always queries.
2023-04-04 14:38:46 +02:00
klensy
f41e711b7e
replace
...
LLVMRustBuildIntCast -> LLVMBuildIntCast2
LLVMRustAddHandler -> LLVMAddHandler
2023-04-04 15:12:36 +03:00
klensy
cc77ae07a9
Use existing llvm methods, instead of rust wrappers for:
...
LLVMRustBuildCleanupPad -> LLVMBuildCleanupPad
LLVMRustBuildCleanupRet -> LLVMBuildCleanupRet
LLVMRustBuildCatchPad -> LLVMBuildCatchPad
LLVMRustBuildCatchRet -> LLVMBuildCatchRet
LLVMRustBuildCatchSwitch -> LLVMBuildCatchSwitch
2023-04-04 15:12:36 +03:00
klensy
076116bb4c
replace LLVMRustAppendModuleInlineAsm with LLVMAppendModuleInlineAsm, LLVMRustMetadataTypeInContext with LLVMMetadataTypeInContext
2023-04-04 15:12:35 +03:00
klensy
c53a9faa6f
replace LLVMRustMetadataAsValue with LLVMMetadataAsValue
2023-04-04 15:12:35 +03:00
klensy
7d6181e4d8
add bunch of fixmes: currently there exist some functions that accept LLVMValueRef, some that accept LLVMMetadataRef, and replacing one with another not always possible without explicit convertion
2023-04-04 15:12:33 +03:00
klensy
0b5f9ac73e
replace deprecated LLVMSetCurrentDebugLocation with LLVMSetCurrentDebugLocation2
2023-04-04 15:12:32 +03:00
jyn
92b7591371
Add a best guess at what line-directives-only
means
2023-04-04 07:37:33 -04:00
bors
be8e5ba157
Auto merge of #109917 - compiler-errors:remove-relation-methods, r=oli-obk
...
Remove `intercrate` and `mark_ambiguous` from `TypeRelation`
Fixes #109863
Pulls this logic into `super_combine_tys`, which has access to `InferCtxt` and takes a `ObligationEmittingRelation` -- both of which simplify the logic here.
r? `@oli-obk` `@aliemjay`
2023-04-04 11:08:23 +00:00
Oli Scherer
b5d96d5ec5
Move a const-prop-lint specific hack from mir interpret to const-prop-lint and make it fallible
2023-04-04 10:39:26 +00:00
bors
5d149c5dac
Auto merge of #10543 - blyxyas:tests_outside_test_module, r=flip1995
...
Add `tests_outside_test_module` lint
Adds `tests_outside_test_module` from #10506 . This PR **doesn't** close the issue, just resolves task 1.
changelog: [`tests_outside_test_module`]: The lint has been added
2023-04-04 09:46:50 +00:00
Oli Scherer
ff7636db6a
Split out ast::ItemKind::Const into its own struct
2023-04-04 09:44:50 +00:00
Oli Scherer
ec74653652
Split out ast::ItemKind::Const into its own struct
2023-04-04 09:44:50 +00:00
Oli Scherer
929696d754
rust-analyzer guided tuple field to named field
2023-04-04 09:44:50 +00:00
Oli Scherer
e3828777a6
rust-analyzer guided tuple field to named field
2023-04-04 09:44:50 +00:00
Oli Scherer
a6beddcc5a
rust-analyzer guided enum variant structification
2023-04-04 09:44:45 +00:00
Oli Scherer
b08a557f80
rust-analyzer guided enum variant structification
2023-04-04 09:44:45 +00:00
blyxyas
b2f9191820
Fix formatting and lint description
2023-04-04 11:42:32 +02:00
zhaixiaojuan
737e1d2569
loongarch64: calculate the ELF header flags
2023-04-04 17:11:40 +08:00
zhaixiaojuan
b7c5323d42
Add loongarch64 to fn create_object_file
2023-04-04 17:05:08 +08:00
zhaixiaojuan
ca8cad7896
Add loongarch64 to exception list
2023-04-04 17:05:08 +08:00
zhaixiaojuan
ccf5417799
Enable loongarch64 LLVM target
2023-04-04 17:05:08 +08:00
zhaixiaojuan
10f7ba562a
Add LLVM target and cputype matching for loongarch64
2023-04-04 17:05:08 +08:00
zhaixiaojuan
f465bc7874
rustdoc: Add human-readable cfg string for loongarch64
2023-04-04 17:05:08 +08:00
zhaixiaojuan
50be2a30cb
library/unwind: Add definitions for loongarch64
2023-04-04 17:05:08 +08:00
zhaixiaojuan
a5e23115bd
library/std: Add support for loongarch64
2023-04-04 17:05:08 +08:00
zhaixiaojuan
ad26dab27c
Initial support for loongarch64-unknown-linux-gnu
2023-04-04 17:05:07 +08:00
Oli Scherer
54214c8d8d
Use a simpler atomic operation than the compare_exchange
hammer
2023-04-04 09:01:44 +00:00
Oli Scherer
300901b705
Use new iteration helpers instead of manually rolling them
2023-04-04 09:01:44 +00:00
Oli Scherer
a1d20cf7a2
Another AppendOnlyVec
2023-04-04 09:01:44 +00:00
Oli Scherer
7edd1d8799
Replace another lock with an append-only vec
2023-04-04 09:01:44 +00:00
Oli Scherer
4699632637
Remove a lock in favor of an AppendOnlyVec
2023-04-04 09:01:44 +00:00
Oli Scherer
daee746771
Add a usize-indexed append-only-vec
2023-04-04 09:01:44 +00:00