forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into add-result-contract
- Loading branch information
Showing
647 changed files
with
8,399 additions
and
4,893 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
[workspace] | ||
resolver = "1" | ||
members = [ | ||
"std", | ||
"sysroot", | ||
] | ||
|
||
exclude = [ | ||
# stdarch has its own Cargo workspace | ||
"stdarch", | ||
] | ||
|
||
[profile.release.package.compiler_builtins] | ||
# For compiler-builtins we always use a high number of codegen units. | ||
# The goal here is to place every single intrinsic into its own object | ||
# file to avoid symbol clashes with the system libgcc if possible. Note | ||
# that this number doesn't actually produce this many object files, we | ||
# just don't create more than this number of object files. | ||
# | ||
# It's a bit of a bummer that we have to pass this here, unfortunately. | ||
# Ideally this would be specified through an env var to Cargo so Cargo | ||
# knows how many CGUs are for this specific crate, but for now | ||
# per-crate configuration isn't specifiable in the environment. | ||
codegen-units = 10000 | ||
|
||
# These dependencies of the standard library implement symbolication for | ||
# backtraces on most platforms. Their debuginfo causes both linking to be slower | ||
# (more data to chew through) and binaries to be larger without really all that | ||
# much benefit. This section turns them all to down to have no debuginfo which | ||
# helps to improve link times a little bit. | ||
[profile.release.package] | ||
addr2line.debug = 0 | ||
adler.debug = 0 | ||
gimli.debug = 0 | ||
miniz_oxide.debug = 0 | ||
object.debug = 0 | ||
rustc-demangle.debug = 0 | ||
|
||
[patch.crates-io] | ||
# See comments in `library/rustc-std-workspace-core/README.md` for what's going on | ||
# here | ||
rustc-std-workspace-core = { path = 'rustc-std-workspace-core' } | ||
rustc-std-workspace-alloc = { path = 'rustc-std-workspace-alloc' } | ||
rustc-std-workspace-std = { path = 'rustc-std-workspace-std' } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
use std::collections::LinkedList; | ||
|
||
use test::Bencher; | ||
|
||
#[bench] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
use std::iter::repeat; | ||
|
||
use test::{black_box, Bencher}; | ||
|
||
#[bench] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
use rand::RngCore; | ||
use std::iter::repeat; | ||
|
||
use rand::RngCore; | ||
use test::{black_box, Bencher}; | ||
|
||
#[bench] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.