Skip to content

Rollup of 7 pull requests #127065

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

Closed
wants to merge 36 commits into from
Closed
Changes from 2 commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
f22775b
ignore `llvm::Lld` step if `lld` is not enabled
onur-ozkan Jun 19, 2024
c890a81
add `lld = true` to default dist profile
onur-ozkan Jun 19, 2024
bfca652
disable lld if external llvm is used
onur-ozkan Jun 19, 2024
11acf83
bootstrap: exclude cargo from package metadata
onur-ozkan Jun 14, 2024
457ac5d
don't fetch/sync cargo submodule by default
onur-ozkan Jun 14, 2024
8c3ebf7
refactor `tool_doc` macro in bootstrap
onur-ozkan Jun 14, 2024
51f6e68
handle cargo submodule in a lazy-load way
onur-ozkan Jun 14, 2024
ac7595f
Support for -Z patchable-function-entry
maurer Dec 12, 2023
9b0ae75
Support `#[patchable_function_entries]`
maurer Dec 12, 2023
7c56398
Updated code for changes to RFC, added additional error handling, added
nebulark May 2, 2024
d5ff4f4
Simplify `str::clone_into`
DaniPopes Jun 25, 2024
2c9556d
fix UI test, simplify error message
joboet Jun 25, 2024
23d1cc4
core: avoid `extern` types in formatting infrastructure
joboet Jun 25, 2024
7526416
update coverage test
joboet Jun 25, 2024
5faaec6
implement new effects desugaring
fee1-dead Jun 14, 2024
a4bbf80
Implement `Min` trait in new solver
fee1-dead Jun 24, 2024
694e8d2
move desugaring to item bounds
fee1-dead Jun 25, 2024
de6c5c4
temporarily disable effects on specialization tests
fee1-dead Jun 25, 2024
b10277e
bless tests part 1
fee1-dead Jun 25, 2024
a06a49e
Implement `Self::Effects: Compat<HOST>` desugaring
fee1-dead Jun 25, 2024
d68ed58
bless UI tests
fee1-dead Jun 25, 2024
ed63508
general fixups and turn `TODO`s into `FIXME`s
fee1-dead Jun 25, 2024
fbb9f1c
finishing touches, move fixed ICEs to ui tests
fee1-dead Jun 25, 2024
7e7d0a9
core: improve comment
joboet Jun 27, 2024
3457ecc
remove unnecessary packages from `metadata::workspace_members`
onur-ozkan Jun 27, 2024
b1b473e
add change-tracker entry
onur-ozkan Jun 27, 2024
25e05ca
address review comments
fee1-dead Jun 26, 2024
789ee88
Tighten spans for async blocks
compiler-errors Jun 27, 2024
8d246b0
Updated diagnostic messages
nebulark Jun 26, 2024
e0c2c69
Rollup merge of #120639 - fee1-dead-contrib:new-effects-desugaring, r…
matthiaskrgr Jun 28, 2024
e0439d9
Rollup merge of #124741 - nebulark:patchable-function-entries-pr, r=e…
matthiaskrgr Jun 28, 2024
b08a0cf
Rollup merge of #126470 - onur-ozkan:optional-cargo-submodule, r=Kobzol
matthiaskrgr Jun 28, 2024
a100d94
Rollup merge of #126701 - onur-ozkan:build-lld-if-enabled, r=Kobzol
matthiaskrgr Jun 28, 2024
9352e7c
Rollup merge of #126956 - joboet:fmt_no_extern_ty, r=RalfJung
matthiaskrgr Jun 28, 2024
613c5d5
Rollup merge of #126970 - DaniPopes:simplify-str-clone_into, r=cuviper
matthiaskrgr Jun 28, 2024
7d05157
Rollup merge of #127058 - compiler-errors:tighten-async-spans, r=oli-obk
matthiaskrgr Jun 28, 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
7 changes: 4 additions & 3 deletions library/alloc/src/str.rs
Original file line number Diff line number Diff line change
@@ -206,15 +206,16 @@ impl BorrowMut<str> for String {
#[stable(feature = "rust1", since = "1.0.0")]
impl ToOwned for str {
type Owned = String;

#[inline]
fn to_owned(&self) -> String {
unsafe { String::from_utf8_unchecked(self.as_bytes().to_owned()) }
}

#[inline]
fn clone_into(&self, target: &mut String) {
let mut b = mem::take(target).into_bytes();
self.as_bytes().clone_into(&mut b);
*target = unsafe { String::from_utf8_unchecked(b) }
target.clear();
target.push_str(self);
}
}