Skip to content

Commit 7f0d2e8

Browse files
chris-morganfrewsxcv
authored andcommitted
RFC 248? I think you meant RFC 438.
There ain’t an RFC 248, while 438 looks to be what is being referred to: https://github.com/rust-lang/rfcs/blob/master/text/0438-precedence-of-plus.md
1 parent 1c2df5c commit 7f0d2e8

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/librustc_typeck/astconv.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -798,14 +798,14 @@ fn ast_ty_to_trait_ref<'tcx,AC,RS>(this: &AC,
798798
match ty.node {
799799
ast::TyRptr(None, ref mut_ty) => {
800800
span_note!(this.tcx().sess, ty.span,
801-
"perhaps you meant `&{}({} +{})`? (per RFC 248)",
801+
"perhaps you meant `&{}({} +{})`? (per RFC 438)",
802802
ppaux::mutability_to_string(mut_ty.mutbl),
803803
pprust::ty_to_string(&*mut_ty.ty),
804804
pprust::bounds_to_string(bounds));
805805
}
806806
ast::TyRptr(Some(ref lt), ref mut_ty) => {
807807
span_note!(this.tcx().sess, ty.span,
808-
"perhaps you meant `&{} {}({} +{})`? (per RFC 248)",
808+
"perhaps you meant `&{} {}({} +{})`? (per RFC 438)",
809809
pprust::lifetime_to_string(lt),
810810
ppaux::mutability_to_string(mut_ty.mutbl),
811811
pprust::ty_to_string(&*mut_ty.ty),
@@ -814,7 +814,7 @@ fn ast_ty_to_trait_ref<'tcx,AC,RS>(this: &AC,
814814

815815
_ => {
816816
span_note!(this.tcx().sess, ty.span,
817-
"perhaps you forgot parentheses? (per RFC 248)");
817+
"perhaps you forgot parentheses? (per RFC 438)");
818818
}
819819
}
820820
Err(ErrorReported)

src/libsyntax/parse/parser.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1456,7 +1456,7 @@ impl<'a> Parser<'a> {
14561456
// clauses (i.e., not when parsing something like
14571457
// `FnMut() -> T + Send`, where the `+` is legal).
14581458
if self.token == token::BinOp(token::Plus) {
1459-
self.warn("deprecated syntax: `()` are required, see RFC 248 for details");
1459+
self.warn("deprecated syntax: `()` are required, see RFC 438 for details");
14601460
}
14611461

14621462
Return(t)

0 commit comments

Comments
 (0)