Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 198c687

Browse files
authoredFeb 23, 2023
Rollup merge of #108401 - notriddle:notriddle/diagnostics-article, r=compiler-errors
diagnostics: remove inconsistent English article "this" from E0107 Consider [`tests/ui/const-generics/generic_const_exprs/issue-102768.stderr`][issue-102768.stderr], the error message where it gives additional notes about where the associated type is defined, and how the dead code lint doesn't have an article, like in [`tests/ui/lint/dead-code/issue-85255.stderr`][issue-85255.stderr]. They don't have articles, so it seems unnecessary to have one here. [issue-102768.stderr]: https://github.com/rust-lang/rust/blob/07c993eba8b76eae497e98433ae075b00f01be10/tests/ui/const-generics/generic_const_exprs/issue-102768.stderr [issue-85255.stderr]: https://github.com/rust-lang/rust/blob/07c993eba8b76eae497e98433ae075b00f01be10/tests/ui/lint/dead-code/issue-85255.stderr
2 parents 3c954ae + 0241e49 commit 198c687

File tree

112 files changed

+340
-340
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

112 files changed

+340
-340
lines changed
 

‎compiler/rustc_hir_analysis/src/structured_errors/wrong_number_of_generic_args.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ impl<'a, 'tcx> WrongNumberOfGenericArgs<'a, 'tcx> {
462462

463463
if self.gen_args.span_ext().is_some() {
464464
format!(
465-
"this {} takes {}{} {} argument{} but {} {} supplied",
465+
"{} takes {}{} {} argument{} but {} {} supplied",
466466
def_kind,
467467
quantifier,
468468
bound,

‎tests/rustdoc-ui/unable-fulfill-trait.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
error[E0107]: this trait takes 1 generic argument but 0 generic arguments were supplied
1+
error[E0107]: trait takes 1 generic argument but 0 generic arguments were supplied
22
--> $DIR/unable-fulfill-trait.rs:4:17
33
|
44
LL | field1: dyn Bar<'a, 'b,>,

0 commit comments

Comments
 (0)
Please sign in to comment.