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

ices/92495.sh: fixed with errors #1635

Merged
merged 1 commit into from
Oct 15, 2023
Merged

ices/92495.sh: fixed with errors #1635

merged 1 commit into from
Oct 15, 2023

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Aug 5, 2023

Issue: rust-lang/rust#92495

#!/usr/bin/env bash

rustc --crate-type lib  -  << EOF
#![feature(lang_items, no_core, start)]
#![no_std]
#![no_core]

#[lang = "sized"]
pub trait Sized {}

#[lang = "copy"]
trait Copy {}

#[start]
fn main(argc: isize, _argv: *const *const u8) -> isize {
    match argc {
        1 => 1,
        _ => 0,
    }
}
EOF
=== stdout ===
=== stderr ===
error: the feature `lang_items` is internal to the compiler or standard library
 --> <anon>:1:12
  |
1 | #![feature(lang_items, no_core, start)]
  |            ^^^^^^^^^^
  |
  = note: using it is strongly discouraged
  = note: `#[deny(internal_features)]` on by default

warning: function `main` is never used
  --> <anon>:12:4
   |
12 | fn main(argc: isize, _argv: *const *const u8) -> isize {
   |    ^^^^
   |
   = note: `#[warn(dead_code)]` on by default

error: aborting due to previous error; 1 warning emitted

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

=== stdout ===
=== stderr ===
error: the feature `lang_items` is internal to the compiler or standard library
 --> <anon>:1:12
  |
1 | #![feature(lang_items, no_core, start)]
  |            ^^^^^^^^^^
  |
  = note: using it is strongly discouraged
  = note: `#[deny(internal_features)]` on by default

warning: function `main` is never used
  --> <anon>:12:4
   |
12 | fn main(argc: isize, _argv: *const *const u8) -> isize {
   |    ^^^^
   |
   = note: `#[warn(dead_code)]` on by default

error: aborting due to previous error; 1 warning emitted

==============
@JohnTitor JohnTitor merged commit 426ab94 into master Oct 15, 2023
@JohnTitor JohnTitor deleted the autofix/ices/92495.sh branch October 15, 2023 02:59
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