Nathan Stocks
57eba4f535
avoid string dispatch in fluent
2022-10-07 13:19:28 -06:00
Nathan Stocks
8e07a85ad7
Remove code that was removed in master, and the corresponding diagnostic
2022-10-07 13:19:28 -06:00
Nathan Stocks
965dbf6c28
First batch of review feedback changes from #102110
2022-10-07 13:19:28 -06:00
Nathan Stocks
be4059dd3e
migrate stability.rs to translateable diagnostics
2022-10-07 13:19:27 -06:00
Nathan Stocks
3fe8e004e9
migrate the rest of check_attr.rs to translateable diagnostics
2022-10-07 13:19:27 -06:00
Nathan Stocks
a7aa1850b2
migrate dead.rs to translateable diagnostics
2022-10-07 13:19:27 -06:00
Nathan Stocks
f0afb88302
migrate lang_items.rs to translateable diagnostics
2022-10-07 13:19:27 -06:00
Nathan Stocks
b17ec43637
migrate entry.rs to translateable diagnostics
2022-10-07 13:19:27 -06:00
Nathan Stocks
96f92eab68
migrate naked_functions.rs to translateable diagnostics
2022-10-07 13:19:27 -06:00
Nathan Stocks
69766e4f16
migrate loops.rs to translateable diagnostics
2022-10-07 13:19:27 -06:00
Nathan Stocks
572f3414b7
migrate check_const.rs to translateable diagnostics
2022-10-07 13:19:27 -06:00
Nathan Stocks
c457abee2e
migrate lib_features.rs to translateable diagnostics
2022-10-07 13:19:27 -06:00
Nathan Stocks
40d5f00e16
migrate layout_test.rs to translateable diagnostics
2022-10-07 13:19:27 -06:00
Nathan Stocks
0609c0f1da
migrate diagnostic_items.rs to translateable diagnostics
2022-10-07 13:19:27 -06:00
Nathan Stocks
3a748330af
use cherry-picked commit from #100754 to emit note without error
2022-10-07 13:19:27 -06:00
David Wood
f8ebc72b4a
errors: add emit_note
/create_note
...
Add `Noted` marker struct that implements `EmissionGuarantee` so that
`emit_note` and `create_note` can be implemented for struct diagnostics.
Signed-off-by: David Wood <david.wood@huawei.com>
2022-10-07 13:19:27 -06:00
Nathan Stocks
1e86226e9d
migrate debugger_visualizer.rs to translateable diagnostics
2022-10-07 13:19:27 -06:00
Nathan Stocks
c103c3059f
migrate the rest of weak_lang_items.rs to translateable diagnostics
2022-10-07 13:19:27 -06:00
Diego de Oliveira
1222541cfd
resolve merge conflict from cherry-picking 6a47326a04
2022-10-07 13:19:27 -06:00
Nathan Stocks
b8e03cfa55
use consistent names
2022-10-07 13:19:27 -06:00
Nathan Stocks
c24a87315a
always put ftl message on next line, resolve all but 1 output comparison error
2022-10-07 13:19:27 -06:00
rdvdev2
2c3351c9a6
Migrate InvalidAttrAtCrateLevel
...
Co-authored-by: Nathan Stocks <cleancut@github.com>
Co-authored-by: rdvdev2 <rdvdev2@gmail.com>
2022-10-07 13:19:27 -06:00
rdvdev2
0315d7c9db
Migrate derivable diagnostics in check_attr.rs
2022-10-07 13:19:27 -06:00
rdvdev2
17a4a68ab0
Migrate derivable diagnostics in lang_items.rs
2022-10-07 13:19:27 -06:00
rdvdev2
2f74d1d14f
Migrate weak_lang_items.rs
2022-10-07 13:19:26 -06:00
rdvdev2
bde80f745b
Add lint for diagnostic migration
2022-10-07 13:19:26 -06:00
bors
2d3a85b4f8
Auto merge of #102787 - Dylan-DPC:rollup-fvbb4t9, r=Dylan-DPC
...
Rollup of 6 pull requests
Successful merges:
- #102300 (Use a macro to not have to copy-paste `ConstFnMutClosure::new(&mut fold, NeverShortCircuit::wrap_mut_2_imp)).0` everywhere)
- #102475 (unsafe keyword: trait examples and unsafe_op_in_unsafe_fn update)
- #102760 (Avoid repeated re-initialization of the BufReader buffer)
- #102764 (Check `WhereClauseReferencesSelf` after all other object safety checks)
- #102779 (Fix `type_of` ICE)
- #102780 (run Miri CI when std::sys changes)
Failed merges:
r? `@ghost`
`@rustbot` modify labels: rollup
2022-10-07 17:37:39 +00:00
Dylan DPC
d70e56aef8
Rollup merge of #102779 - TaKO8Ki:fix-type-of-ice-102768, r=fee1-dead
...
Fix `type_of` ICE
Fixes #102768
2022-10-07 22:05:32 +05:30
Dylan DPC
34dfd82de0
Rollup merge of #102764 - compiler-errors:issue-102762, r=jackh726
...
Check `WhereClauseReferencesSelf` after all other object safety checks
This fixes the ICE because it causes us to detect another *non-lint* `MethodViolationCode` first, instead of breaking on `WhereClauseReferencesSelf`.
We could also approach this issue by instead returning a vector of *all* of the `MethodViolationCode`s, and just reporting the first one we see, but treating it as a hard error if we return both `WhereClauseReferencesSelf` and some other violation code -- let me know if this is desired.
Fixes #102762
2022-10-07 22:05:31 +05:30
Oli Scherer
d90d055691
Allow transmutes between the same types after erasing lifetimes
2022-10-07 16:33:32 +00:00
Michael Goulet
8b9a1f1f4e
Remove tuple candidate, nothing special about it
2022-10-07 16:19:21 +00:00
Ralf Jung
fd59d44f58
make const_err a hard error
2022-10-07 18:08:49 +02:00
Deadbeef
e8a2aee50d
Remove DefId
from some SelectionCandidate
variants
2022-10-07 15:14:22 +00:00
Cameron Steffen
ff940db666
Rewrite representability
2022-10-07 09:33:46 -05:00
Jhonny Bill Mena
13d4f27c82
ADD - implement IntoDiagnostic for thorin::Error wrapper
2022-10-07 10:03:45 -04:00
Jhonny Bill Mena
a25f939170
Address PR comments
...
- UPDATE - revert migration of logs
- UPDATE - use derive on LinkRlibError enum
- [Gardening] UPDATE - alphabetically sort fluent_messages
- UPDATE - use PathBuf and unify both AddNativeLibrary to use Display (which is what PathBuf uses when conforming to IntoDiagnosticArg)
- UPDATE - fluent messages sort after rebase
2022-10-07 10:03:45 -04:00
Jhonny Bill Mena
12aa84bdf3
ADD - initial port of link.rs
2022-10-07 10:03:45 -04:00
Jhonny Bill Mena
0f97d4a141
DELETE - unused error after PR# 100101 was merged
2022-10-07 10:03:45 -04:00
Jhonny Bill Mena
7548d952af
UPDATE - resolve fixme and emit errors via Handler
2022-10-07 10:03:45 -04:00
Jhonny Bill Mena
67eb01c3f3
UPDATE - codege-ssa errors to new Diagnostic macro name
2022-10-07 10:03:45 -04:00
Jhonny Bill Mena
d9197dbbcd
UPDATE - migrate write.rs to new diagnostics infra
2022-10-07 10:03:45 -04:00
Jhonny Bill Mena
086e70f13e
UPDATE - migrate linker.rs to new diagnostics infra
2022-10-07 10:03:45 -04:00
Jhonny Bill Mena
0a2d7f83cb
UPDATE - LibDefWriteFailure to accept type instead of formatted string
...
This follows team’s suggestions in this thread 295305249
2022-10-07 10:00:32 -04:00
Jhonny Bill Mena
4e0de5319c
ADD - migrate lib.def write fatal error
...
This diagnostic has no UI test 🤔 Should we add some? If so, how?
2022-10-07 10:00:32 -04:00
Jhonny Bill Mena
b0b072d747
ADD - codegen_ssa initial diags translations machinery
...
ADD - migrate MissingNativeStaticLibrary fatal error
2022-10-07 10:00:32 -04:00
Cameron Steffen
283abbf0e7
Change InferCtxtBuilder from enter to build
2022-10-07 07:10:40 -05:00
Takayuki Maeda
fa767868df
fix a ICE #102768
2022-10-07 21:10:08 +09:00
Cameron Steffen
91269fa5b8
Remove a reference from Inherited
2022-10-07 07:06:19 -05:00
Cameron Steffen
349415d1c6
Remove TypeckResults from InferCtxt
2022-10-07 07:06:19 -05:00
Cameron Steffen
4a68373217
Introduce TypeErrCtxt
...
TypeErrCtxt optionally has a TypeckResults so that InferCtxt doesn't
need to.
2022-10-07 07:06:16 -05:00