Skip to content

Instantly share code, notes, and snippets.

@wh4everest
Created February 17, 2018 21:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wh4everest/c7a243b118367f8fb70e5c4526892e49 to your computer and use it in GitHub Desktop.
Save wh4everest/c7a243b118367f8fb70e5c4526892e49 to your computer and use it in GitHub Desktop.
> rustup run nightly rustc tinyrust.rs -O -C no-stack-check -C relocation-model=static -L syscall.rs/target/release
warning: the --no-stack-check flag is deprecated and does nothing
error[E0422]: cannot find struct, variant or union type `Slice` in module `raw`
--> tinyrust.rs:26:29
|
26 | mem::transmute(raw::Slice {
| ^^^^^ not found in `raw`
error[E0658]: use of unstable library feature 'raw' (see issue #27751)
--> tinyrust.rs:6:16
|
6 | use std::{mem, raw, intrinsics};
| ^^^
|
= help: add #![feature(raw)] to the crate attributes to enable
error[E0658]: use of unstable library feature 'core_intrinsics': intrinsics are unlikely to ever be stabilized, instead they should be used through stabilized interfaces in the rest of the standard library (see issue #0)
--> tinyrust.rs:6:21
|
6 | use std::{mem, raw, intrinsics};
| ^^^^^^^^^^
|
= help: add #![feature(core_intrinsics)] to the crate attributes to enable
error[E0658]: use of unstable library feature 'core_intrinsics': intrinsics are unlikely to ever be stabilized, instead they should be used through stabilized interfaces in the rest of the standard library (see issue #0)
--> tinyrust.rs:11:9
|
11 | intrinsics::unreachable()
| ^^^^^^^^^^^^^^^^^^^^^^^
|
= help: add #![feature(core_intrinsics)] to the crate attributes to enable
error: aborting due to 4 previous errors
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment