about summary refs log tree commit diff
AgeCommit message (Collapse)AuthorLines
2023-12-15Add a method to check if type is a CStrCelina G. Val-0/+37
2023-12-15Add link to is_benchmark from the Ipv6Addr::is_global documentationJakub Stasiak-1/+1
All other relevant is_* methods are mentioned in the list of addresses here, is_benchmarking has been the only one missing.
2023-12-15Auto merge of #118996 - matthiaskrgr:rollup-n6x2lc7, r=matthiaskrgrbors-183/+200
Rollup of 7 pull requests Successful merges: - #117824 (Stabilize `ptr::{from_ref, from_mut}`) - #118234 (Stabilize `type_name_of_val`) - #118944 (Move type relations into submodule `relate` in rustc_infer, and notify when it has changed) - #118977 (Simplify `src-script.js` code) - #118985 (Remove `@JohnTitor` from diagnostics pings) - #118986 (Simplify JS code a little bit) - #118988 (rustdoc: add regression test for JS data file loading) r? `@ghost` `@rustbot` modify labels: rollup
2023-12-15Rollup merge of #118988 - notriddle:notriddle/varconst, r=GuillaumeGomezMatthias Krüger-0/+24
rustdoc: add regression test for JS data file loading Follow up for #118961
2023-12-15Rollup merge of #118986 - GuillaumeGomez:simplify-js-inline, r=notriddleMatthias Krüger-2/+2
Simplify JS code a little bit As mentioned, JS code can be simplified a little bit. r? ``@notriddle``
2023-12-15Rollup merge of #118985 - JohnTitor:rm-jtitor-diag-pings, r=compiler-errorsMatthias Krüger-3/+3
Remove @JohnTitor from diagnostics pings I've been inactive around diagnostics for a while so would like to remove myself from the diagnostics-related ping groups for now.
2023-12-15Rollup merge of #118977 - GuillaumeGomez:simplifysrc-script, r=notriddleMatthias Krüger-12/+3
Simplify `src-script.js` code Instead of keeping this value in the global scope and still use it in the function in case it wasn't used outside, let's just use it inside the function. r? ``@notriddle``
2023-12-15Rollup merge of #118944 - compiler-errors:relate, r=lcnrMatthias Krüger-67/+76
Move type relations into submodule `relate` in rustc_infer, and notify when it has changed r? lcnr
2023-12-15Rollup merge of #118234 - tgross35:type_name_of_value, r=dtolnayMatthias Krüger-22/+18
Stabilize `type_name_of_val` Make the following API stable: ```rust // in core::any pub fn type_name_of_val<T: ?Sized>(_val: &T) -> &'static str ``` This is a convenience method to get the type name of a value, as opposed to `type_name` that takes a type as a generic. Const stability is not added because this relies on `type_name` which is also not const. That has a blocking issue https://github.com/rust-lang/rust/issues/97156. Wording was also changed to direct most of the details to `type_name` so we don't have as much duplicated documentation. Fixes tracking issue #66359. There were two main concerns in the tracking issue: 1. Naming: `type_name_of` and `type_name_of_val` seem like the only mentioned options. Differences in opinion here come from `std::mem::{size_of, align_of, size_of_val, align_of_val}`. This PR leaves the name as `type_name_of_val`, but I can change if desired since it is pretty verbose. 2. What this displays for `&dyn`: I don't think that having `type_name_of_val` function resolve those is worth the headache it would be, see https://github.com/rust-lang/rust/issues/66359#issuecomment-1718480774 for some workarounds. I also amended the docs wording to leave it open-ended, in case we have means to change that behavior in the future. ``@rustbot`` label -T-libs +T-libs-api +needs-fcp r? libs-api
2023-12-15Rollup merge of #117824 - WaffleLapkin:ptr_from_ref_stab, r=dtolnayMatthias Krüger-77/+74
Stabilize `ptr::{from_ref, from_mut}` I propose to stabilize the following APIs: ```rust // mod core::ptr pub const fn from_ref<T: ?Sized>(r: &T) -> *const T; pub const fn from_mut<T: ?Sized>(r: &mut T) -> *mut T; ``` Tracking issue: https://github.com/rust-lang/rust/issues/106116 --- ``@RalfJung`` what do you think we should do with `from_mut`? Stabilize it as const, given that you can't call it anyway (no way to get `&mut` in `const fn`)? Defer stabilizing it as const leaving the same issue/feature? Change issue/feature? Change issue/feature to the "`&mut` in const fn" one?
2023-12-15use `if cfg` instead of `#[cfg]`jyn-4/+1
this pr is specifically for waffle because i love it <3
2023-12-15Move nll_relate to relate::nll submoduleMichael Goulet-5/+5
2023-12-15Add higher_ranked to relate submoduleMichael Goulet-16/+16
2023-12-15Notify lcnr and errs when relations changeMichael Goulet-0/+8
2023-12-15Move type relations into submodule in rustc_inferMichael Goulet-57/+58
2023-12-15Auto merge of #115165 - ↵bors-15/+276
davidtwco:issue-9228-describe-item-member-visibility, r=wesleywiser codegen_llvm: set `DW_AT_accessibility` Fixes #9228. Based on #74778. Sets the accessibility of types and fields in DWARF using `DW_AT_accessibility` attribute. `DW_AT_accessibility` (public/protected/private) isn't exactly right for Rust, but neither is `DW_AT_visibility` (local/exported/qualified), and there's no way to set `DW_AT_visbility` in LLVM's API. Debuggers will special-case the handling of these per-language anyway. r? `@wesleywiser` (visited in wg-debugging triage)
2023-12-15Stabilize `ptr::{from_ref, from_mut}`Maybe Waffle-77/+74
2023-12-15s/MatchCx/TypeCx/Nadrieril-48/+48
2023-12-15Fix enforcement of generics for associated itemsMichael Goulet-19/+85
2023-12-15Cfg remove lang items in doctestCameron Steffen-5/+5
2023-12-15Appease the tools: clippy, rustdocMichael Goulet-20/+6
2023-12-15Simplify instantiate_poly_trait_refMichael Goulet-75/+35
2023-12-15banish hir::GenericBound::LangItemTraitMichael Goulet-135/+68
2023-12-15Collect lang items from ASTMichael Goulet-173/+320
2023-12-15Fix commentsMichael Goulet-37/+3
2023-12-15Don't pass lint back out of lint decoratorMichael Goulet-116/+50
2023-12-15Introduce `MatchCtxt`Nadrieril-77/+93
2023-12-15s/PatCtxt/PlaceCtxt/Nadrieril-33/+33
2023-12-15`pattern_analysis` doesn't need to know what spans areNadrieril-36/+39
2023-12-15Address review commentsNadrieril-12/+4
2023-12-15s/RustcCtxt/RustcMatchCheckCtxt/Nadrieril-38/+48
2023-12-15Make the crate compile on stableNadrieril-3/+25
2023-12-15Make `rustc_index::bit_set` available on stableNadrieril-12/+37
2023-12-15Make the `rustc_data_structures` dependency optionalNadrieril-13/+28
2023-12-15Gate rustc-specific code under a featureNadrieril-16/+41
2023-12-15Iron out last rustc-specific detailsNadrieril-18/+43
2023-12-15Name rustc-specific things "rustc"Nadrieril-48/+42
2023-12-15Abstract `MatchCheckCtxt` into a traitNadrieril-239/+313
2023-12-15Disentangle the arena from `MatchCheckCtxt`Nadrieril-117/+140
2023-12-15Remove all matching on `ty.kind()` outside `cx`Nadrieril-36/+31
2023-12-15Split `Single` ctor into more specific variantsNadrieril-52/+80
2023-12-15rustdoc: add regression test for JS data file loadingMichael Howell-0/+24
Follow up for #118961
2023-12-15Simplify JS code a little bitGuillaume Gomez-2/+2
2023-12-15Auto merge of #16131 - HKalbasi:rustc-tests-fixup, r=HKalbasibors-46/+97
Fix false positive type mismatch in const reference patterns
2023-12-15Use depth 1 in git clonehkalbasi-1/+1
2023-12-15Fix false positive type mismatch in const reference patternshkalbasi-45/+96
2023-12-16Remove @JohnTitor from diagnostics pingsYuki Okushi-3/+3
I've been inactive around diagnostics for a while so would like to remove myself from the diagnostics-related ping groups for now.
2023-12-15Auto merge of #3226 - saethlin:deadpool-test, r=RalfJungbors-0/+16
Add a regression test for rust#115145 Per https://github.com/rust-lang/rust/pull/118805#issuecomment-1855264860
2023-12-15Add the test minimized from deadpoolBen Kimock-0/+16
2023-12-15Auto merge of #118982 - matthiaskrgr:rollup-xoraxf4, r=matthiaskrgrbors-589/+474
Rollup of 3 pull requests Successful merges: - #118962 (Annotate some bugs) - #118969 (coverage: Use `Waker::noop` in async tests) - #118974 (Annotate panic! reasons during enum layout) Failed merges: - #111658 (Refactor pre-getopts command line argument handling) - #117449 (Avoid silencing relevant follow-up errors) r? `@ghost` `@rustbot` modify labels: rollup