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

ices/83117.sh: fixed with errors #982

Merged
merged 1 commit into from
Oct 2, 2021
Merged

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Oct 2, 2021

Issue: rust-lang/rust#83117

#!/bin/bash

rustc --crate-type=lib --crate-name=ice_test_lib - <<'EOF'
#![no_std]
#![feature(lang_items)]

#[lang = "start"] fn start(_: *const u8, _: isize, _: *const *const u8) -> isize {
    0
}
EOF

rustc -L. - <<'EOF'
#![no_std]
#![feature(lang_items)]

extern crate ice_test_lib;

use core::panic::PanicInfo;

fn main() {}

#[panic_handler]
fn panic_handler(_: &PanicInfo) -> ! {
    loop {}
}

#[lang = "eh_personality"] fn eh_personality() {}
EOF
=== stdout ===
=== stderr ===
error[E0718]: `start` language item must be applied to a function with 1 generic argument
 --> <anon>:4:1
  |
4 | #[lang = "start"] fn start(_: *const u8, _: isize, _: *const *const u8) -> isize {
  | ^^^^^^^^^^^^^^^^^         - this function has 0 generic arguments

error: aborting due to previous error

For more information about this error, try `rustc --explain E0718`.
error[E0463]: can't find crate for `ice_test_lib`
 --> <anon>:4:1
  |
4 | extern crate ice_test_lib;
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate

error: aborting due to previous error

For more information about this error, try `rustc --explain E0463`.
==============

=== stdout ===
=== stderr ===
error[E0718]: `start` language item must be applied to a function with 1 generic argument
 --> <anon>:4:1
  |
4 | #[lang = "start"] fn start(_: *const u8, _: isize, _: *const *const u8) -> isize {
  | ^^^^^^^^^^^^^^^^^         - this function has 0 generic arguments

error: aborting due to previous error

For more information about this error, try `rustc --explain E0718`.
error[E0463]: can't find crate for `ice_test_lib`
 --> <anon>:4:1
  |
4 | extern crate ice_test_lib;
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate

error: aborting due to previous error

For more information about this error, try `rustc --explain E0463`.
==============
@Alexendoo Alexendoo merged commit aa9d060 into master Oct 2, 2021
@Alexendoo Alexendoo deleted the autofix/ices/83117.sh branch October 2, 2021 12:50
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