Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
83e1efb
Replace a long inline "autoref" comment with method docs
Zalathar Jul 10, 2024
ec6e07b
Migrate `crate-hash-rustc-version` to `rmake`
Rejyr Jul 13, 2024
eea6502
Use `llvm-readobj` for `run-make/crate-hash-rustc-version`
Rejyr Jul 15, 2024
a605e2f
Safely enforce thread name requirements
ChrisDenton Jul 18, 2024
939ee38
Make `Thread::new_inner` a safe function
ChrisDenton Jul 18, 2024
8e4a920
Style change
ChrisDenton Jul 18, 2024
9432955
Move ThreadName conversions to &cstr/&str
ChrisDenton Jul 18, 2024
9747a2c
fixes panic error
surechen Jul 19, 2024
a8d7121
uefi: Add process
Ayush1325 Mar 26, 2024
6737a02
uefi: process: Add support to capture stdout
Ayush1325 Mar 29, 2024
87d7a07
uefi: process: Add stderr support
Ayush1325 Mar 29, 2024
7253765
uefi: process: Add null protocol
Ayush1325 Mar 29, 2024
d44b3fb
uefi: process Implement inherit
Ayush1325 Mar 29, 2024
29c198c
uefi: process: Add support for args
Ayush1325 Mar 29, 2024
c899e05
uefi: process: Add CommandArgs support
Ayush1325 Mar 29, 2024
56e2a57
uefi: process: Final Touchups
Ayush1325 Mar 29, 2024
e290398
uefi: process: Fixes from PR
Ayush1325 Mar 30, 2024
ae82726
Conditionally build `wasm-component-ld`
alexcrichton Jul 17, 2024
f0a2b5b
Add a change tracker entry
alexcrichton Jul 18, 2024
aef0e34
Avoid ref when using format! in compiler
nyurik Jul 19, 2024
3ff7588
More accurate suggestion for `-> Box<dyn Trait>` or `-> impl Trait`
estebank Jul 19, 2024
8bcf0b4
Avoid ref when using format! in compiler
nyurik Jul 19, 2024
bc86893
Rollup merge of #123196 - Ayush1325:uefi-process, r=joboet
matthiaskrgr Jul 20, 2024
dfee7ed
Rollup merge of #127556 - Zalathar:autoref, r=Nadrieril
matthiaskrgr Jul 20, 2024
aa6ae4b
Rollup merge of #127693 - Rejyr:migrate-crate-hash-rustc-version-rmak…
matthiaskrgr Jul 20, 2024
4f20ee5
Rollup merge of #127866 - alexcrichton:disable-wasm-component-ld-by-d…
matthiaskrgr Jul 20, 2024
4da2869
Rollup merge of #127918 - ChrisDenton:thread-name-string, r=joboet
matthiaskrgr Jul 20, 2024
767b3cb
Rollup merge of #127948 - surechen:fix_127915, r=compiler-errors
matthiaskrgr Jul 20, 2024
cd8c5f7
Rollup merge of #127980 - nyurik:compiler-refs, r=oli-obk
matthiaskrgr Jul 20, 2024
40cfc88
Rollup merge of #127984 - nyurik:src-refs, r=onur-ozkan
matthiaskrgr Jul 20, 2024
89798e9
Rollup merge of #127987 - estebank:impl-trait-sugg, r=cjgillot
matthiaskrgr Jul 20, 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
Avoid ref when using format! in compiler
Clean up a few minor refs in `format!` macro, as it has a performance cost. Apparently the compiler is unable to inline `format!("{}", &variable)`, and does a run-time double-reference instead (format macro already does one level referencing).  Inlining format args prevents accidental `&` misuse.
  • Loading branch information
nyurik committed Jul 19, 2024
commit 8bcf0b4a374116c5f9cba9b02deb19b3ea694380
2 changes: 1 addition & 1 deletion src/bootstrap/src/core/build_steps/compile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -695,7 +695,7 @@ fn copy_sanitizers(
|| target == "x86_64-apple-ios"
{
// Update the library’s install name to reflect that it has been renamed.
apple_darwin_update_library_name(builder, &dst, &format!("@rpath/{}", &runtime.name));
apple_darwin_update_library_name(builder, &dst, &format!("@rpath/{}", runtime.name));
// Upon renaming the install name, the code signature of the file will invalidate,
// so we will sign it again.
apple_darwin_sign_file(builder, &dst);
Expand Down
2 changes: 1 addition & 1 deletion src/bootstrap/src/core/build_steps/llvm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1411,7 +1411,7 @@ impl Step for Libunwind {
}
}
}
assert_eq!(cpp_len, count, "Can't get object files from {:?}", &out_dir);
assert_eq!(cpp_len, count, "Can't get object files from {out_dir:?}");

cc_cfg.compile("unwind");
out_dir
Expand Down
10 changes: 5 additions & 5 deletions src/bootstrap/src/utils/cc_detect.rs
Original file line number Diff line number Diff line change
Expand Up @@ -142,15 +142,15 @@ pub fn find_target(build: &Build, target: TargetSelection) {
build.cxx.borrow_mut().insert(target, compiler);
}

build.verbose(|| println!("CC_{} = {:?}", &target.triple, build.cc(target)));
build.verbose(|| println!("CFLAGS_{} = {:?}", &target.triple, cflags));
build.verbose(|| println!("CC_{} = {:?}", target.triple, build.cc(target)));
build.verbose(|| println!("CFLAGS_{} = {cflags:?}", target.triple));
if let Ok(cxx) = build.cxx(target) {
let cxxflags = build.cflags(target, GitRepo::Rustc, CLang::Cxx);
build.verbose(|| println!("CXX_{} = {:?}", &target.triple, cxx));
build.verbose(|| println!("CXXFLAGS_{} = {:?}", &target.triple, cxxflags));
build.verbose(|| println!("CXX_{} = {cxx:?}", target.triple));
build.verbose(|| println!("CXXFLAGS_{} = {cxxflags:?}", target.triple));
}
if let Some(ar) = ar {
build.verbose(|| println!("AR_{} = {:?}", &target.triple, ar));
build.verbose(|| println!("AR_{} = {ar:?}", target.triple));
build.ar.borrow_mut().insert(target, ar);
}

Expand Down
2 changes: 1 addition & 1 deletion src/bootstrap/src/utils/tarball.rs
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ impl<'a> Tarball<'a> {
cmd.arg("generate")
.arg("--image-dir")
.arg(&this.image_dir)
.arg(format!("--component-name={}", &component_name));
.arg(format!("--component-name={component_name}"));

if let Some((dir, dirs)) = this.bulk_dirs.split_first() {
let mut arg = dir.as_os_str().to_os_string();
Expand Down
2 changes: 1 addition & 1 deletion src/librustdoc/html/format.rs
Original file line number Diff line number Diff line change
Expand Up @@ -850,7 +850,7 @@ fn resolved_path<'cx>(
}
}
if w.alternate() {
write!(w, "{}{:#}", &last.name, last.args.print(cx))?;
write!(w, "{}{:#}", last.name, last.args.print(cx))?;
} else {
let path = if use_absolute {
if let Ok((_, _, fqp)) = href(did, cx) {
Expand Down