about summary refs log tree commit diff
AgeCommit message (Collapse)AuthorLines
2023-12-18Rename `EarlyErrorHandler` as `EarlyDiagCtxt`.Nicholas Nethercote-4/+3
2023-12-18Rename `CodegenContext::create_diag_handler` as `CodegenContext::create_dcx`.Nicholas Nethercote-14/+10
2023-12-18Rename `ShowSpanVisitor::span_diagnostic` as `ShowSpanVisitor::dcx`.Nicholas Nethercote-6/+6
2023-12-18Rename `AstValidator::err_handler` as `AstValidator::dcx`.Nicholas Nethercote-41/+38
2023-12-18Rename `DiagnosticBuilder::handler` as `DiagnosticBuilder::dcx`.Nicholas Nethercote-2/+2
2023-12-18Rename `ParseSess::with_span_handler` as `ParseSess::with_dcx`.Nicholas Nethercote-11/+11
2023-12-18Rename `Parser::span_diagnostic` as `Parser::dcx`.Nicholas Nethercote-42/+40
2023-12-18Rename `Session::span_diagnostic` as `Session::dcx`.Nicholas Nethercote-204/+176
2023-12-18Rename `ParseSess::span_diagnostic` as `ParseSess::dcx`.Nicholas Nethercote-98/+89
2023-12-18Rename `HandlerFlags` as `DiagCtxtFlags`.Nicholas Nethercote-8/+8
2023-12-18Rename `EarlyErrorHandler` as `EarlyDiagCtxt`.Nicholas Nethercote-88/+77
2023-12-18Rename `HandlerInner` as `DiagCtxtInner`.Nicholas Nethercote-10/+10
2023-12-18Rename `Handler` as `DiagCtxt`.Nicholas Nethercote-1/+1
2023-12-18Rename `Handler` as `DiagCtxt`.Nicholas Nethercote-204/+216
2023-12-18Auto merge of #119007 - weihanglo:update-cargo, r=weihanglobors-0/+0
Update cargo 11 commits in 1aa9df1a5be205cce621f0bc0ea6062a5e22a98c..1a2666ddd14cf0a255d4ddb61c63531c259a7b39 2023-12-12 14:52:31 +0000 to 2023-12-17 17:53:53 +0000 - chore: downgrade to openssl v1.1.1 (rust-lang/cargo#13179) - docs(home): prepare the changelog for 0.5.9 (rust-lang/cargo#13177) - refactor: Pull name validation into `util_schemas` (rust-lang/cargo#13166) - chore(deps): bump zerocopy from 0.7.29 to 0.7.31 (rust-lang/cargo#13174) - Replace SHGetFolderPathW with SHGetKnownFolderPath (rust-lang/cargo#13173) - chore(bump-check): dont check `home` against beta/stable branches (rust-lang/cargo#13167) - fix: Fill in more empty name holes (rust-lang/cargo#13164) - Do not allow empty name in package ID spec (rust-lang/cargo#13152) - chore(deps): update rust crate openssl to 0.10.61 (rust-lang/cargo#13159) - `all-static` feature should include `vendored-libgit2` (rust-lang/cargo#13134) - doc/registry-web-api: Adjust success response code documentation (rust-lang/cargo#13160) r? ghost
2023-12-17Add new intrinsicsCaleb Zulawski-0/+39
2023-12-17Further explain semanticsCaleb Zulawski-2/+13
2023-12-17Apply suggestions from code reviewCaleb Zulawski-2/+3
Co-authored-by: Ralf Jung <post@ralfj.de>
2023-12-17Improve simd_bitmask documentation and other minor fixesCaleb Zulawski-8/+15
2023-12-17State type requirements firstCaleb Zulawski-61/+62
2023-12-17Clarify UB and improve grammarCaleb Zulawski-4/+4
Co-authored-by: Ralf Jung <post@ralfj.de>
2023-12-17Add core::intrinsics::simdCaleb Zulawski-0/+413
2023-12-18Auto merge of #118657 - petrochenkov:feedvis, r=cjgillotbors-82/+49
resolve: Replace visibility table in resolver outputs with query feeding Also feed missing visibilities for import stems and trait impl items, which were previously evaluated lazily. I suspect that in general this approach should work for queries that are 1) executed for most keys and 2) have results that are cheap to hash (do not have spans, in particular). Visibility query matches that description.
2023-12-18Make sure all kinds of generators only return unitMichael Goulet-3/+56
2023-12-18Ensure `yield` expressions desugar correctly in async generatorsMichael Goulet-20/+49
2023-12-18Address commentKai Luo-1/+1
2023-12-18Deny ~const trait bounds in inherent impl headersLeón Orell Valerian Liehr-20/+36
2023-12-17Fortify test.Camille GILLOT-4/+9
2023-12-18resolve: Replace visibility table in resolver outputs with query feedingVadim Petrochenkov-82/+49
Also feed missing visibilities for import stems and trait impl items, which were previously evaluated lazily.
2023-12-17Auto merge of #114962 - darklyspaced:debug, r=est31bors-18/+18
adds a column number to `dbg!()` this would be very nice to have for a few reasons: 1. the rfc, when deciding not to add column numbers to macro, failed to acknowledge any potential ambiguous cases -- such as the one provided in #114910 -- which do exist 2. would be able to consistently and easily jump directly to the `dbg!()` regardless of the sutation 3. takes up, at a maximum, 3 characters of _horizontal_ screen space fixes #114910
2023-12-17Update cargoWeihang Lo-0/+0
2023-12-17Tolerate overaligned MIR constants for codegen.Camille GILLOT-1/+32
2023-12-18ci: docker: dist-various-1: Include RISC-V C compilersAlistair Francis-8/+30
The compiler-builtins for RISC-V are missing some key functions, such as __bswapsi2 [1]. We can't just pull in the LLVM compiler-rt builtins as the rust-lang/rust distribution container doesn't have a C compiler [2]. This patch adds RISC-V C compilers to the CI Dockerfile as the first step towards enabling LLVM compiler-rt builtins for RISC-V Rust. 1: https://github.com/rust-lang/compiler-builtins/issues/350 2: https://github.com/rust-lang/compiler-builtins/commit/e4f46b91ca843297fc065e20f1591e4971ae608c Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2023-12-17Auto merge of #119053 - matthiaskrgr:rollup-hky3ld3, r=matthiaskrgrbors-27/+739
Rollup of 4 pull requests Successful merges: - #118880 (More expressions correctly are marked to end with curly braces) - #118928 (fix: Overlapping spans in delimited meta-vars) - #119022 (Remove unnecessary constness from ProjectionCandidate) - #119052 (Avoid overflow in GVN constant indexing.) r? `@ghost` `@rustbot` modify labels: rollup
2023-12-17Rollup merge of #119052 - cjgillot:gvn-index-overflow, r=compiler-errorsMatthias Krüger-5/+229
Avoid overflow in GVN constant indexing. Fixes https://github.com/rust-lang/rust/issues/118992 Fixes https://github.com/rust-lang/rust/issues/119008
2023-12-17Rollup merge of #119022 - compiler-errors:no-constness, r=fee1-deadMatthias Krüger-19/+12
Remove unnecessary constness from ProjectionCandidate Constness in an item bound will be represented by an effect param, so no need to record constness here. r? fee1-dead
2023-12-17Rollup merge of #118928 - EliseZeroTwo:EliseZeroTwo/fix-issue-118786, r=cjgillotMatthias Krüger-0/+70
fix: Overlapping spans in delimited meta-vars Closes #118786 Delimited meta-vars inside of MBE's spans were set to have the same opening and closing position resulting in an ICE when debug assertions were enabled and an error was present in the templated code. This ensures that the spans do not overlap, whilst still having the spans point at the usage of the meta-var inside the macro definition. It includes a regression test. 🖤
2023-12-17Rollup merge of #118880 - GearsDatapacks:issue-118859-fix, r=compiler-errorsMatthias Krüger-3/+428
More expressions correctly are marked to end with curly braces Fixes #118859, and replaces the mentioned match statement with an exhaustive list, so that this code doesn't get overlooked in the future
2023-12-17Avoid overflow in GVN constant indexing.Camille GILLOT-5/+229
2023-12-17Auto merge of #119048 - aliemjay:perf-register-pred, r=compiler-errorsbors-2/+3
don't fold ParamEnv in register_predicate_obligation \>5% perf gain for diesel!
2023-12-17Use FileEndOfFileInfo, not FileAllocationInfoChris Denton-6/+8
This fixes WINE support
2023-12-17don't fold ParamEnv in register_predicate_obligationAli MJ Al-Nasrawy-2/+3
2023-12-17Auto merge of #117884 - bvanjoi:fix-117794, r=compiler-errorsbors-0/+23
skip rpit constraint checker if borrowck return type error Fixes #117794 Fixes #117886 Fixes #119025 Prior to change #117418, the value of `concrete_opaque_types` for `mir_borrock(T::a::opaque)` was `None`. However, due to modifications in `body.local_decls`, the return value had been changed. The changed of `body.local_decls` has let to the addition of `ty:Error` to `infcx.opaque_type_storage.opaque_types` during `TypeChecker::equate_inputs_and_outputs`. This is due to it utilizing the output of a function signature that was appended during `construct_error`(which previously only appended a `ty::Error`) and then execute `TypeChecker::Related_types`. Therefore, in this PR, I've implemented a condition to bypass the rpit check when an error is encountered. r? `@compiler-errors`
2023-12-17Auto merge of #119020 - onur-ozkan:remove-hex, r=albertlarsan68bors-29/+79
remove `hex` dependency in bootstrap First commit removes the `hex` dependency, as we can achieve the same output with the added function, which is very small and simple. Second commit creates a test module for the helpers util and adds unit tests for multiple helper functions, including `hex_encode`.
2023-12-17Auto merge of #118828 - mu001999:master, r=b-naberbors-17/+0
Remove dead codes in rustc_codegen_gcc Detected by #118257
2023-12-17Auto merge of #119039 - RalfJung:miri, r=RalfJungbors-354/+491
Miri subtree update r? `@ghost`
2023-12-17skip rpit constraint check if borrowck return type errorbohan-0/+23
2023-12-17do not allow ABI mismatches inside repr(C) typesRalf Jung-2/+33
2023-12-17Auto merge of #119000 - celinval:smir-cstr, r=ouz-abors-0/+37
Add a method to StableMIR to check if a type is a CStr Also add a check that StableMIR works properly with C string literal.
2023-12-17Auto merge of #3229 - saethlin:protector-gc-ice, r=RalfJungbors-8/+25
Visit the AllocIds and BorTags in borrow state FrameExtra Fixes https://github.com/rust-lang/miri/issues/3228 I said > The obvious way would be to visit the AllocIds in borrow_tracker::FrameExtra in the GC. Since I have had no new ideas, that's what this does.