Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rollup of 7 pull requests #58550

Closed
wants to merge 17 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
17 commits
Select commit Hold shift + click to select a range
26bd433
Move the intrinsics into a submodule
nitnelave Feb 8, 2019
564c569
Monomorphize less code in fs::{read|write}
scottmcm Feb 17, 2019
8fbb013
Mention capping forbid lints
dwijnand Feb 17, 2019
a23c40e
Add alias methods to PathBuf for underlying OsString
aaronstillwell Feb 17, 2019
dad211e
Modify doctest's auto-`fn main()` to allow `Result`s
llogiq Dec 3, 2018
dbf60d9
Fixes for implementation of PathBuf methods (aliases for OsString)
aaronstillwell Feb 17, 2019
35d8c44
Changed feature gate for new PathBuf methods
aaronstillwell Feb 17, 2019
ee948d9
Add regression test for a specialization-related ICE (#39448)
emlai Feb 17, 2019
55c25f8
Fix doc for rustc "-g" flag
TheBiggerGuy Feb 17, 2019
88e462b
Add links to codegen docs for rustc synonym flags
TheBiggerGuy Feb 17, 2019
e91ec2b
Rollup merge of #56470 - llogiq:process-termination-doctest, r=Guilla…
GuillaumeGomez Feb 17, 2019
5843709
Rollup merge of #57997 - nitnelave:master, r=RalfJung
GuillaumeGomez Feb 17, 2019
681bc67
Rollup merge of #58530 - scottmcm:monomorphize-less, r=TimNN
GuillaumeGomez Feb 17, 2019
2fabaab
Rollup merge of #58534 - dwijnand:mention-capping-forbid-lints, r=oli…
GuillaumeGomez Feb 17, 2019
12bccb4
Rollup merge of #58539 - aaronstillwell:master, r=Mark-Simulacrum
GuillaumeGomez Feb 17, 2019
67721ed
Rollup merge of #58544 - TheBiggerGuy:rustc-doc-cli-args, r=TimNN
GuillaumeGomez Feb 17, 2019
6394d71
Rollup merge of #58545 - emlai:regression-test-for-39448, r=Centril
GuillaumeGomez Feb 17, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/doc/rustc/src/command-line-arguments.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@ This flag prints out various information about the compiler.

## `-g`: include debug information

A synonym for `-C debug-level=2`.
A synonym for `-C debuginfo=2`, for more see [here](codegen-options/index.html#debuginfo).

## `-O`: optimize your code

A synonym for `-C opt-level=2`.
A synonym for `-C opt-level=2`, for more see [here](codegen-options/index.html#opt-level).

## `-o`: filename of the output

Expand Down
4 changes: 3 additions & 1 deletion src/doc/rustc/src/lints/levels.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,9 @@ This lint level gives you that.
'forbid' is a special lint level that's stronger than 'deny'. It's the same
as 'deny' in that a lint at this level will produce an error, but unlike the
'deny' level, the 'forbid' level can not be overridden to be anything lower
than an error.
than an error. However, lint levels may still be capped with `--cap-lints`
(see below) so `rustc --cap-lints warn` will make lints set to 'forbid' just
warn.

## Configuring warning levels

Expand Down
17 changes: 17 additions & 0 deletions src/doc/rustdoc/src/documentation-tests.md
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,23 @@ appears to the reader as the initial idea but works with doc tests:
/// ```
```

As of version 1.34.0, one can also omit the `fn main()`, but you will have to
disambiguate the error type:

```ignore
/// ```
/// use std::io;
/// let mut input = String::new();
/// io::stdin().read_line(&mut input)?;
/// # Ok::<(), io:Error>(())
/// ```
```

This is an unfortunate consequence of the `?` operator adding an implicit
conversion, so type inference fails because the type is not unique. Please note
that you must write the `(())` in one sequence without intermediate whitespace
so that rustdoc understands you want an implicit `Result`-returning function.

## Documenting macros

Here’s an example of documenting a macro:
Expand Down
Loading