about summary refs log tree commit diff
AgeCommit message (Collapse)AuthorLines
2023-11-28update dot tests function with check_editdfireBird-3/+33
2023-11-28refactor `complete_fn_fields` function and correct branch checksdfireBird-45/+22
2023-11-28fix the insertion of the surronding parensdfireBird-27/+16
Before it was inserting whenever function field is found but it should happend only in the case of function call.
2023-11-28add tests for tuple fields and expect fn type casesdfireBird-0/+72
2023-11-28refactor obtaining receivers into idiomatic waydfireBird-12/+10
variable name change for clearer usage indication
2023-11-28add tests for the completion of the callable fielddfireBird-7/+44
2023-11-28implement completion render for callable fieldsdfireBird-8/+25
2023-11-28add different completion for fn fieldsdfireBird-1/+52
2023-11-28Turn macro_expand from query to normal functionLukas Wirth-36/+15
2023-11-28Auto merge of #15985 - davidbarsky:david/bump-triomphe, r=lnicolabors-3/+3
internal: bump triomphe to 0.1.10
2023-11-28fix the issue of suggest unwrap/expect for shorthand fieldyukang-0/+75
2023-11-28Re-enable proc-macrosLukas Wirth-493/+787
2023-11-28internal: bump triomphe to 0.1.10David Barsky-3/+3
2023-11-28Precommit test for https://github.com/rust-lang/rust/issues/118328.Alona Enraght-Moony-0/+41
2023-11-28Rollup merge of #118410 - krasimirgg:llvm-18-test, r=nikicMatthias Krüger-1/+1
update test for new LLVM 18 codegen LLVM at HEAD now emits `or disjoint`: https://buildkite.com/llvm-project/rust-llvm-integrate-prototype/builds/24076#018c1596-8153-488e-b622-951266a02f6c/741-774
2023-11-28Rollup merge of #118399 - mu001999:miri/cleanup, r=RalfJungMatthias Krüger-26/+0
Clean dead codes in miri Detected by #118257
2023-11-28Rollup merge of #118378 - cormacrelf:bugfix/linker-plugin-lto-wasm, ↵Matthias Krüger-1/+27
r=petrochenkov Perform LTO optimisations with wasm-ld + -Clinker-plugin-lto Fixes (partially) #60059. Technically, `--target wasm32-unknown-unknown -Clinker-plugin-lto` would complete without errors before, but it was not producing optimized code. At least, it may have been but it was probably not the opt-level people intended. Similarly to #118377, this could benefit from a warning about using an explicit libLTO path with LLD, which will ignore it and use its internal LLVM. Especially given we always use lld on wasm targets. I left the code open to that possibility rather than making it perfectly neat.
2023-11-28Rollup merge of #118323 - onur-ozkan:better-error-for-incorrect-profiles, ↵Matthias Krüger-0/+5
r=clubby789 give dev-friendly error message for incorrect config profiles before this change, an incorrect profile would result in the following error: ```sh ... ... File "/home/nimda/devspace/onur-ozkan/rust/src/bootstrap/bootstrap.py", line 1088, in bootstrap with open(include_path) as included_toml: ^^^^^^^^^^^^^^^^^^ FileNotFoundError: [Errno 2] No such file or directory: '/home/nimda/devspace/onur-ozkan/rust/src/bootstrap/defaults/config.aaaa.toml' ``` with this change, the error message is now: ```sh ... ... File "/home/nimda/devspace/onur-ozkan/rust/src/bootstrap/bootstrap.py", line 1088, in bootstrap raise Exception("Unrecognized profile '{}'. Check src/bootstrap/defaults" Exception: Unrecognized profile 'aaaa'. Check src/bootstrap/defaults for available options. ```
2023-11-28Rollup merge of #118222 - the8472:copy-use-vec-write, r=m-ou-seMatthias Krüger-107/+91
unify read_to_end and io::copy impls for reading into a Vec This ports over the initial probe (to avoid allocation) and the dynamic read sizing from the io::copy specialization to the `default_read_to_end` implementation which already had its own optimizations for different cases. I think it should be a best-of-both now. suggested by `@a1phyr` in https://github.com/rust-lang/rust/pull/117576#issuecomment-1803408492
2023-11-28Rollup merge of #118193 - max-heller:command-typo, r=m-ou-seMatthias Krüger-1/+1
Add missing period in `std::process::Command` docs
2023-11-28Auto merge of #118188 - petrochenkov:defeed, r=cjgillotbors-183/+166
resolve: Feed the `def_kind` query immediately on `DefId` creation Before this PR the def kind query required building HIR for no good reason, with this PR def kinds are instead assigned immediately when `DefId`s are created. Some PRs previously refactored things to make all def kinds to be available early enough - https://github.com/rust-lang/rust/pull/118250, https://github.com/rust-lang/rust/pull/118272, https://github.com/rust-lang/rust/pull/118311.
2023-11-28def collector: Set correct namespace in `DefPathData` for foreign typesVadim Petrochenkov-17/+11
2023-11-28resolve: Feed the `def_kind` query immediately on `DefId` creationVadim Petrochenkov-173/+162
2023-11-28Auto merge of #110353 - the8472:in-place-flatten-chunks, r=cuviperbors-71/+488
Expand in-place iteration specialization to Flatten, FlatMap and ArrayChunks This enables the following cases to collect in-place: ```rust let v = vec![[0u8; 4]; 1024] let v: Vec<_> = v.into_iter().flatten().collect(); let v: Vec<Option<NonZeroUsize>> = vec![NonZeroUsize::new(0); 1024]; let v: Vec<_> = v.into_iter().flatten().collect(); let v = vec![u8; 4096]; let v: Vec<_> = v.into_iter().array_chunks::<4>().collect(); ``` Especially the nicheful-option-flattening should be useful in real code.
2023-11-28update test for new LLVM 18 codegenKrasimir Georgiev-1/+1
LLVM at HEAD now emits `or disjoint`: https://buildkite.com/llvm-project/rust-llvm-integrate-prototype/builds/24076#018c1596-8153-488e-b622-951266a02f6c/741-774
2023-11-28unwrap return Option value, as it always returns Some for some fnsklensy-29/+19
2023-11-28add test checking that aggregate assignments reset memory to uninit firstRalf Jung-0/+42
2023-11-28move write_aggregate into step file, and also extract write_repeat into ↵Ralf Jung-60/+72
separate function
2023-11-28Name explicit registers in conflict register errors for inline assemblyGeorge Wort-22/+43
2023-11-28Auto merge of #118405 - matthiaskrgr:rollup-3a2eevc, r=matthiaskrgrbors-29/+174
Rollup of 7 pull requests Successful merges: - #115331 (optimize str::iter::Chars::advance_by) - #118236 (Update mod comment) - #118299 (Update `OnceLock` documentation to give a concrete 'lazy static' example, and expand on the existing example.) - #118314 (Rename `{collections=>alloc}{tests,benches}`) - #118341 (Simplify indenting in THIR printing) - #118366 (Detect and reject malformed `repr(Rust)` hints) - #118397 (Fix comments for unsigned non-zero `checked_add`, `saturating_add`) r? `@ghost` `@rustbot` modify labels: rollup
2023-11-28Thinner TokenMapLukas Wirth-259/+123
2023-11-28🧹Lukas Wirth-123/+102
2023-11-28Rename hygiene vars and fields to span_mapLukas Wirth-83/+85
2023-11-28Deduplicate dummy test span mapsLukas Wirth-139/+99
2023-11-28Re-implement InFile wrappers as type aliases over generic InFileWrapperLukas Wirth-102/+146
2023-11-28spans always come from real fileLukas Wirth-1223/+1368
2023-11-28Fix float-split hack not setting up spans correctlyLukas Wirth-58/+197
2023-11-28More incremental testsLukas Wirth-47/+179
2023-11-28 hygiene 2.0Lukas Wirth-450/+750
2023-11-28Proper span representation with syntax contextLukas Wirth-469/+413
2023-11-28Replace ID based TokenMap with proper relative text-ranges / spansLukas Wirth-2049/+1819
2023-11-28Infect proc-macro-api crate with generic span type parameterLukas Wirth-85/+180
2023-11-28Infect mbe crate with generic span type parameterLukas Wirth-325/+360
2023-11-28Rollup merge of #118397 - Zalathar:nonzero, r=WaffleLapkinMatthias Krüger-2/+2
Fix comments for unsigned non-zero `checked_add`, `saturating_add` While looking at #118313, I happened to notice that two of the expanded comments appear to be slightly inaccurate. For these two methods, `other` is an ordinary unsigned integer, so it can be zero. Since the sum of non-zero and zero is always non-zero, the safety argument holds even when `other` is zero.
2023-11-28Rollup merge of #118366 - fmease:detect-reject-malformed-rust-repr, ↵Matthias Krüger-11/+38
r=compiler-errors Detect and reject malformed `repr(Rust)` hints Fixes #118334.
2023-11-28Rollup merge of #118341 - Mark-Simulacrum:shrink-thir-print, r=compiler-errorsMatthias Krüger-2/+8
Simplify indenting in THIR printing This cuts >100kb from a local librustc_driver.so build, and seems just obviously simpler.
2023-11-28Rollup merge of #118314 - WaffleLapkin:rename_collectionstests, r=cuviperMatthias Krüger-2/+2
Rename `{collections=>alloc}{tests,benches}` The crate is named `alloc` so this makes more sense. Ig this is fallout from #42648?
2023-11-28Rollup merge of #118299 - frewsxcv:patch-2, r=cuviperMatthias Krüger-9/+41
Update `OnceLock` documentation to give a concrete 'lazy static' example, and expand on the existing example.
2023-11-28Rollup merge of #118236 - ksw2000:update_mod_comment, r=cuviperMatthias Krüger-3/+3
Update mod comment The comment of `ASCII_CASE_MASK` on line 477 is `If 6th bit is set ascii is lower case.` but the original comment of `*self ^ ((self.is_ascii_lowercase() as u8) * ASCII_CASE_MASK)` was `Toggle the fifth bit if this is a lowercase letter`
2023-11-28Rollup merge of #115331 - the8472:chars_advance, r=cuviperMatthias Krüger-0/+80
optimize str::iter::Chars::advance_by ``` OLD: str::iter::chars_advance_by_0001 0.00ns/iter +/- 0.00ns str::iter::chars_advance_by_0010 13.00ns/iter +/- 1.00ns str::iter::chars_advance_by_1000 1.20µs/iter +/- 15.00ns NEW: str::iter::chars_advance_by_0001 0.00ns/iter +/- 0.00ns str::iter::chars_advance_by_0010 6.00ns/iter +/- 0.00ns str::iter::chars_advance_by_1000 75.00ns/iter +/- 1.00ns ```