Fix error in rustc_driver::test.
This commit is contained in:
parent
e31dae4741
commit
7466740a93
1 changed files with 1 additions and 1 deletions
|
|
@ -303,7 +303,7 @@ impl<'a, 'gcx, 'tcx> Env<'a, 'gcx, 'tcx> {
|
|||
|
||||
pub fn t_param(&self, index: u32) -> Ty<'tcx> {
|
||||
let name = format!("T{}", index);
|
||||
self.infcx.tcx.mk_param(index, Symbol::intern(&name))
|
||||
self.infcx.tcx.mk_param(index, Symbol::intern(&name).as_str())
|
||||
}
|
||||
|
||||
pub fn re_early_bound(&self, index: u32, name: &'static str) -> ty::Region<'tcx> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue