Skip to content

Commit 8f6db74

Browse files
committed
---
yaml --- r: 275349 b: refs/heads/master c: 222f47a h: refs/heads/master i: 275347: 927df98
1 parent 94513a6 commit 8f6db74

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 3d50ad733229ecc9a8412cf372370aa0be1213d8
2+
refs/heads/master: 222f47a578887cf863bd51b508dbfe313cff2ab1
33
refs/heads/snap-stage3: 235d77457d80b549dad3ac36d94f235208a1eafb
44
refs/heads/try: 49312a405e14a449b98fe0056b12a40ac128be4a
55
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105

trunk/src/libsyntax/parse/parser.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1532,8 +1532,8 @@ impl<'a> Parser<'a> {
15321532
} else {
15331533
let span = self.last_span;
15341534
self.span_err(span,
1535-
"bare raw pointers are not allowed, use `*mut T` or \
1536-
`*const T` as appropriate");
1535+
"expected mut or const in raw pointer type (use \
1536+
`*mut T` or `*const T` as appropriate)");
15371537
Mutability::Immutable
15381538
};
15391539
let t = self.parse_ty()?;

trunk/src/test/parse-fail/bare-raw-pointer.rs renamed to trunk/src/test/parse-fail/bad-pointer-type.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@
1111
// compile-flags: -Z parse-only
1212

1313
fn foo(_: *()) {
14-
//~^ bare raw pointers are not allowed, use `*mut T` or `*const T` as appropriate
14+
//~^ expected mut or const in raw pointer type (use `*mut T` or `*const T` as appropriate)
1515
}

0 commit comments

Comments
 (0)