Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rollup of 12 pull requests #132548

Closed
wants to merge 25 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
720d618
unicode_data.rs: show command for generating file
RalfJung Nov 2, 2024
34432f7
const_with_hasher test: actually construct a usable HashMap
RalfJung Nov 2, 2024
5266623
remove const_hash feature leftovers
RalfJung Nov 2, 2024
8837fc7
make codegen help output more consistent
senekor Nov 2, 2024
19673db
stabilize const_arguments_as_str
RalfJung Nov 2, 2024
afe1902
coverage: Regression test for inlining into an uninstrumented crate
Zalathar Nov 1, 2024
f341a19
NFC add known bug nr to test
matthiaskrgr Nov 2, 2024
b919675
Added regression test for 117446
ranger-ross Nov 2, 2024
82f8b8f
Use opt functions to not ICE in fallback suggestion
compiler-errors Nov 2, 2024
ab5583e
PassWrapper: adapt for llvm/llvm-project@b01e2a8b5620466c3b80cc6f049e…
durin42 Oct 31, 2024
c7b07d5
Rustdoc: added brief colon explanation
zedddie16 Oct 31, 2024
c613122
PassWrapper: adapt for llvm/llvm-project@5445edb5d
durin42 Nov 2, 2024
16394e9
Do not format generic consts
compiler-errors Nov 2, 2024
c0ca280
Rollup merge of #132393 - zedddie16:issue-131865-fix, r=tgross35
workingjubilee Nov 3, 2024
740044c
Rollup merge of #132419 - durin42:llvm-20-type-test-thing, r=cuviper
workingjubilee Nov 3, 2024
6f7074b
Rollup merge of #132437 - Zalathar:inline-mixed-regression, r=jieyouxu
workingjubilee Nov 3, 2024
9787449
Rollup merge of #132499 - RalfJung:unicode_data.rs, r=tgross35
workingjubilee Nov 3, 2024
4ab4fd2
Rollup merge of #132503 - RalfJung:const-hash-map, r=Amanieu
workingjubilee Nov 3, 2024
d420d94
Rollup merge of #132511 - RalfJung:const_arguments_as_str, r=dtolnay
workingjubilee Nov 3, 2024
eef2321
Rollup merge of #132520 - matthiaskrgr:knobu, r=jieyouxu
workingjubilee Nov 3, 2024
6a68225
Rollup merge of #132522 - senekor:consistenst-codegen-help, r=compile…
workingjubilee Nov 3, 2024
de48ea4
Rollup merge of #132523 - ranger-ross:test-issue-117446, r=compiler-e…
workingjubilee Nov 3, 2024
8260901
Rollup merge of #132528 - compiler-errors:fallback-sugg-opt, r=jieyouxu
workingjubilee Nov 3, 2024
e862ec7
Rollup merge of #132537 - durin42:llvm-20-prelinklto, r=DianQK
workingjubilee Nov 3, 2024
e0df21d
Rollup merge of #132540 - compiler-errors:gc, r=calebcartwright
workingjubilee Nov 3, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
stabilize const_arguments_as_str
RalfJung committed Nov 2, 2024

Verified

This commit was signed with the committer’s verified signature.
addaleax Anna Henningsen
commit 19673db7aa866b77e4ee48b8c6b7e5f0050c0440
3 changes: 1 addition & 2 deletions library/core/src/fmt/mod.rs
Original file line number Diff line number Diff line change
@@ -438,10 +438,9 @@ impl<'a> Arguments<'a> {
/// assert_eq!(format_args!("{:?}", std::env::current_dir()).as_str(), None);
/// ```
#[stable(feature = "fmt_as_str", since = "1.52.0")]
#[rustc_const_unstable(feature = "const_arguments_as_str", issue = "103900")]
#[rustc_const_stable(feature = "const_arguments_as_str", since = "CURRENT_RUSTC_VERSION")]
#[must_use]
#[inline]
#[cfg_attr(not(bootstrap), rustc_const_stable_indirect)]
pub const fn as_str(&self) -> Option<&'static str> {
match (self.pieces, self.args) {
([], []) => Some(""),
1 change: 0 additions & 1 deletion library/core/src/lib.rs
Original file line number Diff line number Diff line change
@@ -114,7 +114,6 @@
#![feature(const_align_of_val_raw)]
#![feature(const_align_offset)]
#![feature(const_alloc_layout)]
#![feature(const_arguments_as_str)]
#![feature(const_array_into_iter_constructors)]
#![feature(const_bigint_helper_methods)]
#![feature(const_black_box)]
3 changes: 1 addition & 2 deletions library/core/src/panic/panic_info.rs
Original file line number Diff line number Diff line change
@@ -165,10 +165,9 @@ impl<'a> PanicMessage<'a> {
///
/// See [`fmt::Arguments::as_str`] for details.
#[stable(feature = "panic_info_message", since = "1.81.0")]
#[rustc_const_unstable(feature = "const_arguments_as_str", issue = "103900")]
#[rustc_const_stable(feature = "const_arguments_as_str", since = "CURRENT_RUSTC_VERSION")]
#[must_use]
#[inline]
#[cfg_attr(not(bootstrap), rustc_const_stable_indirect)]
pub const fn as_str(&self) -> Option<&'static str> {
self.message.as_str()
}