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

ices/95823.rs: fixed with no errors #1216

Merged
merged 1 commit into from
Apr 15, 2022
Merged

Conversation

github-actions[bot]
Copy link
Contributor

Issue: rust-lang/rust#95823

#![feature(ptr_metadata)]

pub struct S;

impl S
where
    ():,
{
    fn f<T: ?Sized>(_: <T as core::ptr::Pointee>::Metadata) {}
}

pub fn main() {}
=== stdout ===
=== stderr ===
warning: associated function is never used: `f`
 --> /home/runner/work/glacier/glacier/ices/95823.rs:9:8
  |
9 |     fn f<T: ?Sized>(_: <T as core::ptr::Pointee>::Metadata) {}
  |        ^
  |
  = note: `#[warn(dead_code)]` on by default

warning: 1 warning emitted

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

=== stdout ===
=== stderr ===
warning: associated function is never used: `f`
 --> /home/runner/work/glacier/glacier/ices/95823.rs:9:8
  |
9 |     fn f<T: ?Sized>(_: <T as core::ptr::Pointee>::Metadata) {}
  |        ^
  |
  = note: `#[warn(dead_code)]` on by default

warning: 1 warning emitted

==============
Copy link
Member

@JohnTitor JohnTitor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Closed the issue as fixed.

@JohnTitor JohnTitor merged commit ad91294 into master Apr 15, 2022
@JohnTitor JohnTitor deleted the autofix/ices/95823.rs branch April 15, 2022 12:12
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