Commit Graph

55 Commits

Author SHA1 Message Date
Nicholas Nethercote 220d208efd Rename `LifetimeName` as `LifetimeKind`.
It's a much better name, more consistent with how we name such things.

Also rename `Lifetime::res` as `Lifetime::kind` to match. I suspect this
field used to have the type `LifetimeRes` and then the type was changed
but the field name remained the same.
2025-04-16 07:16:40 +10:00
Boxy f71456b753 Flatten generic parameter defs section 2024-11-22 11:17:57 +00:00
Martin Liška cbd5436e1d Fix rustc-related links that are 404 right now (#2112) 2024-11-02 20:53:31 +08:00
Boxy 43eaf6d559 Reviews 2024-05-31 01:27:28 +01:00
Boxy 89536d8e5b Rewrite the "representing types" section to be more comprehensive 2024-05-31 01:27:28 +01:00
León Orell Valerian Liehr efcb2806af Rename AstConv to HIR ty lowering 2024-03-23 08:44:42 +01:00
Arthur Milchior 9ce24d1cbf Use different type in an example (#1908)
* Use different type in an example

Sentences such as «without the argument u32» were ambiguous, as there were two distincts u32. Having a single one, the one in the monomorphization of the type, remove the ambiguity.

* Update src/ty.md

---------

Co-authored-by: Nilstrieb <48135649+Nilstrieb@users.noreply.github.com>
2024-03-01 23:26:16 +01:00
Yuki Okushi e0a9ace640 Fix more links (#1884) 2024-02-21 12:17:28 -03:00
Nicholas Nethercote 164f24ff6d Some updates for recent diagnostics changes. 2024-02-10 04:48:19 +02:00
Gurinder Singh c540dbae9b Rename occurrences of 'delay_span_bug' to 'span_delayed_bug'
since this method has been renamed in rustc.

Also remove a link to  documentation in error-guaranteed.md because it was unused
2024-02-08 20:16:06 +02:00
Yuki Okushi 7ec01f19d1 Fix some links (#1865) 2024-01-28 19:44:41 -03:00
Tshepang Mbambo 212b671fb4 fix link 2023-08-21 07:28:56 +02:00
yukang 384ac6ebbb update internal terminology: Substs -> GenericArgs 2023-08-21 07:28:56 +02:00
Yukang 5d598befed Update outdated doc for types (#1768) 2023-08-20 00:40:18 -07:00
Yuki Okushi 6213fc1cf5 Address the change in https://github.com/rust-lang/rust/pull/97287
Signed-off-by: Yuki Okushi <jtitor@2k36.org>
2023-02-03 06:23:25 +02:00
nils 313e8e913c Add param_env and wording 2023-02-02 10:23:24 +02:00
nils ca4b002450 Expand section basedd on review comments 2023-02-02 10:23:24 +02:00
Nilstrieb 083a9a9d09 Add section on comparing types 2023-02-02 10:23:24 +02:00
Oli Scherer 3ea1f2de88 Remove TyS 2022-12-08 09:06:11 +01:00
lcnr bba248984f fix some links (#1490)
Co-authored-by: Yuki Okushi <jtitor@2k36.org>
2022-10-22 19:53:46 +09:00
Tshepang Mbambo 67a564f15b small fixes to ty chapter (#1390) 2022-07-15 15:47:42 +09:00
pierwill 8484282c52 Fix `Ty` link (#1308) 2022-02-20 12:14:58 -08:00
Georgiy Komarov e3da6331dd Spelling: Rename `rust` to `Rust` (#1288) 2022-01-18 11:09:37 -03:00
Lucas Kent 363f6ce09c Spelling fixes 2021-11-15 08:23:01 -06:00
Iñaki Garay 7a80b01e01 Add mdbook-toc, markers, and documentation (#1028)
* Add mdbook-toc to travis, book.toml  and documentation

* Add toc markers

* Whitespace cleanup and some punctuation

* Addressed comments
2021-01-20 14:33:11 -03:00
Gurwinder Singh 9b803e1dfe fix type in example (#832)
Because the below explanation says that function type is `fn(u32) -> u32`
2020-08-21 18:54:59 +09:00
Takayuki Nakata 973ced6951 Change `rustc::*` to `rustc_middle::*` (#798) 2020-07-16 11:13:49 +09:00
pierwill d18ab7154a Edit ty.md
Makes various edits throughout for formatting, punctuation, and typo fixes.
Also makes some edits and re-wording for clarity.
2020-06-28 18:39:46 -05:00
Who? Me?! 92fafef00a new tykind::error convention (#715) 2020-06-19 07:55:58 +02:00
Bastian Kauschke f9c6c1b117 braces 2020-06-05 10:34:56 -05:00
Hanif Ariffin ebd97c81b5 Added link to the `ty::Adt` (#696)
* Added link to the `ty::Adt`

* Formatting fixes

Thanks @JohnTitor

Co-authored-by: Yuki Okushi <huyuumi.dev@gmail.com>
2020-05-07 23:44:39 +09:00
Santiago Pastorino 80ba3e282e Remove left overs from HackMD migration (#655) 2020-04-01 16:25:14 +02:00
LeSeulArtichaut cb99cfcc1e Rename `librustc` to `librustc_middle` 2020-03-31 15:43:14 -05:00
Bastian Kauschke 3b1dc7307e words (#622) 2020-03-20 03:57:12 +09:00
Mark Mansi d6c9c42df5 create a separate chapter on arenas/interning 2020-02-20 16:01:35 -06:00
Who? Me?! 9c939f4df0 spit of type folder and generics subchapters (#586) 2020-02-19 10:31:20 -03:00
Yuki Okushi 96847cff24 Fix line length 2020-01-10 13:12:39 -05:00
Yuki Okushi 078820613f Fix links and paths 2020-01-10 13:12:39 -05:00
Santiago Pastorino 0ff23ebc84 Summarize the lecture of ty into a chapter (#530)
* Summarize the lecture of ty into a chapter

* Add note that def-id is explained later

* Add mark-i-am fixes

* Address some of Niko's comments

* address last review comments

* fix link

Co-authored-by: Who? Me?! <mark-i-m@users.noreply.github.com>
2020-01-03 09:12:37 -05:00
homersimpsons 9b51b785cb ty.md: fix a typo 2019-11-19 17:57:31 -06:00
Diogo Sousa bafa308add Updated kinds that were renamed to generic arguments.
This change happened in commit bea3d67c77dd643ef1f89c8bd6562e90b373cec4 on
rust-lang/rust.
2019-10-12 09:44:31 -05:00
Bruce Mitchener 0702cb7c70 Fix typos. 2019-08-01 16:03:20 -05:00
Eduard-Mihai Burtescu 2309adfd9d Update for TyCtxt<'a, 'gcx, 'tcx> -> TyCtxt<'tcx>. 2019-06-15 16:58:30 -05:00
varkor 24f3f5794f Add preliminary chapter on kinds 2019-02-18 17:48:15 -06:00
Nikita Popov 0fa9487b4f Update TypeVariants to TyKind
This has been renamed in https://github.com/rust-lang/rust/pull/53581.
2018-10-26 11:05:19 -05:00
varkor ad35712ddc Consolidate and fix code blocks 2018-04-06 14:18:08 -05:00
Alexander Regueiro b3d8fba198 Hard-wrapped lines that are too long. 2018-03-26 20:28:00 -05:00
Alexander Regueiro c579c23694 More minor fixes. 2018-02-04 21:46:26 -06:00
Alexander Regueiro 152c08b1c9 Very minor grammatical fixes. 2018-02-04 21:46:26 -06:00
Alexander Regueiro 7c158a6acc Normalized instances of `N.B.`. 2018-02-04 21:46:26 -06:00