Skip to content

Commit 3e1443d

Browse files
committed
Fix for asterinas
1 parent 45993a4 commit 3e1443d

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

source/rust_verify/src/attributes.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1351,4 +1351,7 @@ pub const RUSTC_ATTRS_OK_TO_IGNORE: &[&str] = &[
13511351
"rustc_insignificant_dtor",
13521352
// Boxes
13531353
"rustc_box",
1354+
// Support for separate definition of struct type and member methods
1355+
"rustc_has_incoherent_inherent_impls",
1356+
"rustc_allow_incoherent_impl",
13541357
];

tools/vargo/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,7 @@ fn run() -> Result<(), String> {
496496
return Err(format!("rustup failed"));
497497
}
498498
let active_toolchain_re =
499-
Regex::new(r"^(([A-Za-z0-9.-]+)-(?:aarch64|x86_64)-[A-Za-z0-9]+-[A-Za-z0-9-]+)")
499+
Regex::new(r"^(([A-Za-z0-9.-]+)-(?:aarch64|x86_64)-[A-Za-z0-9]+-[A-Za-z0-9-]+) \((?:overridden|environment override) by '?(.*)'?\)")
500500
.unwrap();
501501
let stdout = std::str::from_utf8(&output.stdout)
502502
.map_err(|_| format!("rustup output is invalid utf8"))?;

0 commit comments

Comments
 (0)