Yuki Okushi
d1d6ce85e6
Update date reference about infer context variables
...
Signed-off-by: Yuki Okushi <jtitor@2k36.org>
2023-03-03 17:39:11 +02:00
nils
e359ee27fc
New infcx usage ( #1571 )
...
Fixes https://github.com/rust-lang/rustc-dev-guide/issues/1543
2023-01-31 00:08:16 +09:00
lcnr
36e15ae1dd
Update src/type-inference.md
...
Co-authored-by: Tshepang Mbambo <tshepang@gmail.com>
2022-11-10 23:27:01 +02:00
lcnr
39c10de06f
extract regions
2022-11-10 23:27:01 +02:00
Tshepang Mbambo
8ee1ff5a9e
fix lifetime name ( #1431 )
2022-08-17 19:29:27 +09:00
Tshepang Mbambo
2557089a44
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
fe34beddb4
Update "Inference variables" section ( #1145 )
2021-06-21 21:50:12 +02:00
Camelid
9214d4a8c3
Fix formatting of more date references ( #1067 )
2021-02-22 18:22:23 +09:00
Camelid
5297659bb1
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
5e57035110
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
bee2fd52ce
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
af7286d2c8
add some type inference links, and fix/improve some stuff ( #654 )
2020-04-01 10:52:31 +02:00
Mark Mansi
69a3667335
add back link
2020-02-20 16:01:35 -06:00
Mark Mansi
f007762b9c
create a separate chapter on arenas/interning
2020-02-20 16:01:35 -06:00
Eduard-Mihai Burtescu
f675e36941
Update for TyCtxt<'a, 'gcx, 'tcx> -> TyCtxt<'tcx>.
2019-06-15 16:58:30 -05:00
Jonas Schievink
d97d111c2e
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
55883c4a7e
first round of link fixes
2018-06-02 17:20:47 -04:00
Philipp Hansch
6315267608
The type is inferenced, not things itself.
2018-05-21 13:57:59 -05:00
Philipp Hansch
f91de90ea2
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
0dc0dddb79
Closing all <a> tags
2018-05-10 14:46:44 -05:00
varkor
8889dcd15d
Replace txt with text
2018-04-06 14:18:08 -05:00
varkor
43341c8894
Consolidate and fix code blocks
2018-04-06 14:18:08 -05:00
Alexander Regueiro
e6acd30581
Hard-wrapped lines that are too long.
2018-03-26 20:28:00 -05:00
Dan Robertson
6136199bf5
Minor grammar and syntax fixes
...
Minor grammar and syntax fixes found while reading.
2018-03-25 13:50:58 +00:00
Niko Matsakis
479d914ff0
work on traits chapters
2018-03-10 07:06:48 -05:00
Adam C. Foltzer
6660e4466a
Fix typos
2018-03-07 12:41:19 -06:00
Mark Mansi
45db49d4de
Update link text
2018-02-04 21:52:30 -06:00
Alexander Regueiro
2b9828a566
Removed spurious `a`.
2018-02-04 21:46:26 -06:00
Alexander Regueiro
7336639671
Fixed issues mentioned by @mark-i-m in review.
2018-02-04 21:46:26 -06:00
Alexander Regueiro
fde99687ab
Cleaned up section on type inference.
2018-02-04 21:46:26 -06:00
Alexander Regueiro
61d67c582c
Explained what HM type inference is.
2018-02-04 21:46:26 -06:00
Alexander Regueiro
6bacd33a0b
Very minor grammatical fixes.
2018-02-04 21:46:26 -06:00
Alexander Regueiro
7d7d9171b8
Changed all instances of `e.g.,` to `e.g.`, and similar.
2018-02-04 21:46:26 -06:00
Alexander Regueiro
9ad3a69332
replaced all instances of `--` (double hyphen) with `-` (en-dash)
2018-02-01 11:03:07 -06:00
Niko Matsakis
04cee3e1be
fix some broken links
2018-01-31 14:13:49 -05:00
Mark Mansi
f47633dd33
copy type inference readme
2018-01-29 13:12:28 -06:00
Niko Matsakis
3492c534fe
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