Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Closed
Changes from 1 commit
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
3ed189e
Cleanup `PpMode` and friends
LeSeulArtichaut Feb 18, 2021
dd3772e
A few more code cleanups
LeSeulArtichaut Feb 19, 2021
7ad4b7a
Replace normalize.css 3.0.0 with unminified version.
jsha Feb 20, 2021
9bbd482
Update normalize.css to 8.0.1
jsha Feb 20, 2021
7acb105
Re-minify normalize.css.
jsha Feb 20, 2021
24c23f5
Test hexagon-enum only when llvm target is present
nagisa Feb 22, 2021
e8dcc02
Add a `size()` function to WASI's `MetadataExt`.
sunfishcode Feb 22, 2021
c9d86aa
Set RUST_BACKTRACE=0 when running `treat-err-as-bug` tests
Aaron1011 Feb 23, 2021
132ec26
Enable API documentation for `std::os::wasi`.
sunfishcode Feb 22, 2021
f94c15c
Fix typo in sanitizer flag in unstable book.
frewsxcv Feb 23, 2021
a6eb836
Use #[doc = include_str!()] in std
LeSeulArtichaut Dec 30, 2020
010a6f9
panic_bounds_checks should be panic_bounds_check
jrmuizel Feb 24, 2021
476c6c2
Update outdated comment in unix Command.
ehuss Feb 24, 2021
a03950b
rustdoc: Name fields of `ResolutionFailure::WrongNamespace`
camelid Jan 30, 2021
5ac6935
Move pick_by_value_method docs above function header
osa1 Feb 24, 2021
9c5f684
Turn Pick field comments into documentation
osa1 Feb 24, 2021
595b8be
Rollup merge of #80534 - LeSeulArtichaut:doc-include, r=jyn514
JohnTitor Feb 24, 2021
6fe9144
Rollup merge of #81575 - camelid:rustdoc-wrongnamespace-cleanup, r=jy…
JohnTitor Feb 24, 2021
67c85d7
Rollup merge of #82269 - LeSeulArtichaut:cleanup-ppmode, r=spastorino
JohnTitor Feb 24, 2021
761efcf
Rollup merge of #82313 - jsha:update-normalize-css, r=GuillaumeGomez
JohnTitor Feb 24, 2021
2fb67e0
Rollup merge of #82404 - nagisa:nagisa/hexagon-enums-llvm-comps, r=pe…
JohnTitor Feb 24, 2021
459edd6
Rollup merge of #82420 - sunfishcode:wasi-docs, r=alexcrichton
JohnTitor Feb 24, 2021
603332d
Rollup merge of #82421 - sunfishcode:wasi-metadata-size, r=alexcrichton
JohnTitor Feb 24, 2021
40374d2
Rollup merge of #82431 - Aaron1011:fix/bug-env, r=jyn514
JohnTitor Feb 24, 2021
000d9d7
Rollup merge of #82441 - frewsxcv:frewsxcv-docs, r=GuillaumeGomez
JohnTitor Feb 24, 2021
d62b71e
Rollup merge of #82463 - jrmuizel:patch-1, r=steveklabnik
JohnTitor Feb 24, 2021
c5a3305
Rollup merge of #82464 - ehuss:unix-command-comment, r=kennytm
JohnTitor Feb 24, 2021
56fc3c5
Rollup merge of #82468 - osa1:pick_by_value_method_docs, r=petrochenkov
JohnTitor Feb 24, 2021
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
Prev Previous commit
Next Next commit
Turn Pick field comments into documentation
  • Loading branch information
osa1 committed Feb 24, 2021
commit 9c5f684e83018f990d067ea44d5204ca3762b722
22 changes: 11 additions & 11 deletions compiler/rustc_typeck/src/check/method/probe.rs
Original file line number Diff line number Diff line change
Expand Up @@ -159,21 +159,21 @@ pub struct Pick<'tcx> {
pub kind: PickKind<'tcx>,
pub import_ids: SmallVec<[LocalDefId; 1]>,

// Indicates that the source expression should be autoderef'd N times
//
// A = expr | *expr | **expr | ...
/// Indicates that the source expression should be autoderef'd N times
///
/// A = expr | *expr | **expr | ...
pub autoderefs: usize,

// Indicates that an autoref is applied after the optional autoderefs
//
// B = A | &A | &mut A
/// Indicates that an autoref is applied after the optional autoderefs
///
/// B = A | &A | &mut A
pub autoref: Option<hir::Mutability>,

// Indicates that the source expression should be "unsized" to a
// target type. This should probably eventually go away in favor
// of just coercing method receivers.
//
// C = B | unsize(B)
/// Indicates that the source expression should be "unsized" to a
/// target type. This should probably eventually go away in favor
/// of just coercing method receivers.
///
/// C = B | unsize(B)
pub unsize: Option<Ty<'tcx>>,
}

Expand Down