Skip to content
This repository has been archived by the owner on May 23, 2024. It is now read-only.

ices/100772.sh: fixed with no errors #1476

Merged
merged 1 commit into from
Jan 4, 2023
Merged

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Jan 1, 2023

Issue: rust-lang/rust#100772

#!/bin/bash

rustc -Clto -Zsanitizer=cfi - <<'EOF'

#![feature(allocator_api)]

fn main() {
    Box::new_in(&[0, 1], &std::alloc::Global);
}

EOF
=== stdout ===
=== stderr ===
warning: unused return value of `Box::<T, A>::new_in` that must be used
 --> <anon>:5:5
  |
5 |     Box::new_in(&[0, 1], &std::alloc::Global);
  |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  |
  = note: `#[warn(unused_must_use)]` on by default

warning: 1 warning emitted

==============

=== stdout ===
=== stderr ===
warning: unused return value of `Box::<T, A>::new_in` that must be used
 --> <anon>:5:5
  |
5 |     Box::new_in(&[0, 1], &std::alloc::Global);
  |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  |
  = note: `#[warn(unused_must_use)]` on by default

warning: 1 warning emitted

==============
@JohnTitor JohnTitor merged commit 102301d into master Jan 4, 2023
@JohnTitor JohnTitor deleted the autofix/ices/100772.sh branch January 4, 2023 14:16
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants