Skip to content

Commit 5c3e4b6

Browse files
committed
Auto merge of #2162 - RalfJung:rustup, r=RalfJung
rustup Cc rust-lang/rust#97486
2 parents e45f2f0 + 7cd5fc3 commit 5c3e4b6

File tree

9 files changed

+13
-13
lines changed

9 files changed

+13
-13
lines changed

rust-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
68314177e70017c08f6cdf295631bb508f9f85bc
1+
0f06824013761ed6829887019033f1001e68f623

src/helpers.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -849,7 +849,7 @@ where
849849
throw_ub_format!("incorrect number of arguments: got {}, expected {}", args.len(), N)
850850
}
851851

852-
pub fn isolation_abort_error(name: &str) -> InterpResult<'static> {
852+
pub fn isolation_abort_error<'tcx>(name: &str) -> InterpResult<'tcx> {
853853
throw_machine_stop!(TerminationInfo::UnsupportedInIsolation(format!(
854854
"{} not available when isolation is enabled",
855855
name,

src/shims/dlsym.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ pub enum Dlsym {
1515
impl Dlsym {
1616
// Returns an error for unsupported symbols, and None if this symbol
1717
// should become a NULL pointer (pretend it does not exist).
18-
pub fn from_str(name: &[u8], target_os: &str) -> InterpResult<'static, Option<Dlsym>> {
18+
pub fn from_str<'tcx>(name: &[u8], target_os: &str) -> InterpResult<'tcx, Option<Dlsym>> {
1919
let name = &*String::from_utf8_lossy(name);
2020
Ok(match target_os {
2121
"linux" | "macos" => posix::Dlsym::from_str(name, target_os)?.map(Dlsym::Posix),

src/shims/posix/dlsym.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ pub enum Dlsym {
1414
impl Dlsym {
1515
// Returns an error for unsupported symbols, and None if this symbol
1616
// should become a NULL pointer (pretend it does not exist).
17-
pub fn from_str(name: &str, target_os: &str) -> InterpResult<'static, Option<Dlsym>> {
17+
pub fn from_str<'tcx>(name: &str, target_os: &str) -> InterpResult<'tcx, Option<Dlsym>> {
1818
Ok(match target_os {
1919
"linux" => linux::Dlsym::from_str(name)?.map(Dlsym::Linux),
2020
"macos" => macos::Dlsym::from_str(name)?.map(Dlsym::MacOs),

src/shims/posix/linux/dlsym.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ pub enum Dlsym {}
88
impl Dlsym {
99
// Returns an error for unsupported symbols, and None if this symbol
1010
// should become a NULL pointer (pretend it does not exist).
11-
pub fn from_str(name: &str) -> InterpResult<'static, Option<Dlsym>> {
11+
pub fn from_str<'tcx>(name: &str) -> InterpResult<'tcx, Option<Dlsym>> {
1212
Ok(match &*name {
1313
"__pthread_get_minstack" => None,
1414
"getrandom" => None, // std falls back to syscall(SYS_getrandom, ...) when this is NULL.

src/shims/posix/macos/dlsym.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ pub enum Dlsym {
1414
impl Dlsym {
1515
// Returns an error for unsupported symbols, and None if this symbol
1616
// should become a NULL pointer (pretend it does not exist).
17-
pub fn from_str(name: &str) -> InterpResult<'static, Option<Dlsym>> {
17+
pub fn from_str<'tcx>(name: &str) -> InterpResult<'tcx, Option<Dlsym>> {
1818
Ok(match name {
1919
"getentropy" => Some(Dlsym::getentropy),
2020
_ => throw_unsup_format!("unsupported macOS dlsym: {}", name),

src/shims/windows/dlsym.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ pub enum Dlsym {
1515
impl Dlsym {
1616
// Returns an error for unsupported symbols, and None if this symbol
1717
// should become a NULL pointer (pretend it does not exist).
18-
pub fn from_str(name: &str) -> InterpResult<'static, Option<Dlsym>> {
18+
pub fn from_str<'tcx>(name: &str) -> InterpResult<'tcx, Option<Dlsym>> {
1919
Ok(match name {
2020
"GetSystemTimePreciseAsFileTime" => None,
2121
"NtWriteFile" => Some(Dlsym::NtWriteFile),

src/stacked_borrows.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,11 +227,11 @@ impl GlobalStateInner {
227227
}
228228

229229
/// Error reporting
230-
pub fn err_sb_ub(
230+
pub fn err_sb_ub<'tcx>(
231231
msg: String,
232232
help: Option<String>,
233233
history: Option<TagHistory>,
234-
) -> InterpError<'static> {
234+
) -> InterpError<'tcx> {
235235
err_machine_stop!(TerminationInfo::ExperimentalUb {
236236
msg,
237237
help,

src/stacked_borrows/diagnostics.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -195,15 +195,15 @@ impl AllocHistory {
195195
}
196196

197197
/// Report a descriptive error when `new` could not be granted from `derived_from`.
198-
pub fn grant_error(
198+
pub fn grant_error<'tcx>(
199199
&self,
200200
derived_from: SbTag,
201201
new: Item,
202202
alloc_id: AllocId,
203203
alloc_range: AllocRange,
204204
error_offset: Size,
205205
stack: &Stack,
206-
) -> InterpError<'static> {
206+
) -> InterpError<'tcx> {
207207
let action = format!(
208208
"trying to reborrow {:?} for {:?} permission at {}[{:#x}]",
209209
derived_from,
@@ -219,15 +219,15 @@ impl AllocHistory {
219219
}
220220

221221
/// Report a descriptive error when `access` is not permitted based on `tag`.
222-
pub fn access_error(
222+
pub fn access_error<'tcx>(
223223
&self,
224224
access: AccessKind,
225225
tag: SbTag,
226226
alloc_id: AllocId,
227227
alloc_range: AllocRange,
228228
error_offset: Size,
229229
stack: &Stack,
230-
) -> InterpError<'static> {
230+
) -> InterpError<'tcx> {
231231
let action = format!(
232232
"attempting a {} using {:?} at {}[{:#x}]",
233233
access,

0 commit comments

Comments
 (0)