Skip to content

Tracking issue: common unsupported features #2107

Open
@tedinski

Description

@tedinski

Our current top-100 data set for unsupported features looks like this:

Assessed 82 successfully, with 18 failures.
======================================================
 Unsupported feature           |   Crates | Instances 
                               | impacted |    of use 
-------------------------------+----------+-----------
 caller_location               |       75 |       218 
 simd_bitmask                  |       33 |       111 
 try                           |       26 |       667 
 Projection mismatch           |       20 |        38 
 TerminatorKind::InlineAsm     |        8 |        19 
 PointerCast::ClosureFnPointer |        6 |        31 
 'sqrtf64' intrinsic           |        2 |         2 
 float_to_int_unchecked        |        1 |        24 
 'expf64' intrinsic            |        1 |         1 
 'fmaf32' intrinsic            |        1 |         1 
 'fmaf64' intrinsic            |        1 |         1 
 'log10f32' intrinsic          |        1 |         1 
 'log10f64' intrinsic          |        1 |         1 
 'log2f32' intrinsic           |        1 |         1 
 'log2f64' intrinsic           |        1 |         1 
 'logf64' intrinsic            |        1 |         1 
 'powf64' intrinsic            |        1 |         1 
 'powif32' intrinsic           |        1 |         1 
======================================================

From analyzing some other "real-world" data sets, we see similar data:

======================================================
 Unsupported feature           |   Crates | Instances 
                               | impacted |    of use 
-------------------------------+----------+-----------
 caller_location               |       48 |        58 
 simd_bitmask                  |       24 |        35 
 try                           |       14 |        75 
 Projection mismatch           |       11 |        11 
 TerminatorKind::InlineAsm     |        4 |         7 
 PointerCast::ClosureFnPointer |        2 |        85 
======================================================

This is a tracking issue for the top issues we see above.

caller_location

simd_bitmask

try

Projection mismatch

TerminatorKind::InlineAsm

  • Something of a research project, but cheap hacks (e.g. only supporting a few common instructions) might be hugely beneficial.
  • Add support for inline ASM #2

PointerCast::ClosureFnPointer

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions