1
Fork 0
rust/compiler/rustc_ty_utils/src
bors 501ad021b9 Auto merge of #108682 - est31:simplify_dirs, r=davidtwco
Simplify message paths

This makes it easier to open the messages file. Right now I have to first click on the `locales` dir to open it, and then on the `en-US.ftl` file. `Cargo.toml` and `build.rs` files are also in the top level, and I think there should not be more than one file, so a directory isn't really needed. The [chosen strategy for pontoon adoption](https://rust-lang.zulipchat.com/#narrow/stream/336883-i18n/topic/pontoon.20and.20next.20steps) is out of tree. Even if this descision is changed in the future, the `messages.ftl` approach is also compatible with non-english translations living in-tree, as long as the non-english translations don't live in the `compiler/rustc_foo/` directories but in different ones. That would also be helpful for grepability purposes.

The commit was the result of automated changes:

```
for p in compiler/rustc_*; do mv $p/locales/en-US.ftl $p/messages.ftl; rmdir $p/locales; done

for p in compiler/rustc_*; do sed -i "s#\.\./locales/en-US.ftl#../messages.ftl#" $p/src/lib.rs; done
```

r? `@davidtwco`
2023-03-12 03:51:21 +00:00
..
abi.rs Rename many interner functions. 2023-02-24 07:32:24 +11:00
assoc.rs Auto merge of #108700 - spastorino:new-rpitit-impl-side-2, r=compiler-errors 2023-03-12 00:49:35 +00:00
common_traits.rs Change InferCtxtBuilder from enter to build 2022-10-07 07:10:40 -05:00
consts.rs Rename many interner functions. 2023-02-24 07:32:24 +11:00
errors.rs errors: generate typed identifiers in each crate 2023-02-22 09:15:53 +00:00
implied_bounds.rs rustc_middle: Remove trait DefIdTree 2023-03-02 23:46:44 +04:00
instance.rs Remove type-traversal trait aliases 2023-02-22 17:04:58 +00:00
layout.rs Rename many interner functions. 2023-02-24 07:32:24 +11:00
layout_sanity_check.rs stricter alignment enforcement for ScalarPair and Vector 2022-11-28 15:09:56 +01:00
lib.rs Simplify message paths 2023-03-11 22:51:57 +01:00
needs_drop.rs Rename many interner functions. 2023-02-24 07:32:24 +11:00
representability.rs remove bound_type_of query; make type_of return EarlyBinder; change type_of in metadata 2023-02-16 17:05:56 -07:00
structural_match.rs Move has_structural_eq_impls provider to rustc_ty_utils 2022-12-08 05:16:48 +00:00
ty.rs Auto merge of #108700 - spastorino:new-rpitit-impl-side-2, r=compiler-errors 2023-03-12 00:49:35 +00:00