This website requires JavaScript.
Explore
Help
Register
Sign In
mikros
/
rust
Watch
1
Star
0
Fork
0
You've already forked rust
Code
Issues
Pull Requests
Packages
Projects
Releases
Wiki
Activity
46d3ef58a8
rust
/
src
/
test
/
ui
/
parser
/
issue-19398.rs
6 lines
104 B
Rust
Raw
Normal View
History
Unescape
Escape
Fix the ordering of `unsafe` and `extern` in methods This breaks code that looks like this: trait Foo { extern "C" unsafe fn foo(); } impl Foo for Bar { extern "C" unsafe fn foo() { ... } } Change such code to look like this: trait Foo { unsafe extern "C" fn foo(); } impl Foo for Bar { unsafe extern "C" fn foo() { ... } } Fixes #19398. [breaking-change]
2014-11-30 02:33:04 -06:00
trait
T
{
parser: fuse free `fn` parsing together.
2020-01-30 06:02:06 -06:00
extern
"
Rust
"
unsafe
fn
foo
(
)
;
//~ ERROR expected one of `async`, `const`
Fix the ordering of `unsafe` and `extern` in methods This breaks code that looks like this: trait Foo { extern "C" unsafe fn foo(); } impl Foo for Bar { extern "C" unsafe fn foo() { ... } } Change such code to look like this: trait Foo { unsafe extern "C" fn foo(); } impl Foo for Bar { unsafe extern "C" fn foo() { ... } } Fixes #19398. [breaking-change]
2014-11-30 02:33:04 -06:00
}
fn
main
(
)
{
}
Reference in New Issue
Copy Permalink