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 8 pull requests #93390

Merged
merged 23 commits into from
Jan 28, 2022
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
db5a2ae
Define c_char using cfg_if rather than repeating 40-line cfg
dtolnay Dec 7, 2021
4e8b91a
Work around Clippy false positive on `as c_char`
dtolnay Dec 8, 2021
1ffd043
Add test stable hash uniqueness of adjacent field values
Kobzol Jan 22, 2022
0c17893
Rename `TypedArenaChunk` as `ArenaChunk`.
nnethercote Jan 25, 2022
f93bd00
Hoist `to_uppercase` out of the loop
tmiasko Jan 17, 2022
380d53f
Check namespace before computing the Levenshtein distance
tmiasko Jan 17, 2022
6236882
Introduce a limit to Levenshtein distance computation
tmiasko Jan 20, 2022
f5cdfb4
rustdoc: add test case for multiple traits and erased names
notriddle Jan 26, 2022
696d503
Clarify the `usage-of-qualified-ty` error message.
nnethercote Jan 27, 2022
f27758e
mention std::iter::zip in Iterator::zip docs
cameron1024 Jan 27, 2022
e680838
update pass_by_value
lcnr Jan 27, 2022
2684dfe
try apply `rustc_pass_by_value` to `Span`
lcnr Jan 27, 2022
9065c7c
Add some comments.
nnethercote Jan 25, 2022
6035487
Clarify `ArenaAllocatable`'s second parameter.
nnethercote Jan 25, 2022
857ea1e
Touch up PR 92899 Iterator::zip docs
dtolnay Jan 27, 2022
4af3930
Rollup merge of #91641 - dtolnay:cchar-if, r=Mark-Simulacrum
matthiaskrgr Jan 27, 2022
54f3578
Rollup merge of #92899 - cameron1024:zip-docs, r=dtolnay
matthiaskrgr Jan 27, 2022
bc26f97
Rollup merge of #93193 - Kobzol:stable-hash-permutation-test, r=the8472
matthiaskrgr Jan 27, 2022
6caa533
Rollup merge of #93325 - tmiasko:lev, r=davidtwco
matthiaskrgr Jan 27, 2022
b232c46
Rollup merge of #93339 - notriddle:notriddle/test-generics-multi-trai…
matthiaskrgr Jan 27, 2022
5d79874
Rollup merge of #93357 - nnethercote:clarify-usage-of-qualified-ty, r…
matthiaskrgr Jan 27, 2022
8347f78
Rollup merge of #93363 - lcnr:pass-by-value, r=petrochenkov
matthiaskrgr Jan 27, 2022
0eb6753
Rollup merge of #93365 - nnethercote:more-arena-cleanups, r=oli-obk
matthiaskrgr Jan 27, 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
2 changes: 1 addition & 1 deletion compiler/rustc_lint/src/internal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ impl<'tcx> LateLintPass<'tcx> for TyTyKind {
lint.build(&format!("usage of qualified `ty::{}`", t))
.span_suggestion(
path.span,
"try using it unqualified",
"try importing it and using it unqualified",
t,
// The import probably needs to be changed
Applicability::MaybeIncorrect,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ error: usage of qualified `ty::Ty<'_>`
--> $DIR/qualified_ty_ty_ctxt.rs:25:11
|
LL | ty_q: ty::Ty<'_>,
| ^^^^^^^^^^ help: try using it unqualified: `Ty<'_>`
| ^^^^^^^^^^ help: try importing it and using it unqualified: `Ty<'_>`
|
note: the lint level is defined here
--> $DIR/qualified_ty_ty_ctxt.rs:4:9
Expand All @@ -14,7 +14,7 @@ error: usage of qualified `ty::TyCtxt<'_>`
--> $DIR/qualified_ty_ty_ctxt.rs:27:16
|
LL | ty_ctxt_q: ty::TyCtxt<'_>,
| ^^^^^^^^^^^^^^ help: try using it unqualified: `TyCtxt<'_>`
| ^^^^^^^^^^^^^^ help: try importing it and using it unqualified: `TyCtxt<'_>`

error: aborting due to 2 previous errors