-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'rust-lang:master' into mips-sig
- Loading branch information
Showing
27 changed files
with
160 additions
and
88 deletions.
There are no files selected for viewing
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
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
Submodule cargo
updated
7 files
+3 −2 | src/cargo/core/compiler/standard_lib.rs | |
+52 −20 | src/cargo/ops/cargo_package.rs | |
+121 −2 | src/cargo/ops/vendor.rs | |
+4 −4 | src/cargo/util/toml/mod.rs | |
+364 −0 | tests/testsuite/package.rs | |
+1 −1 | tests/testsuite/standard_lib.rs | |
+572 −11 | tests/testsuite/vendor.rs |
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 was deleted.
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
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,62 @@ | ||
//! This test runs a basic application for thumb targets, using the cortex-m crate. | ||
//! | ||
//! These targets are very bare-metal: the first instruction the core runs on | ||
//! power-on is already user code. The cortex-m-rt has to initialize the stack, .data, | ||
//! .bss, enable the FPU if present, etc. | ||
//! | ||
//! This test builds and runs the applications for various thumb targets using qemu. | ||
//! | ||
//! How to run this | ||
//! $ ./x.py clean | ||
//! $ ./x.py test --target thumbv6m-none-eabi,thumbv7m-none-eabi tests/run-make | ||
//! | ||
//! For supported targets, see `example/.cargo/config.toml` | ||
//! | ||
//! FIXME: https://github.com/rust-lang/rust/issues/128733 this test uses external | ||
//! dependencies, and needs an active internet connection | ||
//! | ||
//! FIXME: https://github.com/rust-lang/rust/issues/128734 extract bootstrap cargo | ||
//! to a proper command | ||
//@ only-thumb | ||
|
||
use std::path::PathBuf; | ||
|
||
use run_make_support::{cmd, env_var, path_helpers, target}; | ||
|
||
const CRATE: &str = "example"; | ||
|
||
fn main() { | ||
std::env::set_current_dir(CRATE).unwrap(); | ||
|
||
let bootstrap_cargo = env_var("BOOTSTRAP_CARGO"); | ||
let path = env_var("PATH"); | ||
let rustc = env_var("RUSTC"); | ||
|
||
let target_dir = path_helpers::path("target"); | ||
let manifest_path = path_helpers::path("Cargo.toml"); | ||
|
||
let debug = { | ||
let mut cmd = cmd(&bootstrap_cargo); | ||
cmd.args(&["run", "--target", &target()]) | ||
.env("RUSTFLAGS", "-C linker=arm-none-eabi-ld -C link-arg=-Tlink.x") | ||
.env("CARGO_TARGET_DIR", &target_dir) | ||
.env("PATH", &path) | ||
.env("RUSTC", &rustc); | ||
cmd.run() | ||
}; | ||
|
||
debug.assert_stdout_contains("x = 42"); | ||
|
||
let release = { | ||
let mut cmd = cmd(&bootstrap_cargo); | ||
cmd.args(&["run", "--release", "--target", &target()]) | ||
.env("RUSTFLAGS", "-C linker=arm-none-eabi-ld -C link-arg=-Tlink.x") | ||
.env("CARGO_TARGET_DIR", &target_dir) | ||
.env("PATH", &path) | ||
.env("RUSTC", &rustc); | ||
cmd.run() | ||
}; | ||
|
||
release.assert_stdout_contains("x = 42"); | ||
} |
This file was deleted.
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,16 @@ | ||
// Test for ICE: cannot convert ReLateParam to a region vid | ||
// https://github.com/rust-lang/rust/issues/125873 | ||
|
||
#![feature(closure_lifetime_binder)] | ||
fn foo() { | ||
let a = for<'a> |b: &'a ()| -> &'a () { | ||
const { | ||
let awd = (); | ||
let _: &'a () = &awd; | ||
//~^ `awd` does not live long enough | ||
}; | ||
b | ||
}; | ||
} | ||
|
||
fn main() {} |
Oops, something went wrong.