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

Skip to content
Closed
Changes from 1 commit
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
cca0aa9
Properly account for binders in get_impl_future_output_ty
tmandry Dec 21, 2021
e467840
NiceRegionError: Use written return type for async fn
tmandry Nov 20, 2021
50ac0a3
Simplify error reporting code, remove await point wording
tmandry Dec 10, 2021
8bdf5c3
Implement panic::update_hook
Badel2 Jan 5, 2022
8ef3ce8
Change panic::update_hook to simplify usage
Badel2 Jan 7, 2022
0c58586
Add safety comments to panic::(set/take/update)_hook
Badel2 Jan 7, 2022
4c3e330
feat: pass_by_value lint attribute
mdibaiee Jan 7, 2022
ad57295
Elaborate param_env predicates when checking if type outlives involvi…
jackh726 Jan 10, 2022
91ed689
rustc_pass_by_value lint: add test on custom types
mdibaiee Jan 10, 2022
71e3314
rustc_pass_by_value remove dependency on rustc_diagnostic_item
mdibaiee Jan 10, 2022
49553bb
Remove hack that is no longer necessary
camelid Jan 6, 2022
e18b23b
Move two intra-doc-link tests into the `intra-doc` folder
camelid Jan 6, 2022
ca20d64
Enable ignored part of test
camelid Jan 6, 2022
977a7ca
Add test for disambiguator mismatch with crate
camelid Jan 6, 2022
9acd813
Use Res instead of Disambiguator for `resolved` in `report_mismatch`
camelid Jan 6, 2022
591ec49
Remove unnecessary conditional for suggesting disambiguator
camelid Jan 6, 2022
a5f09f7
Update comment and make code clearer
camelid Jan 6, 2022
895fa9c
Extract functions for two closures
camelid Jan 6, 2022
28d2353
Update some comments post the side channel removal
camelid Jan 6, 2022
a6762e9
rustc_pass_by_value: allow types with no parameters on self
mdibaiee Jan 11, 2022
959bf2b
rustc_pass_by_value: handle generic and const type parameters
mdibaiee Jan 11, 2022
2728af7
rustc_pass_by_value: handle inferred generic types (with _)
mdibaiee Jan 11, 2022
c84f2b2
Remove some unnecessary uses of `FieldDef::ident`
camelid Jan 12, 2022
51d7665
rustdoc: remove hand-rolled isatty
euclio Jan 12, 2022
9ff8ae0
rustdoc: fix intra-link for generic trait impls
mdibaiee Jan 11, 2022
ae20500
rustdoc: add intra-doc trait impl test for extern types
mdibaiee Jan 13, 2022
8a93aef
Rollup merge of #92183 - tmandry:issue-74256, r=estebank
matthiaskrgr Jan 15, 2022
3129fd7
Rollup merge of #92598 - Badel2:panic-update-hook, r=yaahc
matthiaskrgr Jan 15, 2022
29adca6
Rollup merge of #92635 - camelid:yet-more-cleanup, r=Manishearth
matthiaskrgr Jan 15, 2022
3373a0e
Rollup merge of #92646 - mdibaiee:76935/pass-by-value, r=lcnr
matthiaskrgr Jan 15, 2022
f7e7dbb
Rollup merge of #92710 - jackh726:issue-92280, r=nikomatsakis
matthiaskrgr Jan 15, 2022
e0c04b6
Rollup merge of #92792 - mdibaiee:92662/fix-intra-doc-generics, r=cam…
matthiaskrgr Jan 15, 2022
5f916fd
Rollup merge of #92799 - rust-lang:followup-from-92533, r=Aaron1011
matthiaskrgr Jan 15, 2022
19c88ad
Rollup merge of #92819 - euclio:atty, r=CraftSpider
matthiaskrgr Jan 15, 2022
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
Remove unnecessary conditional for suggesting disambiguator
Now that `res` is used directly, it seems the conditional is
unnecessary.
  • Loading branch information
camelid committed Jan 11, 2022
commit 591ec49df312ec4cbcdec0f082f123f473c182a9
5 changes: 1 addition & 4 deletions src/librustdoc/passes/collect_intra_doc_links.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2062,10 +2062,7 @@ fn resolution_failure(
ResolutionFailure::NotResolved { .. } => unreachable!("handled above"),
ResolutionFailure::Dummy => continue,
ResolutionFailure::WrongNamespace { res, expected_ns } => {
// FIXME: does this need to be behind an `if`?
if matches!(res, Res::Def(..)) {
suggest_disambiguator(res, diag, path_str, diag_info.ori_link, sp);
}
suggest_disambiguator(res, diag, path_str, diag_info.ori_link, sp);

format!(
"this link resolves to {}, which is not in the {} namespace",
Expand Down