Skip to content

Commit 81f12eb

Browse files
committed
Inline Target::deref
1 parent d046777 commit 81f12eb

File tree

1 file changed

+2
-0
lines changed
  • compiler/rustc_target/src/spec

1 file changed

+2
-0
lines changed

compiler/rustc_target/src/spec/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1541,11 +1541,13 @@ impl Default for TargetOptions {
15411541
impl Deref for Target {
15421542
type Target = TargetOptions;
15431543

1544+
#[inline]
15441545
fn deref(&self) -> &Self::Target {
15451546
&self.options
15461547
}
15471548
}
15481549
impl DerefMut for Target {
1550+
#[inline]
15491551
fn deref_mut(&mut self) -> &mut Self::Target {
15501552
&mut self.options
15511553
}

0 commit comments

Comments
 (0)