Skip to content

update_references.sh no longer works for subdirectory  #50438

Closed
@nikomatsakis

Description

@nikomatsakis

The new update-references.sh script doesn't compute subdirectories correctly, I fear:

> ./update-references.sh ../../../build/x86_64-unknown-linux-gnu/test/ui/ single-use-lifetime/*rs
updating ./fn-types.stderr
updating ./one-use-in-fn-argument-in-band.stderr
updating ./one-use-in-fn-argument.stderr
updating ./one-use-in-inherent-impl-header.stderr
updating ./one-use-in-inherent-method-argument.stderr
updating ./one-use-in-inherent-method-return.stderr
updating ./one-use-in-trait-method-argument.stderr
updating ./two-uses-in-inherent-method-argument-and-return.stderr
updating ./zero-uses-in-fn.stderr
updating ./zero-uses-in-impl.stderr

Those files should have been placed in ./single-use-lifetime/xxx.stderr. Looking more closely at the bash script, the reason is fairly clear.

cc @ehuss

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