]> git.lizzy.rs Git - rust.git/commit
Rollup merge of #69251 - anp:track-caller-in-traits, r=eddyb
authorMazdak Farrokhzad <twingoow@gmail.com>
Mon, 23 Mar 2020 03:26:04 +0000 (04:26 +0100)
committerGitHub <noreply@github.com>
Mon, 23 Mar 2020 03:26:04 +0000 (04:26 +0100)
commit5ed9d7ebb662ad993e9f2e8c70575fb27cd45041
tree02634cf6a1d092d5781e3ca0f755abe1cff0a8c7
parente4b01c7791446b2f79a1b1d517223378df2bf5f2
parent69bd46a6a18a5b44972ccebb96de1294f4b760b1
Rollup merge of #69251 - anp:track-caller-in-traits, r=eddyb

#[track_caller] in traits

Per https://github.com/rust-lang/rust/issues/47809#issuecomment-572791760, this allows the `#[track_caller]` attribute on trait methods.

Includes tests for `#[track_caller]` with:

* "regular" trait impls
* default trait impls
* "blanket-tracked" trait impls, where the annotation is in the trait definition and is inherited by "regular" impls of the trait