Skip to content

Dead functions in middle::trans::shape can't be removed #3670

Closed
@catamorphism

Description

@catamorphism

If I remove the functions add_u16 and add_substr, which are never called, from middle::trans::shape, I get:

/Users/tchevalier/rust/src/libstd/std.rc:28:0: 28:30 error: can't find crate for `core`
/Users/tchevalier/rust/src/libstd/std.rc:28 extern mod core(vers = "0.4");
                                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

when building stage1 libstd. @pcwalton says this is due to a problem with LLVM metadata getting truncated.

If so, we should isolate this to the piece of LLVM bytecode that exhibits the problem, and report it upstream.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-linkageArea: linking into static, shared libraries and binaries

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions