about summary refs log tree commit diff
AgeCommit message (Collapse)AuthorLines
2023-11-25resolve: Avoid clones of `MacroData`Vadim Petrochenkov-55/+52
And move declarative macro compilation to an earlier point in def collector, which is required for #118188.
2023-11-24Reorder imports and remove re-exportCelina G. Val-13/+20
2023-11-24Unify TraitRefs and PolyTraitRefsMichael Goulet-22/+6
2023-11-24AmbiguityCause should not eagerly format stringsMichael Goulet-67/+54
2023-11-24Move the compiler interface defs to its own moduleCelina G. Val-163/+176
Separate items that are exposed in the `stable_mir` crate to be used by the compiler from items that we expect to be used by tool developers.
2023-11-24Auto merge of #118138 - Nilstrieb:one-previous-error, r=WaffleLapkinbors-5759/+5766
Fixes error count display is different when there's only one error left Supersedes #114759 ### What did I do? I did the small change in `rustc_errors` by hand. Then I did the other changes in `/compiler` by hand, those were just find replace on `*.rs` in the workspace. The changes in run-make are find replace for `run-make` in the workspace. All other changes are blessed using `x test TEST --bless`. I blessed the tests that were blessed in #114759. ### how to review this nightmare ping bors with an `r+`. You should check that my logic is sound and maybe quickly scroll through the diff, but fully verifying it seems fairly hard to impossible. I did my best to do this correctly. Thank you `@adrianEffe` for bringing this up and your initial implementation. cc `@flip1995,` you said you want to do a subtree sync asap cc `@RalfJung` maybe you want to do a quick subtree sync afterwards as well for Miri r? `@WaffleLapkin`
2023-11-24Break down `rustc_smir/mod.rs` fileCelina G. Val-1986/+2021
This file was getting too big and causing a lot of merge conflicts. All these changes shouldn't be visible to users since this module is private.
2023-11-24Bless ui-fulldepsNilstrieb-11/+18
We have to ignore some tests in stage1.
2023-11-24remove the memcpy-on-equal-ptrs assumptionRalf Jung-3/+2
2023-11-24move CONFIG_CHANGE_HISTORY to its own moduleonur-ozkan-94/+112
Because bootstrap lib is already large and complicated, this should make the "bumping change-id" process easier. Signed-off-by: onur-ozkan <work@onurozkan.dev>
2023-11-24use the change-id from source instead of the one from config.tomonur-ozkan-2/+2
This fixes the problem of not being able to see bootstrap config changes unless the change-id in config.toml changes. Signed-off-by: onur-ozkan <work@onurozkan.dev>
2023-11-24add change information for PR#117813onur-ozkan-1/+6
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2023-11-24Manual find replace updatesNilstrieb-4/+4
2023-11-24Manual find replace updatesNilstrieb-59/+59
2023-11-24Implement the int part of the gather family vendor intrinsicsbjorn3-6/+16
2023-11-24Implement the float part of the gather family vendor intrinsicsbjorn3-0/+87
2023-11-24Implement _mm256_zeroupper vendor intrinsicbjorn3-0/+5
2023-11-24Implement *fmaddsub_p*, *fmsubadd_p* and *fnmadd_p* vendor intrinsicsbjorn3-0/+111
2023-11-24Implement _mm_cvttps_epi32bjorn3-5/+20
2023-11-24Auto merge of #118229 - crlf0710:final_bump_unicode15, r=Mark-Simulacrumbors-2/+2
Bump `unicase` crate version. This bumps `unicase` crate to align with Unicode 15. Closes #101840.
2023-11-24We should call eq instead of sup as we're relating Ty directly and not ↵Santiago Pastorino-4/+1
Binder<TraitRef>
2023-11-24Make PlaceholderReplacer shallow_resolver when folding const and ty and ↵Santiago Pastorino-4/+18
recur if contain infer vars
2023-11-24Move EagerResolution to rustc_infer::infer::resolveSantiago Pastorino-80/+87
2023-11-24Bless Miri testsNilstrieb-472/+472
Co-authored-by: Adrian <adrian.iosdev@gmail.com>
2023-11-24Bless clippy testsNilstrieb-117/+117
Co-authored-by: Adrian <adrian.iosdev@gmail.com>
2023-11-24Bless clippy testsNilstrieb-117/+117
Co-authored-by: Adrian <adrian.iosdev@gmail.com>
2023-11-24Bless run-make testsNilstrieb-10/+10
Co-authored-by: Adrian <adrian.iosdev@gmail.com>
2023-11-24Bless rustdoc-ui testsNilstrieb-64/+64
Co-authored-by: Adrian <adrian.iosdev@gmail.com>
2023-11-24Show number in error message even for one errorNilstrieb-5026/+5026
Co-authored-by: Adrian <adrian.iosdev@gmail.com>
2023-11-24rustdoc-search: avoid infinite where clause unboxMichael Howell-8/+68
Fixes #118242
2023-11-24Auto merge of #118248 - compiler-errors:rollup-tye3vgj, r=compiler-errorsbors-155/+485
Rollup of 7 pull requests Successful merges: - #118187 (Recompile LLVM when it changes in the git sources) - #118210 (intercrate ambiguity causes: ignore candidates which don't apply) - #118215 (Add common trait for crate definitions) - #118238 (memcpy assumptions: update GCC link) - #118243 (EvalCtxt::commit_if_ok don't inherit nested goals) - #118245 (Add `Span` to `TraitBoundModifier`) - #118246 (Remove a hack for effects) r? `@ghost` `@rustbot` modify labels: rollup
2023-11-24Request that rust-analyzer changes are sent upstream first if possibleDavid Tolnay-0/+6
2023-11-24Auto merge of #11862 - ↵bors-74/+45
christophbeberweil:7125-single-element-loop-over-range, r=llogiq suggest alternatives to iterate an array of ranges works towards #7125 changelog: [`single_element_loop`]: suggest better syntax when iterating over an array of a single range `@thinkerdreamer` and myself worked on this issue during a workshop by `@llogiq` at the RustLab 2023 conference. It is our first contribution to clippy. When iterating over an array of only one element, _which is a range_, our change suggests to replace the array with the contained range itself. Additionally, a hint is printed stating that the user probably intended to iterate over the range and not the array. If the single element in the array is not a range, the previous suggestion in the form of `let {pat_snip} = {prefix}{arg_snip};{block_str}`is used. This change lints the array with the single range directly, so any prefixes or suffixes are covered as well.
2023-11-24Update changelog to add new `option_map_or_err_ok` lintGuillaume Gomez-0/+1
2023-11-24Add test for `option_map_or_err_ok` lintGuillaume Gomez-1/+35
2023-11-24Create new lint `option_map_or_err_ok`Guillaume Gomez-0/+70
2023-11-24Auto merge of #15960 - dtolnay-contrib:issomeand, r=lnicolabors-3/+3
Replace `option.map(cond) == Some(true)` with `option.is_some_and(cond)` Extracted from https://github.com/rust-lang/rust/pull/118253.
2023-11-24Replace `option.map(cond) == Some(true)` with `option.is_some_and(cond)`David Tolnay-2/+2
2023-11-24Replace `option.map(cond) == Some(true)` with `option.is_some_and(cond)`David Tolnay-22/+21
2023-11-24Replace `option.map(cond) == Some(true)` with `option.is_some_and(cond)`David Tolnay-3/+3
2023-11-24feat: 7125 code snippets are wrapped in backticksChristoph Beberweil-5/+5
2023-11-24fix: 7125 lint message should start with a small letterChristoph Beberweil-5/+5
2023-11-24Rollup merge of #118246 - fee1-dead-contrib:rm-hack, r=compiler-errorsMichael Goulet-6/+1
Remove a hack for effects Fallback was implemented in #115727, which addresses the inference errors mentioned in the comments.
2023-11-24Rollup merge of #118245 - fee1-dead-contrib:span-tilde-const, r=compiler-errorsMichael Goulet-78/+76
Add `Span` to `TraitBoundModifier` This improves diagnostics for the message "`~const` is not allowed here", and also fixes the span that we use when desugaring `~const Tr` into `Tr<host>` in effects desugaring.
2023-11-24Rollup merge of #118243 - lcnr:commit-if-ok, r=compiler-errorsMichael Goulet-9/+9
EvalCtxt::commit_if_ok don't inherit nested goals we use it to check whether an alias is rigid, so we want to avoid considering an alias rigid simply because the inference constraints from normalizing it caused another nested goal fail r? `@compiler-errors`
2023-11-24Rollup merge of #118238 - RalfJung:memcpy, r=Mark-SimulacrumMichael Goulet-1/+1
memcpy assumptions: update GCC link GCC now has this documented on an official website, not just in the bugtracker.
2023-11-24Rollup merge of #118215 - celinval:smir-def-paths, r=ouz-aMichael Goulet-53/+307
Add common trait for crate definitions In stable mir, we specialize DefId, however some functionality is the same for every definition, such as def paths, and getting their crate. Use a trait to implement those.
2023-11-24Rollup merge of #118210 - lcnr:intercrate-ambiguity-causes-uwu, ↵Michael Goulet-6/+41
r=compiler-errors intercrate ambiguity causes: ignore candidates which don't apply r? `@compiler-errors`
2023-11-24Rollup merge of #118187 - onur-ozkan:recompile-llvm-on-changes, r=clubby789Michael Goulet-2/+50
Recompile LLVM when it changes in the git sources Utilize a smart hash for 'llvm-finished-building' to enable recompilation of LLVM with each change in the git sources. Each change generates a unique hash value in 'llvm-finished-building', which ensures LLVM compilations only triggered with further changes. Resolves #111893 cc `@rust-lang/wg-llvm`
2023-11-24Auto merge of #117934 - Young-Flash:dev, r=petrochenkovbors-7/+62
feat: make `let_binding_suggestion` more reasonable This is my first PR for rustc, which trying to fix https://github.com/rust-lang/rust/issues/117894, I am not familiar with some internal api so maybe some modification here isn't the way to go, appreciated for any review suggestion.