Max Heller
08b4cd8efc
Use `id` attribute for `<a>` tags instead of deprecated `name` attribute ( #2184 )
2024-12-31 22:02:50 +08:00
Yuki Okushi
77e9a17a1d
Update date reference about infer context variables
...
Signed-off-by: Yuki Okushi <jtitor@2k36.org>
2023-03-03 17:39:11 +02:00
nils
5edc03f6ad
New infcx usage ( #1571 )
...
Fixes https://github.com/rust-lang/rustc-dev-guide/issues/1543
2023-01-31 00:08:16 +09:00
lcnr
d1132b7494
Update src/type-inference.md
...
Co-authored-by: Tshepang Mbambo <tshepang@gmail.com>
2022-11-10 23:27:01 +02:00
lcnr
e53f21a45b
extract regions
2022-11-10 23:27:01 +02:00
Tshepang Mbambo
8156e7f9ab
fix lifetime name ( #1431 )
2022-08-17 19:29:27 +09:00
Tshepang Mbambo
8194045511
make date-check more lightweight ( #1394 )
...
* make date-check lightweight
This avoids having to write the date twice when updating date-check.
Before "As of <-- 2022-07 --> July 2022"
After "As of July 2022"
* please clippy
* update date-check docs
* accept review suggestion
Co-authored-by: Noah Lev <camelidcamel@gmail.com>
* address review comment
https://github.com/rust-lang/rustc-dev-guide/pull/1394#pullrequestreview-1042163557
* accept review suggestion
Co-authored-by: Noah Lev <camelidcamel@gmail.com>
* address review comment
https://github.com/rust-lang/rustc-dev-guide/pull/1394#pullrequestreview-1042167261
* address review comment
https://github.com/rust-lang/rustc-dev-guide/pull/1394#issuecomment-1189105017
* this breaks markdown
* address review comment
https://github.com/rust-lang/rustc-dev-guide/pull/1394#discussion_r934018268
This led to a more robust regex, though making the tool more picky.
It also found a wrong date format that was missed.
* address review comment
https://github.com/rust-lang/rustc-dev-guide/pull/1394#discussion_r934018419
* address review comment
https://github.com/rust-lang/rustc-dev-guide/pull/1394#discussion_r934018816
* accept review suggestion
This was reverted by mistake
Co-authored-by: Noah Lev <camelidcamel@gmail.com>
* address review comment
https://github.com/rust-lang/rustc-dev-guide/pull/1394#discussion_r934019395
* use a more simple fn
* address review comment
https://github.com/rust-lang/rustc-dev-guide/pull/1394#discussion_r934018981
Much more clean
* nit
* accept review suggestion
Co-authored-by: Noah Lev <camelidcamel@gmail.com>
* avoid a failed regex
Also, test new shape
* adjust to new regex (which uses named groups)
New regex was introduced by 456008cc35
Co-authored-by: Noah Lev <camelidcamel@gmail.com>
2022-08-02 13:50:32 -07:00
Yuki Okushi
a4bbc6547f
Update "Inference variables" section ( #1145 )
2021-06-21 21:50:12 +02:00
Camelid
9539f6c271
Fix formatting of more date references ( #1067 )
2021-02-22 18:22:23 +09:00
Camelid
f7049a868c
Fix date-check comment formatting ( #1066 )
...
I realized that the format I had been previously using for date-checks
(as of January 2021 <!-- date: 2021-01 -->)
left a space before the closing parenthesis in the rendered output,
which looks weird.
I could fix this by removing the space between `2021` and `<!-- ...`,
but that looks weird in the source. So I ended up deciding on changing
it to
(as of <!-- date: 2021-01 --> January 2021)
2021-02-20 19:24:01 -08:00
Camelid
6e02970f7f
Add lots of date-check annotations
...
Also added dates for things that previously said "as of now" or "as of
this writing" and cleaned up a couple of things along the way.
2021-02-03 19:29:07 -05: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
Tshepang Lekhonkhobe
8edc4bc160
add some type inference links, and fix/improve some stuff ( #654 )
2020-04-01 10:52:31 +02:00
Mark Mansi
cc4f5ce105
add back link
2020-02-20 16:01:35 -06:00
Mark Mansi
d6c9c42df5
create a separate chapter on arenas/interning
2020-02-20 16:01:35 -06:00
Eduard-Mihai Burtescu
2309adfd9d
Update for TyCtxt<'a, 'gcx, 'tcx> -> TyCtxt<'tcx>.
2019-06-15 16:58:30 -05:00
Jonas Schievink
7d3823b5a3
Fix a few typos in type inference chapter
...
Also try to test the top example
2019-06-13 19:49:30 -05:00
Mark Mansi
30b6be0f7d
first round of link fixes
2018-06-02 17:20:47 -04:00
Philipp Hansch
812c9416fc
The type is inferenced, not things itself.
2018-05-21 13:57:59 -05:00
Philipp Hansch
4025970742
Add type inference example
...
This should make the chapter a bit more approachable, as it doesn't
start with a reference to the HM type inference algorithm.
2018-05-21 13:57:59 -05:00
Sunjay Varma
5f01a3b60b
Closing all <a> tags
2018-05-10 14:46:44 -05:00
varkor
c6b3ce0c96
Replace txt with text
2018-04-06 14:18:08 -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
Dan Robertson
52520205a3
Minor grammar and syntax fixes
...
Minor grammar and syntax fixes found while reading.
2018-03-25 13:50:58 +00:00
Niko Matsakis
4d1dbd553b
work on traits chapters
2018-03-10 07:06:48 -05:00
Adam C. Foltzer
1f0d256254
Fix typos
2018-03-07 12:41:19 -06:00
Mark Mansi
5920d94563
Update link text
2018-02-04 21:52:30 -06:00
Alexander Regueiro
1187124cad
Removed spurious `a`.
2018-02-04 21:46:26 -06:00
Alexander Regueiro
5a9fce427e
Fixed issues mentioned by @mark-i-m in review.
2018-02-04 21:46:26 -06:00
Alexander Regueiro
597ed7d4fd
Cleaned up section on type inference.
2018-02-04 21:46:26 -06:00
Alexander Regueiro
80e9252f12
Explained what HM type inference is.
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
072d698430
Changed all instances of `e.g.,` to `e.g.`, and similar.
2018-02-04 21:46:26 -06:00
Alexander Regueiro
780e954a17
replaced all instances of `--` (double hyphen) with `-` (en-dash)
2018-02-01 11:03:07 -06:00
Niko Matsakis
e4f4581cc6
fix some broken links
2018-01-31 14:13:49 -05:00
Mark Mansi
e2eb8fc511
copy type inference readme
2018-01-29 13:12:28 -06:00
Niko Matsakis
81d158b707
remove the `chap-NNN-` convention from file names
...
I don't want those showing up in the URLs.
2018-01-19 06:46:56 -05:00