From 6acdea433647b93b91ab9075c1be8ee869d20bbc Mon Sep 17 00:00:00 2001 From: Santiago Pastorino Date: Tue, 1 Oct 2019 12:51:15 -0300 Subject: [PATCH 1/2] Make comment about dummy type a bit more clear --- src/librustc/ty/mod.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/librustc/ty/mod.rs b/src/librustc/ty/mod.rs index 4b9117f71be5c..c0ec2b1cd5a80 100644 --- a/src/librustc/ty/mod.rs +++ b/src/librustc/ty/mod.rs @@ -600,7 +600,8 @@ impl<'tcx> rustc_serialize::UseSpecializedDecodable for Ty<'tcx> {} pub type CanonicalTy<'tcx> = Canonical<'tcx, Ty<'tcx>>; extern { - /// A dummy type used to force `List` to by unsized without requiring fat pointers. + /// A dummy type used to force List to be unsized while not requiring references to it be wide + /// pointers. type OpaqueListContents; } From 738baa734b41b171514280dd0772398a70628083 Mon Sep 17 00:00:00 2001 From: Santiago Pastorino Date: Tue, 1 Oct 2019 13:03:33 -0300 Subject: [PATCH 2/2] Update src/librustc/ty/mod.rs Co-Authored-By: Oliver Scherer --- src/librustc/ty/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/librustc/ty/mod.rs b/src/librustc/ty/mod.rs index c0ec2b1cd5a80..d2dc07374ed00 100644 --- a/src/librustc/ty/mod.rs +++ b/src/librustc/ty/mod.rs @@ -600,7 +600,7 @@ impl<'tcx> rustc_serialize::UseSpecializedDecodable for Ty<'tcx> {} pub type CanonicalTy<'tcx> = Canonical<'tcx, Ty<'tcx>>; extern { - /// A dummy type used to force List to be unsized while not requiring references to it be wide + /// A dummy type used to force `List` to be unsized while not requiring references to it be wide /// pointers. type OpaqueListContents; }