Skip to content

Standard library function core::slice::<impl [T]>::split_first does not codegen #207

Closed

Description

@danielsn

It relies on ProjectionElem::Subslice which is unimplemented

related #109

Activity

  1. avanhatt commented on Aug 10, 2021

    @avanhatt
    Contributor
  2. avanhatt commented on Aug 10, 2021

    @avanhatt
    Contributor
  3. adpaco commented on Nov 2, 2021

    @adpaco
    Contributor

    With #609 these projects are not blocked anymore.

    I am using a script similar to codegen-firecracker.sh to compile these projects:

    export RUSTC_LOG=error
    export RUST_BACKTRACE=1
    export RUSTFLAGS=$(rmc-rustc --rmc-flags)
    export RUSTC=$(rmc-rustc --rmc-path)
    cargo build --target x86_64-unknown-linux-gnu
    

    with rmc-rustc in my path. For regex I got:

        Updating crates.io index
       Compiling memchr v2.4.1
       Compiling regex-syntax v0.6.25 (/home/ubuntu/regex/regex-syntax)
       Compiling aho-corasick v0.7.18
    warning: field is never read: `printer`
      --> regex-syntax/src/ast/print.rs:66:5
       |
    66 |     printer: &'p mut Printer,
       |     ^^^^^^^^^^^^^^^^^^^^^^^^
       |
       = note: `#[warn(dead_code)]` on by default
    
    warning: field is never read: `printer`
      --> regex-syntax/src/hir/print.rs:74:5
       |
    74 |     printer: &'p mut Printer,
       |     ^^^^^^^^^^^^^^^^^^^^^^^^
    
       Compiling regex v1.5.4 (/home/ubuntu/regex)
    warning: `regex-syntax` (lib) generated 2 warnings
        Finished dev [unoptimized + debuginfo] target(s) in 37.93s
    

    And for backtrace I got:

        Updating crates.io index
      Downloaded libc v0.2.106
      Downloaded cc v1.0.71
      Downloaded 2 crates (612.2 KB) in 0.38s
       Compiling autocfg v1.0.1
       Compiling memchr v2.4.1
       Compiling cc v1.0.71
       Compiling libc v0.2.106
       Compiling gimli v0.25.0
       Compiling adler v1.0.2
       Compiling cfg-if v1.0.0
       Compiling rustc-demangle v0.1.21
       Compiling miniz_oxide v0.4.4
       Compiling object v0.26.2
       Compiling backtrace v0.3.61 (/home/ubuntu/rmc-dash/library/backtrace)
       Compiling addr2line v0.16.0
        Finished dev [unoptimized + debuginfo] target(s) in 27.88s
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions