about summary refs log tree commit diff
AgeCommit message (Collapse)AuthorLines
2022-10-14Add testMichael Goulet-0/+42
2022-10-14float and int vars are trivially copyMichael Goulet-1/+8
2022-10-14Auto merge of #103026 - matthiaskrgr:rollup-gfmlfkt, r=matthiaskrgrbors-67/+392
Rollup of 7 pull requests Successful merges: - #103000 (Add suggestion to the "missing native library" error) - #103006 (rustdoc: don't ICE on `TyKind::Typeof`) - #103008 (replace ReErased with fresh region vars in opaque types) - #103011 (Improve rustdoc `unsafe-fn` GUI test) - #103013 (Add new bootstrap entrypoints to triagebot) - #103016 (Ensure enum cast moves) - #103021 (Add links to relevant pages to find constraint information) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
2022-10-14Rollup merge of #103021 - GuillaumeGomez:constraint-pages, r=AmanieuMatthias Krüger-0/+4
Add links to relevant pages to find constraint information I think it can be quite helpful to find this information more quickly. r? `@Amanieu`
2022-10-14Rollup merge of #103016 - nbdd0121:enum, r=pnkfelixMatthias Krüger-26/+67
Ensure enum cast moves Fix #102389 r? ``@pnkfelix``
2022-10-14Rollup merge of #103013 - Nilstrieb:patch-1, r=jyn514Matthias Krüger-0/+2
Add new bootstrap entrypoints to triagebot They haven't been added yet, as seen in #103007. r? ``@jyn514``
2022-10-14Rollup merge of #103011 - GuillaumeGomez:improve-unsafe-fn-gui-test, r=notriddleMatthias Krüger-32/+23
Improve rustdoc `unsafe-fn` GUI test r? ``@notriddle``
2022-10-14Rollup merge of #103008 - aliemjay:opaque-parent-substs, r=oli-obkMatthias Krüger-5/+209
replace ReErased with fresh region vars in opaque types See inline comments. Prior art #102943. cc ``@compiler-errors`` ``@oli-obk`` Fixes #100267 Fixes #101940 Fixes #102649 Fixes #102510
2022-10-14Rollup merge of #103006 - WaffleLapkin:rustdoc_dont, r=compiler-errorsMatthias Krüger-2/+19
rustdoc: don't ICE on `TyKind::Typeof` Fixes #102986 I'm not sure why rustdoc started seeing `TyKind::Typeof` all of a sudden (the code being editted was last touched 3 months ago), probably something to do with error recovery? idk.
2022-10-14Rollup merge of #103000 - wesleywiser:suggest_libname, r=compiler-errorsMatthias Krüger-2/+68
Add suggestion to the "missing native library" error If we fail to locate a native library that we are linking with, it could be the case the user entered a complete file name like `foo.lib` or `libfoo.a` when we expect them to simply provide `foo`. In this situation, we now detect that case and suggest the user only provide the library name itself.
2022-10-13Auto merge of #102700 - oli-obk:0xDEAD_TAIT, r=compiler-errorsbors-319/+387
Check hidden types in dead code fixes #99490 r? `@compiler-errors` best reviewed commit by commit
2022-10-13Add links to relevant pages to find constraint informationGuillaume Gomez-0/+4
2022-10-13Fix testGary Guo-1/+1
2022-10-13Bless testsGary Guo-23/+47
2022-10-13Add test for issue 102389Gary Guo-0/+17
2022-10-13replace ReErased with fresh region vars in opaque typesAli MJ Al-Nasrawy-5/+209
2022-10-13Ensure enum cast movesGary Guo-2/+2
2022-10-13Add new bootstrap entrypoints to triagebotnils-0/+2
2022-10-13Auto merge of #103009 - Dylan-DPC:rollup-9c2tng6, r=Dylan-DPCbors-17/+164
Rollup of 6 pull requests Successful merges: - #102765 (Suggest `==` to the first expr which has `ExprKind::Assign` kind) - #102854 (openbsd: don't reallocate a guard page on the stack.) - #102904 (Print return-position `impl Trait` in trait verbosely if `-Zverbose`) - #102947 (Sort elaborated existential predicates in `object_ty_for_trait`) - #102956 (Use `full_res` instead of `expect_full_res`) - #102999 (Delay `is_intrinsic` query until after we've determined the callee is a function) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
2022-10-13Add test for issue 102986Maybe Waffle-0/+18
2022-10-13Improve code for unsafe-fn rustdoc GUI testGuillaume Gomez-31/+22
2022-10-13Update browser-ui-test version to 0.12.3Guillaume Gomez-1/+1
2022-10-13Rollup merge of #102999 - compiler-errors:issue-102985, r=fee1-deadDylan DPC-3/+38
Delay `is_intrinsic` query until after we've determined the callee is a function Fixes #102985
2022-10-13Rollup merge of #102956 - TaKO8Ki:fix-102946, r=fee1-deadDylan DPC-1/+34
Use `full_res` instead of `expect_full_res` Fixes #102946 Fixes #102978
2022-10-13Rollup merge of #102947 - compiler-errors:sort-elaborated-existentials, ↵Dylan DPC-11/+43
r=cjgillot Sort elaborated existential predicates in `object_ty_for_trait` r? `@cjgillot` I think that #102845 caused #102933. Depending on the order that we elaborate these existential projection predicates, there's no guarantee that they'll be sorted by def id, which is what is failing the assertion in the issue. Fixes #102933 Fixes #102973
2022-10-13Rollup merge of #102904 - compiler-errors:rpitit-verbosely, r=cjgillotDylan DPC-1/+3
Print return-position `impl Trait` in trait verbosely if `-Zverbose` Makes the behavior a bit closer to regular `impl Trait` printing
2022-10-13Rollup merge of #102854 - semarie:openbsd-immutablestack, r=m-ou-seDylan DPC-0/+10
openbsd: don't reallocate a guard page on the stack. the kernel currently enforce that a stack is immutable. calling mmap(2) or mprotect(2) to change it will result in EPERM, which generate a panic!(). so just do like for Linux, and trust the kernel to do the right thing.
2022-10-13Rollup merge of #102765 - TaKO8Ki:follow-up-to-102708, r=compiler-errorsDylan DPC-1/+36
Suggest `==` to the first expr which has `ExprKind::Assign` kind follow-up to #102708 [playground](https://play.rust-lang.org/?version=nightly&mode=debug&edition=2021&gist=4241dc33ed8af02e1ef530d6b14903fd)
2022-10-13Auto merge of #102919 - luojia65:update-stdarch, r=Amanieubors-0/+2
library: update stdarch submodule It has been one month since we update `stdarch` submodule into main branch Rust, it includes various fixes in code and more neat documents. This pull request also adds missing features to ensure we can build latest stdarch submodule. The documents after this pull request: <details> ![图片](https://user-images.githubusercontent.com/40385009/195123337-a6c4cfaa-a7b9-4574-b524-c43683e6540c.png) </details> Comparing to current nightly: <details> ![图片](https://user-images.githubusercontent.com/40385009/195123430-e047cff1-a925-4d2d-ae1c-da9769383a9c.png) </details> r? `@Amanieu`
2022-10-13Add suggestion to the "missing native library" errorWesley Wiser-2/+68
If we fail to locate a native library that we are linking with, it could be the case the user entered a complete file name like `foo.lib` or `libfoo.a` when we expect them to simply provide `foo`. In this situation, we now detect that case and suggest the user only provide the library name itself.
2022-10-13rustdoc: don't ICE on `TyKind::Typeof`Maybe Waffle-2/+1
2022-10-13Auto merge of #102655 - joboet:windows_tls_opt, r=ChrisDentonbors-117/+202
Optimize TLS on Windows This implements the suggestion in the current TLS code to embed the linked list of destructors in the `StaticKey` structure to save allocations. Additionally, locking is avoided when no destructor needs to be run. By using one Windows-provided `Once` per key instead of a global lock, locking is more finely-grained (this unblocks #100579).
2022-10-13Auto merge of #102995 - JohnTitor:rollup-yomkwge, r=JohnTitorbors-159/+226
Rollup of 7 pull requests Successful merges: - #102641 (Support casting boxes to dyn*) - #102836 (rustc_target: Fix json target specs using LLD linker flavors in link args) - #102949 (should-skip-this: add missing backslash) - #102967 (Add test for issue 102964) - #102971 (tidy: error if a lang feature is already present) - #102974 (Fix small word dupe typos) - #102980 (rustdoc: merge separate `.item-info` CSS) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
2022-10-13Delay intrinsic call until after we've determined the callee is a functionMichael Goulet-3/+38
2022-10-13Print RPITIT verbosely if -ZverboseMichael Goulet-1/+3
2022-10-13Sort elaborated existential predicates in object_ty_for_traitMichael Goulet-11/+43
2022-10-13library: update stdarch submoduleluojia65-0/+2
add feature target_feature_11 and riscv_target_feature
2022-10-13Rollup merge of #102980 - notriddle:notriddle/content, r=GuillaumeGomezYuki Okushi-6/+3
rustdoc: merge separate `.item-info` CSS Rough timeline: * The longer `.content .item-info` selector originated in 110e7270ab7b0700ce714b8b1c7e509195dea2c4. No reason seems to be given in the PR why it needed the `.content` part, but it was probably added because of <https://github.com/rust-lang/rust/blob/110e7270ab7b0700ce714b8b1c7e509195dea2c4/src/librustdoc/html/static/rustdoc.css#L476-L478>. That selector with the margin-bottom was removed when CSS containment was added in 8846c0853d8687fda0e5f23f6687b03b243980ee. * `.stability` was renamed `.item-info` in caf6c5790a858893c1d32ed2054c9577d12e7493. * The selector without the `.content` was added in d48a39a5e24ab08f727d1c919dc2af98c333ad14.
2022-10-13Rollup merge of #102974 - Rageking8:fix-small-word-dupe-typos, r=JohnTitorYuki Okushi-21/+21
Fix small word dupe typos
2022-10-13Rollup merge of #102971 - est31:tidy_duplicate_lang_features, r=jyn514Yuki Okushi-126/+137
tidy: error if a lang feature is already present If a lang feature gets declared twice, like for example as a result of a mistake during stabilization, emit an error in tidy. Library features already have this logic. Inspired by a mistake done during `half_open_range_patterns` stabilization: https://github.com/rust-lang/rust/pull/102275/files#r991292215 The PR requires #102883 to be merged before CI turns green because the check is doing its job. For reviewers, I suggest [turning off whitespace changes](https://github.com/rust-lang/rust/pull/102971/files?w=1) in the diff by adding `?w=1` to the url, as a large part of the diff is just about removing one level of indentation.
2022-10-13Rollup merge of #102967 - Rageking8:add-test-for-issue-102964, r=TaKO8KiYuki Okushi-0/+29
Add test for issue 102964 Fixes #102964
2022-10-13Rollup merge of #102949 - RalfJung:should-skip-this, r=Dylan-DPCYuki Okushi-1/+1
should-skip-this: add missing backslash I screwed this up in https://github.com/rust-lang/rust/pull/102780. r? ``@Mark-Simulacrum``
2022-10-13Rollup merge of #102836 - petrochenkov:jsonspec, r=eholkYuki Okushi-5/+9
rustc_target: Fix json target specs using LLD linker flavors in link args Fixes https://github.com/rust-lang/rust/pull/101988#issuecomment-1272407248 (a regression introduced by https://github.com/rust-lang/rust/pull/101988).
2022-10-13Rollup merge of #102641 - eholk:dyn-star-box, r=compiler-errorsYuki Okushi-0/+26
Support casting boxes to dyn* Boxes have a pointer type at codegen time which LLVM does not allow to be transparently converted to an integer. Work around this by inserting a `ptrtoint` instruction if the argument is a pointer. r? ``@compiler-errors`` Fixes #102427
2022-10-13Auto merge of #102372 - abrown:issue-102157, r=thomccbors-9/+28
Allow compiling the `wasm32-wasi` std library with atomics The issue #102157 demonstrates how currently the `-Z build-std` option will fail when re-compiling the standard library with `RUSTFLAGS` like `RUSTFLAGS="-C target-feature=+atomics,+bulk-memory -C link-args=--shared-memory"`. This change attempts to resolve those build issues by depending on the the WebAssembly `futex` module and providing an implementation for `env_lock`. Fixes #102157.
2022-10-12Add a fixmeEric Holk-0/+3
2022-10-12tidy: error if a lang feature is already presentest31-126/+137
If a lang feature gets declared twice, like for example as a result of a mistake during stabilization, emit an error in tidy. Library features already have this logic.
2022-10-12Auto merge of #101679 - compiler-errors:rpitit-default-body, r=nikomatsakisbors-126/+163
Support default-body trait functions with return-position `impl Trait` in traits Introduce a new `Trait` candidate kind for the `ImplTraitInTrait` projection candidate, which just projects an RPITIT down to its opaque type form. This is a hack until we lower RPITITs to regular associated types, after which we will need to rework how these default bodies are type-checked, so comments are left in a few places for us to clean up later. Fixes #101665
2022-10-12rustdoc: merge separate `.item-info` CSSMichael Howell-6/+3
Rough timeline: * The longer `.content .item-info` selector originated in 110e7270ab7b0700ce714b8b1c7e509195dea2c4. No reason seems to be given in the PR why it needed the `.content` part, but it was probably added because of <https://github.com/rust-lang/rust/blob/110e7270ab7b0700ce714b8b1c7e509195dea2c4/src/librustdoc/html/static/rustdoc.css#L476-L478>. That selector with the margin-bottom was removed when CSS containment was added in 8846c0853d8687fda0e5f23f6687b03b243980ee. * `.stability` was renamed `.item-info` in caf6c5790a858893c1d32ed2054c9577d12e7493. * The selector without the `.content` was added in d48a39a5e24ab08f727d1c919dc2af98c333ad14.
2022-10-12Auto merge of #102975 - Dylan-DPC:rollup-vzuwsh2, r=Dylan-DPCbors-454/+952
Rollup of 7 pull requests Successful merges: - #102623 (translation: eager translation) - #102719 (Enforce alphabetical sorting with tidy) - #102830 (Unify `tcx.constness` query and param env constness checks) - #102883 (Fix stabilization of `feature(half_open_range_patterns)`) - #102927 (Fix `let` keyword removal suggestion in structs) - #102936 (rustdoc: remove unused CSS `nav.sum`) - #102940 (Update books) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup