-
Notifications
You must be signed in to change notification settings - Fork 13k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Various functions taking a TyCtxt
and a Span
should be taking a TyCtxtAt
#48425
Labels
E-easy
Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Comments
oli-obk
added
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
E-easy
Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
labels
Feb 22, 2018
Can I take this one if no one is working on that ? |
@PramodBisht it's all yours! |
PramodBisht
added a commit
to PramodBisht/rust
that referenced
this issue
Mar 2, 2018
PramodBisht
added a commit
to PramodBisht/rust
that referenced
this issue
Mar 4, 2018
Manishearth
added a commit
to Manishearth/rust
that referenced
this issue
Mar 5, 2018
Fixed rust-lang#48425 : Various functions taking a `TyCtxt` and a `Span` should be taking a `TyCtxtAt` Hi @oli-obk I have done some code refactoring to fix rust-lang#48425, Please let me know if anything else is required on this.
alexcrichton
added a commit
to alexcrichton/rust
that referenced
this issue
Mar 7, 2018
Fixed rust-lang#48425 : Various functions taking a `TyCtxt` and a `Span` should be taking a `TyCtxtAt` Hi @oli-obk I have done some code refactoring to fix rust-lang#48425, Please let me know if anything else is required on this.
alexcrichton
added a commit
to alexcrichton/rust
that referenced
this issue
Mar 7, 2018
Fixed rust-lang#48425 : Various functions taking a `TyCtxt` and a `Span` should be taking a `TyCtxtAt` Hi @oli-obk I have done some code refactoring to fix rust-lang#48425, Please let me know if anything else is required on this.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
E-easy
Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
One example is the
is_sized
method onTy
. Internally it creates atcx.at(span)
, when it could simply be taking exactly thatTyCtxtAt
as an argument. In miri I had to writety.is_sized(tcx.tcx, param_env, tcx.span)
which just feels a little riddiculous (taking apart theTyCtxtAt
, just to have the method construct it back).There's probably many other similar methods and functions that should be taking a
TyCtxtAt
The text was updated successfully, but these errors were encountered: