Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: rust-lang/rust
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: a18a278f89f5693e8629407d6f80b51aa2859427
Choose a base ref
..
head repository: rust-lang/rust
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: a3669b89825e6f1aabaa3e3993c1a9f9d7b70306
Choose a head ref
Showing with 2 additions and 2 deletions.
  1. +2 −2 compiler/rustc_error_codes/src/error_codes/E0622.md
4 changes: 2 additions & 2 deletions compiler/rustc_error_codes/src/error_codes/E0622.md
Original file line number Diff line number Diff line change
@@ -7,7 +7,7 @@ Erroneous code example:
#![allow(internal_features)]
extern "rust-intrinsic" {
pub static atomic_singlethreadfence_seqcst: fn() = || {};
pub static atomic_singlethreadfence_seqcst: fn();
// error: intrinsic must be a function
}
@@ -23,7 +23,7 @@ error, just declare a function. Example:
#![allow(internal_features)]
extern "rust-intrinsic" {
pub unsafe fn atomic_singlethreadfence_seqcst(); // ok!
pub fn atomic_singlethreadfence_seqcst(); // ok!
}
fn main() { unsafe { atomic_singlethreadfence_seqcst(); } }