Skip to content

Commit a10e16b

Browse files
committed
move docs about ambig ty and consts
1 parent 2197af6 commit a10e16b

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

src/SUMMARY.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,8 @@
126126
- [Lang Items](./lang-items.md)
127127
- [The HIR (High-level IR)](./hir.md)
128128
- [Lowering AST to HIR](./hir/lowering.md)
129-
- [Ambig/Unambig Types and Consts](./hir/ambig-unambig-ty-and-consts.md)
130129
- [Debugging](./hir/debugging.md)
130+
- [Ambig/Unambig Types and Consts](./ambig-unambig-ty-and-consts.md)
131131
- [The THIR (Typed High-level IR)](./thir.md)
132132
- [The MIR (Mid-level IR)](./mir/index.md)
133133
- [MIR construction](./mir/construction.md)

src/const-generics.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ By feeding the type of an anon const with the type of the Const Parameter we gua
206206

207207
Looking at the above example, this corresponds to `[u8; ANON]` being a well formed type because `ANON` has type `usize`, but the *body* of `ANON` being illformed and resulting in a type checking error because `true` can't be returned from a const item of type `usize`.
208208

209-
[ambig-unambig-ty-and-consts]: ./hir/ambig-unambig-ty-and-consts.md
209+
[ambig-unambig-ty-and-consts]: ./ambig-unambig-ty-and-consts.md
210210
[`ConstKind`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/ty/type.ConstKind.html
211211
[`ConstKind::Infer`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/ty/type.ConstKind.html#variant.Infer
212212
[`ConstKind::Param`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/ty/type.ConstKind.html#variant.Param

0 commit comments

Comments
 (0)