Skip to content

Commit 1c2aef3

Browse files
committed
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 29e928f commit 1c2aef3

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/librustc/middle/typeck/astconv.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -715,15 +715,15 @@ fn ast_ty_to_trait_ref<'tcx,AC,RS>(this: &AC,
715715
match ty.node {
716716
ast::TyRptr(None, ref mut_ty) => {
717717
span_note!(this.tcx().sess, ty.span,
718-
"perhaps you meant `&{}({} +{})`? (per RFC 248)",
718+
"perhaps you meant `&{}({} +{})`? (per RFC 438)",
719719
ppaux::mutability_to_string(mut_ty.mutbl),
720720
pprust::ty_to_string(&*mut_ty.ty),
721721
pprust::bounds_to_string(bounds));
722722
}
723723

724724
ast::TyRptr(Some(ref lt), ref mut_ty) => {
725725
span_note!(this.tcx().sess, ty.span,
726-
"perhaps you meant `&{} {}({} +{})`? (per RFC 248)",
726+
"perhaps you meant `&{} {}({} +{})`? (per RFC 438)",
727727
pprust::lifetime_to_string(lt),
728728
ppaux::mutability_to_string(mut_ty.mutbl),
729729
pprust::ty_to_string(&*mut_ty.ty),
@@ -732,7 +732,7 @@ fn ast_ty_to_trait_ref<'tcx,AC,RS>(this: &AC,
732732

733733
_ => {
734734
span_note!(this.tcx().sess, ty.span,
735-
"perhaps you forgot parentheses? (per RFC 248)");
735+
"perhaps you forgot parentheses? (per RFC 438)");
736736
}
737737
}
738738
Err(ErrorReported)

src/libsyntax/parse/parser.rs

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

14081408
Return(t)

0 commit comments

Comments
 (0)