Skip to content

Drop torrust-located-error from the workspace and enforce the rule #2918

Done

Description

@josecelano-bot

Part of EPIC #2912. SI-6, order 6 of 7. After SI-2 to SI-5.

Goal

Remove the last uses of torrust-located-error from the workspace and add a repository check that fails when non-test code records a source location in an error, so the rule of the EPIC's ADR stays true.

Scope

  • Replace torrust_located_error::DynError in packages/tracker-client and remove the dependency; confirm no workspace manifest depends on the crate.
  • A check under contrib/dev-tools/checks/ that fails when Location::caller(), #[track_caller] or torrust_located_error appears in non-test Rust code (with an allow-list that carries a reason per entry), wired into pre-commit and CI.
  • Draft two upstream issues for the maintainer to open: remove the location from torrust_info_hash::ConversionError, and decide the future of torrust-located-error.

Out of scope: changes inside those two repositories; a custom clippy or rustc lint.

Specification

docs/issues/open/2918-2912-si-6-drop-located-error-and-enforce-the-rule/ISSUE.md (added by the spec-only PR of #2912).

Activity

  1. added 6 commits that reference this issue on Nov 18, 2026
  2. added 9 commits that reference this issue on Nov 23, 2026
  3. 1 remaining item

  4. added 6 commits that reference this issue on Nov 24, 2026
  5. added 4 commits that reference this issue on Nov 24, 2026
  6. added 2 commits that reference this issue on Nov 24, 2026
  7. added a commit that references this issue on Nov 25, 2026
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